comparison vendor/plugins/rfpdf/lib/core/rmagick.rb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents cbce1fd3b1b7
children
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
55 elsif image.colorspace.to_s == "RGBColorspace" 55 elsif image.colorspace.to_s == "RGBColorspace"
56 out['channels'] = 3 56 out['channels'] = 3
57 end 57 end
58 58
59 out['bits'] = image.channel_depth 59 out['bits'] = image.channel_depth
60 File.open( TCPDF.k_path_cache + File::basename(filename), 'w'){|f|
61 f.binmode
62 f.print image.to_blob
63 f.close
64 }
60 65
61 out 66 out
62 end 67 end
63 68
64 end 69 end