Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 59709
Status: open
Priority: 40/
Queue: Imager

People
Owner: Nobody in particular
Requestors: vindex [...] apartia.org
Cc:
AdminCc:

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



Subject: thumbnail quality problem
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1280148037-2370-172"
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 409
Download (untitled) / with headers
text/plain 409b
Imager scale quality is too low. We have much better results with the Image::Imlib2 module. Here is a comparaison of two thumbmnails produced from the same source with default settings: http://zenon.apartia.fr/stuff/made_with_imager.jpg http://zenon.apartia.fr/stuff/made_with_imlib2.jpg The 'Imager' version is fuzzy and lacks definition. I tried with the 'mixing' algorithm with no apparent difference.
Subject: made_with_imlib2.jpg
MIME-Version: 1.0
Content-Type: image/jpeg; name="made_with_imlib2.jpg"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="made_with_imlib2.jpg"
Content-Transfer-Encoding: base64
Content-Length: 3630
made_with_imlib2.jpg
Subject: made_with_imager.jpg
MIME-Version: 1.0
Content-Type: image/jpeg; name="made_with_imager.jpg"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="made_with_imager.jpg"
Content-Transfer-Encoding: base64
Content-Length: 3154
made_with_imager.jpg
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2372-1280188435-850.59709-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 579
Download (untitled) / with headers
text/plain 579b
On Mon Jul 26 08:40:37 2010, vindex wrote: Show quoted text
> Imager scale quality is too low. We have much better results with the > Image::Imlib2 module. > > Here is a comparaison of two thumbmnails produced from the same source > with default settings: > > http://zenon.apartia.fr/stuff/made_with_imager.jpg > > http://zenon.apartia.fr/stuff/made_with_imlib2.jpg > > The 'Imager' version is fuzzy and lacks definition. I tried with the > 'mixing' algorithm with no apparent difference.
Could I please have: - the source image - the code you used to test the mixing option. Thanks, Tony
From vindex [...] apartia.org Tue Jul 27 03: 30:51 2010
MIME-Version: 1.0
X-Spam-Status: No, score=-9.906 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SPF_FAIL=0.693] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-2372-1280188436-312.59709-6-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
References: <RT-Ticket-59709 [...] rt.cpan.org> <rt-3.8.HEAD-2372-1280188436-312.59709-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: Debian amavisd-new at lncsa.com
Message-ID: <20100727073239.GA22185 [...] apartia.fr>
Content-Type: multipart/mixed; boundary="bg08WKrSYDhXBjb5"
X-Spam-Score: -9.906
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id C98D32409DE for <cpan-bug+Imager [...] hipster.bestpractical.com>; Tue, 27 Jul 2010 03:30:51 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3uk3Kf-yacWK for <cpan-bug+Imager [...] hipster.bestpractical.com>; Tue, 27 Jul 2010 03:30:49 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id D57D52400C1 for <bug-Imager [...] rt.cpan.org>; Tue, 27 Jul 2010 03:30:47 -0400 (EDT)
Received: (qmail 31980 invoked by uid 103); 27 Jul 2010 07:32:42 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 27 Jul 2010 07:32:42 -0000
Received: from mail.lncsa.com (HELO sargon.lncsa.com) (213.215.28.11) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Tue, 27 Jul 2010 00:32:38 -0700
Received: from localhost (localhost.localdomain [127.0.0.1]) by sargon.lncsa.com (Postfix) with ESMTP id 15027300E34A for <bug-Imager [...] rt.cpan.org>; Tue, 27 Jul 2010 09:32:33 +0200 (CEST)
Received: from sargon.lncsa.com ([127.0.0.1]) by localhost (sargon.lncsa.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fAS9lNmi6Ddx for <bug-Imager [...] rt.cpan.org>; Tue, 27 Jul 2010 09:32:32 +0200 (CEST)
Received: from zenon.apartia.fr (zenon.apartia.fr [10.0.3.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "zenon.apartia.fr", Issuer "ca.apartia.fr" (verified OK)) by sargon.lncsa.com (Postfix) with ESMTP id 427353015E24 for <bug-Imager [...] rt.cpan.org>; Tue, 27 Jul 2010 09:32:30 +0200 (CEST)
Received: from galba.apartia.fr (galba.apartia.fr [10.0.3.119]) by zenon.apartia.fr (Postfix) with ESMTP id EF1BB5B93FA35 for <bug-Imager [...] rt.cpan.org>; Tue, 27 Jul 2010 09:32:26 +0200 (CEST)
Received: by galba.apartia.fr (Postfix, from userid 1000) id 34906202900C; Tue, 27 Jul 2010 09:32:40 +0200 (CEST)
Delivered-To: cpan-bug+Imager [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #59709] thumbnail quality problem
User-Agent: Mutt/1.5.20 (2009-06-14)
Return-Path: <vindex [...] apartia.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Imager [...] hipster.bestpractical.com
X-RT-Mail-Extension: imager
Date: Tue, 27 Jul 2010 09:32:40 +0200
X-Spam-Level:
To: TONYC via RT <bug-Imager [...] rt.cpan.org>
From: Louis-David Mitterrand <vindex [...] apartia.org>
RT-Message-ID: <rt-3.8.HEAD-2373-1280215969-1580.59709-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
X-RT-Original-Encoding: utf-8
Content-Length: 1222
Download (untitled) / with headers
text/plain 1.1k
On Mon, Jul 26, 2010 at 07:53:56PM -0400, TONYC via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=59709 > > > On Mon Jul 26 08:40:37 2010, vindex wrote:
> > Imager scale quality is too low. We have much better results with the > > Image::Imlib2 module. > > > > Here is a comparaison of two thumbmnails produced from the same source > > with default settings: > > > > http://zenon.apartia.fr/stuff/made_with_imager.jpg > > > > http://zenon.apartia.fr/stuff/made_with_imlib2.jpg > > > > The 'Imager' version is fuzzy and lacks definition. I tried with the > > 'mixing' algorithm with no apparent difference.
> > Could I please have: > > - the source image > > - the code you used to test the mixing option.
Hi, It seems my initial tests were flawed because the 'mixing' algorithm is indeed much better than 'normal' and (almost?) equivalent to Image::Imlib2's default scale quality. Please find attached the original image and test script. There is something confusing in the Imager::Transformations docs: "preview" is faster than "mixing" which is much faster than "normal". If 'mixing' is faster and better than 'normal' then why isn't it the default? Cheers, -- http://www.cruisefish.net
Content-Type: text/x-perl; charset=us-ascii
content-disposition: attachment; filename="scale_test.pl"
X-RT-Original-Encoding: us-ascii
Content-Length: 987
Download scale_test.pl
text/x-perl 987b

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

Content-Type: image/jpeg
content-disposition: attachment; filename="allroad.jpg"
Content-Transfer-Encoding: base64
Content-Length: 179965
Download allroad.jpg
image/jpeg 175.7k

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

From tony [...] develop-help.com Tue Jul 27 03: 34:03 2010
CC: undisclosed-recipients: ;
MIME-Version: 1.0
X-Spam-Status: No, score=-9.906 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SPF_FAIL=0.693] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-2373-1280215971-896.59709-5-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
References: <RT-Ticket-59709 [...] rt.cpan.org> <rt-3.8.HEAD-2372-1280188436-312.59709-6-0 [...] rt.cpan.org> <20100727073239.GA22185 [...] apartia.fr> <rt-3.8.HEAD-2373-1280215971-896.59709-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20100727073548.GA18706 [...] mars.tony.develop-help.com>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -9.906
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7DA942409DE for <cpan-bug+Imager [...] hipster.bestpractical.com>; Tue, 27 Jul 2010 03:34:03 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X3q6-gobFJkp for <cpan-bug+Imager [...] hipster.bestpractical.com>; Tue, 27 Jul 2010 03:34:00 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 8A0652400C1 for <bug-Imager [...] rt.cpan.org>; Tue, 27 Jul 2010 03:34:00 -0400 (EDT)
Received: (qmail 32644 invoked by uid 103); 27 Jul 2010 07:35:55 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 27 Jul 2010 07:35:55 -0000
Received: from 202-154-105-237.people.net.au (HELO mars.tony.develop-help.com) (202.154.105.237) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Tue, 27 Jul 2010 00:35:53 -0700
Received: from mars.tony.develop-help.com (localhost [127.0.0.1]) by mars.tony.develop-help.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o6R7ZmJa018736 for <bug-Imager [...] rt.cpan.org>; Tue, 27 Jul 2010 17:35:48 +1000
Received: (from tony [...] localhost) by mars.tony.develop-help.com (8.14.3/8.14.3/Submit) id o6R7ZmFt018735 for bug-Imager [...] rt.cpan.org; Tue, 27 Jul 2010 17:35:48 +1000
Delivered-To: cpan-bug+Imager [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #59709] thumbnail quality problem
User-Agent: Mutt/1.5.18 (2008-05-17)
Return-Path: <tony [...] develop-help.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Imager [...] hipster.bestpractical.com
X-RT-Mail-Extension: imager
Date: Tue, 27 Jul 2010 17:35:48 +1000
X-Spam-Level:
To: Louis-David Mitterrand via RT <bug-Imager [...] rt.cpan.org>
From: Tony Cook <tony [...] develop-help.com>
RT-Message-ID: <rt-3.8.HEAD-2373-1280216160-372.59709-0-0 [...] rt.cpan.org>
Content-Length: 783
Download (untitled) / with headers
text/plain 783b
On Tue, Jul 27, 2010 at 03:32:51AM -0400, Louis-David Mitterrand via RT wrote: Show quoted text
> It seems my initial tests were flawed because the 'mixing' algorithm is > indeed much better than 'normal' and (almost?) equivalent to > Image::Imlib2's default scale quality. > > Please find attached the original image and test script. > > There is something confusing in the Imager::Transformations docs: > > "preview" is faster than "mixing" which is much faster than "normal". > > If 'mixing' is faster and better than 'normal' then why isn't it the > default?
Backward compatibility mostly. mixing was added several years after the default scaling algorithm as implemented. I have an open ticket to look at scaling, but time (and enthusiasm) has meant I haven't gotten around to it. Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.