I am using paperclip plugin in my application for uploading images. But when I am uploading CMYK format image then this format image not displaying in IE7 properly.
after some search I got the following solution and it’s working.
have added one line code in “paperclip” pluginn.
Go to the – “vendor\plugins\paperclip\lib\paperclip\thumbnail.rb”
On line no.64
Old code : trans = “-resize \”#{scale}\””
New change : trans = “-colorspace RGB -resize \”#{scale}\””
New change : trans = “-colorspace RGB -resize \”#{scale}\””
After made this changes then if you uploading any formated image then paperclip change in RGB.This change not affected on image clarity.
Please refer following link for more information
http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/
http://www.imagemagick.org/script/command-line-options.php#colorspace
http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/
http://www.imagemagick.org/script/command-line-options.php#colorspace
One thought on “CMYK format images not displaying properly in IE 7”