interlaced pngs

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
albertleidinger

interlaced pngs

Post by albertleidinger » 2007-01-11T03:15:33-07:00

Hi,

Im uploading a transparent png to my webapp. Its creating a png-thumbnail through PerlMagick but the result is not interlaced.

although
1.) the uploaded png is interlaced
2.) I tried $resizedImg->set( interlace => $param) with $param = Line, Plain and Partition.

Any help is wellcome: Just trying to create interlaced png-thumbnails.

thx
Albert

User avatar
glennrp
Posts: 1163
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Post by glennrp » 2007-02-01T13:02:46-07:00

Use "plane" not "plain" for interlacing.

Glenn

albertleidinger

Post by albertleidinger » 2007-02-02T05:51:22-07:00

Oh my god ...

thx - the simpler the error the harder to find.

Albert

Vanns
Posts: 11
Joined: 2016-08-29T05:28:51-07:00
Authentication code: 1151

Re: interlaced pngs

Post by Vanns » 2016-09-10T04:27:25-07:00

convert -strip -interlace JPEG -quality 80 origi.jpg output-file.jpg

origi image size : 40.6 kb
output-file image size : 11.3 kb

But if I convert one png file as

convert -strip -interlace PNG -quality 80 he.png output-file.png

he.png image size : 711 kb
output-file image size : 1 mb

convert -strip -interlace PNG he.png output-file.png

he.png image size : 711 kb
output-file image size : 972.3 kb

Why the file size has been increased in case of PNG after conversion to output-file.png?

Am I using correct parameters for png conversions?

snibgo
Posts: 9406
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: interlaced pngs

Post by snibgo » 2016-09-10T05:03:25-07:00

Interlacing will change the data used by the compression algorithm.
snibgo's IM pages: im.snibgo.com

Post Reply