Thanks for the replies. I'm using paperclip, but while search I still
can't find out how to do this. I want to convert the image to jpg/png
ONLY if it's a tiff image. I saw processors/callbacks in paperclip but
I haven't found any way to make a Processor that can do this for me
since I don't know how to call Imagemagick from ruby code. Would I
need Rmagick for this and how would it play in with paperclip?

On Feb 23, 3:32 pm, Walter McGinnis <[email protected]> wrote:
> The #59 meaning the relevant line is mainly the setting of format in
> line 59.  There is other stuff in their you may find useful, too.
>
> Cheers,
> Walter
>
> On Wed, Feb 24, 2010 at 12:31 PM, Walter McGinnis
>
>
>
> <[email protected]> wrote:
> > This is actually used with AttachmentFu, but has some example code for
> > Rmagick resizing:
>
> >http://github.com/kete/kete/blob/master/lib/resize_as_jpeg_when_neces...
>
> > Cheers,
> > Walter
>
> > On Wed, Feb 24, 2010 at 12:24 PM, Peter De Berdt
> > <[email protected]> wrote:
>
> >> On 23 Feb 2010, at 23:19, Mike C wrote:
>
> >> Thanks. How can I use paperclip to convert? I tried looking it up in
> >> google but got no results.
>
> >> On Feb 23, 1:59 pm, Robert Walker <[email protected]> wrote:
>
> >> Mike Chai wrote:
>
> >> Does anyone know of a way to convert an uploadedtiffimage into a jpg
>
> >> or png?
>
> >>http://github.com/thoughtbot/papercliphttp://www.imagemagick.org/scri...
>
> >> Use :convert_options as shown
> >> here: http://www.taknado.com/en/2009/10/01/paperclip-tweaks/(found using
> >> "paperclip rails convert file" on google). Someone else will be able to 
> >> give
> >> you the imagemagick command parameter to convert to jpg I hope, don't know
> >> it by heart.
>
> >> 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 [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >>http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to