I''m looking at Dragonfly, which seems to offer what I''m looking for in this area: the ability to upload an image, then later request that image at a different geometry, and either get a cached copy of that resized image, or create and cache that image. Can anyone point me to alternatives? Is this something that can be added to Paperclip? I''ve only ever used Paperclip for file uploads of any kind, and have always pre-sized to all of my defined target image dimensions on upload. Is there any way to hook the resample methods from a regular image request? I''m building a CMS that allows the admin to specify the image dimensions, not just choose from a list of possible sizes. Thanks in advance, Walter -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Walter Davis wrote in post #991085:> I''m looking at Dragonfly, which seems to offer what I''m looking for in > this area: the ability to upload an image, then later request that > image at a different geometry, and either get a cached copy of that > resized image, or create and cache that image. > > Can anyone point me to alternatives? Is this something that can be > added to Paperclip? I''ve only ever used Paperclip for file uploads of > any kind, and have always pre-sized to all of my defined target image > dimensions on upload. Is there any way to hook the resample methods > from a regular image request? > > I''m building a CMS that allows the admin to specify the image > dimensions, not just choose from a list of possible sizes.There was a Railscasts episode that might prove useful for your system. It might hold some of the answers you''re wanting: http://asciicasts.com/episodes/182-cropping-images -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 5, 2011, at 4:38 PM, Robert Walker wrote:> Walter Davis wrote in post #991085: >> I''m looking at Dragonfly, which seems to offer what I''m looking for >> in >> this area: the ability to upload an image, then later request that >> image at a different geometry, and either get a cached copy of that >> resized image, or create and cache that image. >> >> Can anyone point me to alternatives? Is this something that can be >> added to Paperclip? I''ve only ever used Paperclip for file uploads of >> any kind, and have always pre-sized to all of my defined target image >> dimensions on upload. Is there any way to hook the resample methods >> from a regular image request? >> >> I''m building a CMS that allows the admin to specify the image >> dimensions, not just choose from a list of possible sizes. > > There was a Railscasts episode that might prove useful for your > system. > It might hold some of the answers you''re wanting: > > http://asciicasts.com/episodes/182-cropping-imagesYou''re right, this is very cool. But I''m hoping to find a way to use Paperclip to re-process an image that is already in the store to a new set of dimensions that haven''t been defined in the has_attached_file call. Is there a way to pass the dimensions in at resize time? I''d want to reload the full-size version of an image that was previously uploaded, set its geometry to something new, and generate a new version on the fly. Walter -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.