Replies: 5 comments 15 replies
-
For v7, I suggest you use "magick", not "convert" (and not "magick convert"). Please show input.png. If it is confidential, please show the complete text output from: |
Beta Was this translation helpful? Give feedback.
-
Please try again, this time with a colon at the end of info: |
Beta Was this translation helpful? Give feedback.
-
@amirian: your input has eight colours. Resizing will greatly increase the number of colours, including anti-aliasing of alpha, so the result won't compress so easily, so the output file will be large. You could use "-sample" instead of "-resize", but the result will be fairly horrible. I don't know what is causing your broken transparency problem. Why do you want "png00:"? This seems to be a bad idea. You want to resize an image that has already been heavily processed. It would be better to get a high-quality version of that image, and process that to your needs. |
Beta Was this translation helpful? Give feedback.
-
How can you resize that heavily processed image, AND keep reasonable qualiy, AND store it in 4-bits per pixel? I haven't tried all possible combinations (eg with "-colors 16" and "-depth 4"), but I don't think that is possible. I suggest you start with a better quality input. |
Beta Was this translation helpful? Give feedback.
-
This works OK for me on IM 7.0.10.13 Q16 Mac OSX.
|
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using IM-7.0.10-13-Q16-x64 to resize a 196KB grayscale png image with transparent background (also made by IM long ago) from 1024x1656 into 1260x2038 pixels. I tried following parameters but gor no correct output: the file gets too large and for PNG00 format the transparency is broken to black. How can I fix this without increasing the bit depth and file size?
convert input.png -resize 1260x2038 1.png Output depth:32, size:1.5MB
convert input.png -resize 1260x2038 -depth 4 2.png Output depth:32, size:830KB
convert input.png -resize 1260x2038 -depth 4 PNG00:3.png Output depth:8, size:655KB (Transparency broken, with this warning: "convert: Cannot write image with defined png:bit-depth or png:color-type. `3.png' @ warning/png.c/MagickPNGWarningHandler/1748.")
convert input.png -resize 1260x2038 -depth 2 4.png Output depth:32, size:430KB
convert input.png -resize 1260x2038 -depth 2 PNG00:5.png Output depth:4, size:310KB (Transparency broken)
Beta Was this translation helpful? Give feedback.
All reactions