Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 20677
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: TONYC [...] cpan.org
Requestors: TONYC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Imager's scale() loses detail in comparison to pnmscale
Date: Wed, 26 Jul 2006 00:57:17 +1000
To: bug-Imager [...] rt.cpan.org
From: tonyc [...] cpan.org
Using the same source image, Imager loses some detail when scaling in comparison to pnmscale. pngtopnm <kscdisplay.png | pnmscale -xsize=100 | pnmtopng >~/play/scale/pnm.png perl -Mblib -MImager -e '$im = Imager->new; $im->read(file=>shift) or die; $sc = $im->scale(xpixels => 100) or die; $sc->write(file=>shift) or die' kscdisplay.png ~/play/scale/imager.png
Download kscdisplay.png
image/png 573.9k

Message body is not shown because sender requested not to inline it.

Download imager.png
image/png 20.4k

Message body is not shown because sender requested not to inline it.

Download pnm.png
image/png 18.8k

Message body is not shown because sender requested not to inline it.

added qtype of 'mixing' to the scale() method. This adapt's pnmscale's scale mechanism, and achieves the same detail. It's also a lot faster than qtype of 'normal'.
fixed in 0.54