tiff convertion changes to green

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
UliW
Posts: 19
Joined: 2017-07-19T08:15:59-07:00
Authentication code: 1151

tiff convertion changes to green

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tiff convertion changes to green

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tiff convertion changes to green

Post by fmw42 »

P.S. You can upload your images to some free hosting service (such as dropbox.com) and put the URLs here.
UliW
Posts: 19
Joined: 2017-07-19T08:15:59-07:00
Authentication code: 1151

Re: tiff convertion changes to green

Post 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
UliW
Posts: 19
Joined: 2017-07-19T08:15:59-07:00
Authentication code: 1151

Re: tiff convertion changes to green

Post by UliW »

I am working with IM 7.0.6 Q16 and tried IM 7.0.7 Q16. The result is the same.

UliW
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tiff convertion changes to green

Post 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

Code: Select all

magick -version
UliW
Posts: 19
Joined: 2017-07-19T08:15:59-07:00
Authentication code: 1151

Re: tiff convertion changes to green

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tiff convertion changes to green

Post 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

Code: Select all

convert -list format
For example:

JPG* JPEG rw- Joint Photographic Experts Group JFIF format (90)
TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 4.0.8)

Code: Select all

convert -version
should tell you which delegates you are using.
UliW
Posts: 19
Joined: 2017-07-19T08:15:59-07:00
Authentication code: 1151

Re: tiff convertion changes to green

Post by UliW »

Dear fmw42,
thank you for the detailed and helpfull answer.
Best
UliW
Post Reply