Page 1 of 1
tiff convertion changes to green
Posted: 2017-11-03T14:47:32-07:00
by UliW
Dear All,
I am working with ImageMagick7 to convert files from jpg to tiff (OS = Windows 10). For instance:
cd\temp\Bildquelle
C:\Programme\ImageMagick-7.0.6-Q16\magick mogrify -path C:\temp\Bildablage -format tif -compress LZW *.jpg
It works perfectly but when I import the converted file to MS Word (2000 or 2009) it changes to green; when I import the same file into Open Office the picture stays the same.
Does anyone know an explanation for that and a smart solution to solve the problem?
Thanks for your help and assistance
Uli W
Re: tiff convertion changes to green
Posted: 2017-11-03T15:03:07-07:00
by fmw42
IM 7.0.6 is a bit old. Perhaps an upgrade will help. Can you provide an example JPG input and your output. We can then test own more current versions of Imagemagick. Have you tried convert a single jpg to tiff using magick rather than magick mogrify?
Re: tiff convertion changes to green
Posted: 2017-11-03T15:03:48-07:00
by fmw42
P.S. You can upload your images to some free hosting service (such as dropbox.com) and put the URLs here.
Re: tiff convertion changes to green
Posted: 2017-11-03T15:42:21-07:00
by UliW
Dear fmw42, thank you for your answer. The picture stays the same when I open, save and close it with Irfan View.
The pictures are on my server
https://my.hidrive.com/share/ilcanl9rje
UliW
Re: tiff convertion changes to green
Posted: 2017-11-03T15:54:32-07:00
by UliW
I am working with IM 7.0.6 Q16 and tried IM 7.0.7 Q16. The result is the same.
UliW
Re: tiff convertion changes to green
Posted: 2017-11-03T16:00:18-07:00
by fmw42
I took your first image and renamed it since it has spaces in the name. This works fine for me on IM 7.0.7.9 Q16 Mac OSX
Code: Select all
magick image1.jpg -compress lzw image1.tif
Try that.
I am using jpeg @9b_0 and tiff @4.0.8_0. Perhaps you need to update your delegates.
What do you get from
Re: tiff convertion changes to green
Posted: 2017-11-03T17:27:46-07:00
by UliW
Dear fmw42, what does this mean: "Perhaps you need to update your delegates"?
When I convert the picture to bmp there is no problem with the import in ms word.
Re: tiff convertion changes to green
Posted: 2017-11-03T20:18:10-07:00
by fmw42
Imagemagick uses many different delegate libraries to convert images. Some formats it does internally others it makes use of standard libraries. That is the case for jpg and for tif and for png. It handles bmp internally, I believe.
See
http://www.imagemagick.org/script/formats.php and
http://www.imagemagick.org/download/delegates/
I do not know if the second link has the most current delegates. You can often find out what versions you have by
For example:
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (
90)
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version
4.0.8)
should tell you which delegates you are using.
Re: tiff convertion changes to green
Posted: 2017-11-07T15:34:17-07:00
by UliW
Dear fmw42,
thank you for the detailed and helpfull answer.
Best
UliW