TIFF Color Inversion

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
lillockey

TIFF Color Inversion

Post by lillockey »

Hello,

I am attempting to add a dcn to an image after it is created. Naturally, ImageMagick seems the way to go. However, there are a few problems I am having with this process.

The original image is a single page TIFF that has a white background and black text.
-After conversion, it is suddenly has a black background and white text.
-Also, it is suddenly 190x bigger than the original. The smallest I could find how to get it was with group4 compression (only 10x the original size :( ), but that still isn't nearly as small as the original. I'd like to get it down as close as possible to the original size (10-12k would be acceptable).

Below is a link the to zip file containing the images along with a batch file (windows) that contains the arguments as I used them. Please let me know what I can do to improve the situation. Here are those arguments:
050208010001.TIF -monochrome -gravity SouthWest -splice 0x80 -fill black -background white -font "Courier-New" -pointsize 45 -draw "text 20,20 '050208010001'" 050208010001_POST.tif

http://www.fileden.com/files/2008/6/10/ ... ge_dcn.zip
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: TIFF Color Inversion

Post by fmw42 »

I am no expert on TIFF, except to know there are a lot of variations. But you can search these archives for similar questions and answers. For example, see

viewtopic.php?f=7&t=11374&start=0&st=0& ... hilit=tiff
lillockey

Re: TIFF Color Inversion

Post by lillockey »

fmw42 wrote:I am no expert on TIFF, except to know there are a lot of variations. But you can search these archives for similar questions and answers. For example, see

viewtopic.php?f=7&t=11374&start=0&st=0& ... hilit=tiff
I thank you for your help. Adding the argument "-define quantum:polarity=min-is-white" fixed the color inversion issue. I will do a further search and see if I can find anything on compression.
Post Reply