posterize TIFF-files: how to prevent change of color-depth?

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
fmw42
Posts: 23226
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: posterize TIFF-files: how to prevent change of color-depth?

Post by fmw42 » 2018-02-11T11:59:55-07:00

ImageMagick default depths are defined by the Q level of the install. If using Q16 (default), then if the format supports 16-bit depths, then it will be 16, but if not then you will get 8-bit depths. To enforce 8-bit depths use -depth 8 or use a Q8 install.

MaxiPunkt
Posts: 8
Joined: 2018-02-09T08:53:44-07:00
Authentication code: 1152

Re: posterize TIFF-files: how to prevent change of color-depth?

Post by MaxiPunkt » 2018-02-11T12:44:07-07:00

"-depth 8" has no effect in this case
"- type truecolor" is the key to solve the problem

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

Re: posterize TIFF-files: how to prevent change of color-depth?

Post by fmw42 » 2018-02-11T14:17:14-07:00

Only since you want 24-bit total color and want more than 256 colors. Otherwise, if less than 256 colors you would get 16-bits total (palette) without -depth 8 and 8-bits total (palette) with -depth 8.

Post Reply