Problem with photometric interpretation modification

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
antoine.lamaison
Posts: 2
Joined: 2013-02-25T04:28:46-07:00
Authentication code: 6789

Problem with photometric interpretation modification

Post by antoine.lamaison »

Hi,

I would like to modify the tiff format of an image and change the photometric-interpretation of an image.
My image polarity is 'min-is-black' and I want to change it to 'min-is-white' with this command line

Code: Select all

convert source.tif -define tiff:quantum:polarity=min-is-white dest.tif
The command line doesn't trigger any error, but when I type :

Code: Select all

identify -verbose dest.tif
the tiff:photometric is still set to 'min-is-black'

How can I change this parameter ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with photometric interpretation modification

Post by magick »

Remove the tiff: and just use quantum:polarity=min-is-white.
antoine.lamaison
Posts: 2
Joined: 2013-02-25T04:28:46-07:00
Authentication code: 6789

Re: Problem with photometric interpretation modification

Post by antoine.lamaison »

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

Re: Problem with photometric interpretation modification

Post by anthony »

Updated the command line options page for "-define" in both IMv6 and IMv7

Hmmm the option "-distribute-cache" appears to have been added to IMv6 but not to IMv7!!!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply