Hi, I''ve been using minimagick with attachment_fu and have noticed the resized jpeg files are huge, over 100kb for a 640*480 pic. Does anyone know a way to compress these files upon conversion? -Thanks -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 02 Aug 2007, at 01:35, Dan German wrote:> Hi, I''ve been using minimagick with attachment_fu and have noticed the > resized jpeg files are huge, over 100kb for a 640*480 pic. Does anyone > know a way to compress these files upon conversion?As minimagick probably uses the ImageMagick command line utility "convert" in the plugin code somewhere to scale the images, you should be able to bring the size down by adding the -quality parameter to the command. Possible values are described at http:// www.imagemagick.org/script/command-line-options.php#quality Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2 Aug 2007, at 00:35, Dan German wrote:> Hi, I''ve been using minimagick with attachment_fu and have noticed the > resized jpeg files are huge, over 100kb for a 640*480 pic. Does anyone > know a way to compress these files upon conversion?It could be related to embedded metadata: http://blog.airbladesoftware.com/2007/6/27/compressing-images-with- attachment_fu-and-rmagick Regards, Andy Stewart --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---