I'm using paperclip to allow user to upload images and I want to convert an image into jpg/png only if it's a tiff image.
I am using the following code in my image.rb:
validates_attachment_presence :data
validates_attachment_content_type :data,
:content_type => ['image/jpeg', 'image/pjpeg',
'image/jpg', 'image/png', 'image/tif', 'image/gif'], :message => "has to be in a proper format"
I would like to know if it is possible to convert tiff images into jpg or png when uploading them.
Thanks a lot