How can I rename by CarrierWave file versions?

Posted by AKWF on Stack Overflow See other posts from Stack Overflow or by AKWF
Published on 2014-06-08T21:22:58Z Indexed on 2014/06/08 21:24 UTC
Read the original article Hit count: 172

Filed under:
|

Upon the uploading of an image in my application, 4 different sizes are created and saved using CarrierWaves version functionality. However, I am converting all of these versions to JPEG. The source file that is uploaded remains unchanged.

So I can upload a TIFF file, and CarrierWave will create :large, :medium, :small, and :thumb versions.

My problem is that these files all still end in .tif. Yet they are indeed JPEG files, as I've verified this with the file command.

How can I write the filenames correctly for each version, and ensure that CarrierWave will report each version's name correctly?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about carrierwave