convert -resize results in 4x the filesize??
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
For the actual cause... -resize merges pixels or expands pixels to produce a 'good' quality resize of the image. However all those extra colors will make the 'type' of image different to accomidate all those extra colors.
-colors remaps all the color down to 256 colors (See IM Examples Color Quantization)
-monocromes quantizates the image to two greyscale colors then remaps those two colors
to black and white.
-compress just specifies a different file compression method, probably not what you want.
instead of -resize you can use -scale, which will resize the image by removing rows and columns of pixels rather than merging them. As such no change in the number of colors is produced (actually you may get fewer colors) but the image will not look as good.
-colors remaps all the color down to 256 colors (See IM Examples Color Quantization)
-monocromes quantizates the image to two greyscale colors then remaps those two colors
to black and white.
-compress just specifies a different file compression method, probably not what you want.
instead of -resize you can use -scale, which will resize the image by removing rows and columns of pixels rather than merging them. As such no change in the number of colors is produced (actually you may get fewer colors) but the image will not look as good.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Note TIF is not a good format as few programs understand all its internal formats. If -colors is corrupting it then your application does not understand that format.
We will probbaly need to know more about the precise format of the TIF needed.
We will probbaly need to know more about the precise format of the TIF needed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/