Page 1 of 1

Inverted TIFF images (already checked forums)

Posted: 2007-08-23T06:32:59-07:00
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.

Re: Inverted TIFF images (already checked forums)

Posted: 2007-08-23T19:56:09-07:00
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

Re: Inverted TIFF images (already checked forums)

Posted: 2007-08-24T05:40:45-07:00
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.

Re: Inverted TIFF images (already checked forums)

Posted: 2007-08-24T21:54:37-07:00
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.