Inverted TIFF images (already checked forums)

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
mrsw

Inverted TIFF images (already checked forums)

Post by mrsw »

Hi, I'm converting some BW multipage TIFF files to single page TIFF images.
The syntax used is this:

Code: Select all

convert filenameIN.tif filenameOUT_p%02d.tif
When the convertion finishes the new image files are inverted.
I use IM 6.3.5 08/10/07 Q16 under Windows XP SP2.

I tried the same conversion under KUbuntu 7.04 and IM version 6.2.4 07/09/2007 Q16 and the resulting images are not inverted.
There is a bug in the windows version?
I need to use the -negate option to obtain correct images.

I've another question: it's possible to start the file numbering from 1 instead from 0?

Thanks.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Inverted TIFF images (already checked forums)

Post by anthony »

Tif is a wierd format and has flags for bitmaps albout what is bits are white and black. I suggest you report a bug in the bugs forum with a link to an example image
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
mrsw

Re: Inverted TIFF images (already checked forums)

Post by mrsw »

Hi Anthony,
thank you for your reply.

I think there is a problem in the convert command because if I do an identify on the image the image was correctly identified: the background color is white as it should be. When I made a conversion with the -verbose option active, the convert command reports a "Photometric interpretation=min-is-black" and the "background color=black".

I can't place a link to the image but I can upload it somewere you want. The complete multipage file is about 7MB.

What about the naming of files? It's possible to start the file numbering from 1 instead from 0?
Thanks again.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Inverted TIFF images (already checked forums)

Post by anthony »

It is not what IM reported as being the background color that matters.
That is only a default setting from the image to use when -background has not been defined for image processing operations.

What is more important is what pixel is set to black and what to white when the image is read in. See the histogram or colors list in the identify output, that will still be the same a convert as the same MagickCore library routines are used.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply