P
paron
This works:
require 'RMagick'
img_array = Magick::Image.read('C:/test.tif')
imgs = Magick::ImageList.new
for image in img_array
image = image.negate
image.compression= Magick::LZWCompression
imgs<<image
end
imgs.write('C:/testImg1.pdf')
but it seems like the long way around the barn. Anyone care to suggest
improvements?
Especially:
image = image.negate.
If that isn't in there, the PDF comes out the negative of the TIF,
but it seems like it ought to be unnecessary. Is it a bug, or did I do
something silly?
Ron
require 'RMagick'
img_array = Magick::Image.read('C:/test.tif')
imgs = Magick::ImageList.new
for image in img_array
image = image.negate
image.compression= Magick::LZWCompression
imgs<<image
end
imgs.write('C:/testImg1.pdf')
but it seems like the long way around the barn. Anyone care to suggest
improvements?
Especially:
image = image.negate.
If that isn't in there, the PDF comes out the negative of the TIF,
but it seems like it ought to be unnecessary. Is it a bug, or did I do
something silly?
Ron