Page 1 of 1

how I could reduce ppm file size with imagemagick ?

Posted: 2017-10-10T18:10:54-07:00
by diegomage
I use a potrace software for get more precise vectorize but when I use much this software obtain a large ppm of 24mb

How I could reduce size of this ppm

Please help me


Image

when I convert this image in ppm this expand to 24mb

convert Qe5ND.png imss.ppm

Re: how I could reduce ppm file size with imagemagick ?

Posted: 2017-10-10T18:55:42-07:00
by fmw42
The PNG is grayscale palette, so is very small. PPM is 24 bit color.PGM is 8-bit grayscale. I do not know if NetPBM supports a palette type.

If you use PGM, you reduce your file size to 1/3, though still much larger than your original png.

Code: Select all

convert Qe5ND.png img.pgm

Code: Select all

identify Qe5ND.png img.pgm
Qe5ND.png PNG 3994x2122 3994x2122+0+0 8-bit sRGB 256c 116096B 0.000u 0:00.000
img.pgm PGM 3994x2122 3994x2122+0+0 8-bit Grayscale Gray 8.08266MiB 0.020u 0:00.019

Re: how I could reduce ppm file size with imagemagick ?

Posted: 2017-10-11T09:10:52-07:00
by diegomage
very thankyou this help me so much