HighDots Forums  

Flex image - processed images generation

Ruby On Rails Talk Ruby On Rails programming language mailing list


Discuss Flex image - processed images generation in the Ruby On Rails Talk forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ct9a
 
Posts: n/a

Default Flex image - processed images generation - 10-27-2009 , 04:10 AM






hi, guys,

I have been researching on an image uploader plugin to use for my
application.

I have my eyes of fleximage at the moment.

One of the links I read was http://github.com/Squeegy/fleximage.

Pretty neat I must say.

I just have some questions:

1) Seems to be that thumbnails generation and rendering of images (ie
uploaded images get applied with watermarks) happen dynamically (ie.
the watermarked thumbnails are generated when a request is made).
Sorry, looked at the source code for Resize and it seems to be the
case.
Can anyone confirm that this is the case?

2) Has anyone used FlexImage in their production environment and can
comment if dynamically generating images would take up the server's
available resources (ie. memory footprint)?

3) Has anyone got another plugin to recommend that would satisfy the
following criteria?
- can resize thumbnails to different sizes (ie, small, medium,
large)?
- can apply watermarks to uploaded images?
- images can be stored in either database or file system ( allows
future expansion or swap from one storage method to another)

thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #2  
Old   
Philip Hallstrom
 
Posts: n/a

Default Re: Flex image - processed images generation - 10-27-2009 , 11:45 AM






Quote:
I have been researching on an image uploader plugin to use for my
application.

I have my eyes of fleximage at the moment.

One of the links I read was http://github.com/Squeegy/fleximage.

Pretty neat I must say.

I just have some questions:

1) Seems to be that thumbnails generation and rendering of images (ie
uploaded images get applied with watermarks) happen dynamically (ie.
the watermarked thumbnails are generated when a request is made).
Sorry, looked at the source code for Resize and it seems to be the
case.
Can anyone confirm that this is the case?
This is true. But you can cache the result to disk using Rails
caches_page... Long ago I had this in one of my controllers:

class HomeController < ApplicationController

caches_page hoto, :thumb

flex_image :action => 'photo',
:class => Photo,
:quality => 95,
:shadow => {
:color => '#000',
:background => '#fff',
:blur => 4,
ffset => '2x2',
pacity => 0.75
},
verlay => {
:file => 'public/images/watermark.png',
:alignment => :bottom_right,
ffset => 0
}

# there was a thumb one too, but have removed it to save room.
end

If you go to the url below the thumbnails are generated (and cached)
using the above code and if you click on the image you'll see the
larger version with watermark.

http://overthefencecards.com/our_products/package/13-mosaics-collection-6-cards


Quote:
2) Has anyone used FlexImage in their production environment and can
comment if dynamically generating images would take up the server's
available resources (ie. memory footprint)?
They will take up RAM when being generated. If you cache them they
will take up disk space, but after that are like any other image.

Quote:
3) Has anyone got another plugin to recommend that would satisfy the
following criteria?
- can resize thumbnails to different sizes (ie, small, medium,
large)?
- can apply watermarks to uploaded images?
- images can be stored in either database or file system ( allows
future expansion or swap from one storage method to another)
paperclip can do this I think. I know it can resize and if you google
I'm sure someone has instructions on how to set it up to watermark the
images (it uses ImageMagick underneath which can watermark so should
be doable). Images can be stored in the filesystem or on S3. Not
sure about in a database (just never paid attention to that part).

Quote:
thank you


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
  #3  
Old   
ct9a
 
Posts: n/a

Default Re: Flex image - processed images generation - 11-04-2009 , 11:29 PM



guys, I am using paperclip and have been prettyhappy with it.

One thing though is that if I were to specify my image dimensions for
landscape images (ie. 600x400, 800x600, 1024x768 and so forth),
uploading pictures which are portrait (ie. 400x600, 600x800, 768x1024
and so forth) would cause cropping and streching (undesired).

When using ImageMagicK with perl (via PerlMagick), I used to detect if
width>height, then it is a landscape and I will resize by means of
width x height. Otherwise, being portrait, I would resize by means of
height x weight.

I might have a closer look at this tonight but any ideas of how to
overcome this problem in Rails?



thanks

gordon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk (AT) googlegroups (DOT) com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe (AT) googlegroups (DOT) com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.