Paperclip processor to turn images into grayscale
We wanted to automatically create a grayscale version of the uploaded images for a current project. Here’s the Paperclip processor we’re using:
We wanted to automatically create a grayscale version of the uploaded images for a current project. Here’s the Paperclip processor we’re using:
Thu 16/9/10, 19:40
Hi, thanks for the processor. While working with it, I found that the same can actually be done without the need for a processor by adding the proper :convertoptions to hasattached_file. Like this: :convert_options => { :all => ‘-colorspace Gray -strip’ } See also the source code here: http://github.com/thoughtbot/paperclip/blob/master/lib/paperclip/thumbnail.rb./
Tue 26/10/10, 10:11
Nice found Corné!/