Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27705

Re: New image and color management library for Python 2+3

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <janpeterr@freenet.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'output': 0.04; 'subject:Python': 0.05; 'url:bitbucket': 0.05; 'pil': 0.07; 'pypy': 0.07; 'python': 0.09; '(without': 0.09; 'bindings': 0.09; 'cached': 0.09; 'fork': 0.09; 'subject:library': 0.09; 'library': 0.15; 'folks': 0.15; '2.7.3': 0.16; 'compares': 0.16; 'md5': 0.16; 'resize': 0.16; 'subject:image': 0.16; 'settings': 0.16; 'wrote:': 0.17; 'jan': 0.18; 'ctypes': 0.22; 'features,': 0.22; 'libraries': 0.22; 'example': 0.23; 'work.': 0.23; 'solutions.': 0.23; "i've": 0.23; 'so.': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'setting': 0.26; 'raw': 0.27; '(as': 0.27; 'regular': 0.27; "doesn't": 0.28; 'helpful.': 0.29; "i'm": 0.29; 'file': 0.32; 'explains': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'christian': 0.34; 'faster': 0.35; 'filter': 0.35; 'especially': 0.35; 'too.': 0.35; 'there': 0.35; 'really': 0.36; 'serve': 0.36; 'but': 0.36; 'url:org': 0.36; 'compare': 0.36; 'test': 0.36; 'thank': 0.36; 'too': 0.36; 'subject:New': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'several': 0.39; 'performance': 0.39; 'to:addr:python.org': 0.39; 'your': 0.60; 'deliver': 0.60; 'most': 0.61; 'high': 0.61; 'profile': 0.61; 'love': 0.63; 'more': 0.63; 'decided': 0.65; 'results': 0.65; 'management': 0.65; 'today': 0.67; 'header:Reply-To:1': 0.68; 'color': 0.69; 'quality': 0.69; 'reply-to:no real name:2**0': 0.72; 'low': 0.83; 'benchmark': 0.84; 'subject:color': 0.84; 'profiles': 0.91; 'subject:+': 0.93
Date Thu, 23 Aug 2012 10:56:31 +0300
From Jan Riechers <janpeterr@freenet.de>
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0
MIME-Version 1.0
To python-list@python.org
Subject Re: New image and color management library for Python 2+3
References <k0e51t$2lt$1@dough.gmane.org> <503123FA.4040301@freenet.de> <k0tsf7$tk6$1@ger.gmane.org>
In-Reply-To <k0tsf7$tk6$1@ger.gmane.org>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To janpeterr@freenet.de
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3698.1345709199.4697.python-list@python.org> (permalink)
Lines 53
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1345709199 news.xs4all.nl 6847 [2001:888:2000:d::a6]:42010
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:27705

Show key headers only | View raw


On 20.08.2012 20:34, Christian Heimes wrote:
 > Am 19.08.2012 19:35, schrieb Jan Riechers:
 >
 > Hello Jan,
 >
 > we decided against ImageMagick and pgmagick for several reasons. For one
 > we were already using FreeImage in other projects (Delphi projects and
 > through ctypes binding with FreeImagePy).
 >
[SNIP]
 >
 > The Python bindings for ImageMagick weren't that good and today they are
 > still buggy. For example I'm not able to set the resize filter to a high
 > quality setting like Catmull-Rom-Spline with the most recent version of
 > pgmagick. filterType() doesn't do anything. The output image still has
 > the same MD5 hash.
 >
 > ImageMagick and PIL were missing important features, too. For example
 > both libraries don't support color management with lcms2 nor cached
 > color transformations nor introspection of ICC profiles. They use lcms1.
 >

The color profiles explains - perhaps it would be interesting still to 
test out your library with regular images (without color profiles) 
against ImageMagick, just to compare the raw speed of both solutions. In 
my case I really would love to see if there is a even higher performance 
solution available as I plan to serve a lot of users a time and 
especially keeping the Input/Output during file writing low would be 
very helpful.


 >
 >> Can you perhaps test your solution with ImageMagick (as it is used
 >> widely) it would be interesting so.
 >
 > I've added some more benchmark results to the README.txt (PIL with
 > non-standard libjpeg-turbo and pgmagick). The results are available at
 > https://bitbucket.org/tiran/smc.freeimage
 >
 > Spoiler: pgmagick isn't faster and its resize filter settings don't work.
 >
Thank you for the additional benchmarks, nice to read!

I will try your library out to see how it compares to old-pendant 
ImageMagick with Pypy 1.9 | Wand / Pillow (Pil fork for pypy) and Python 
2.7.3 PIL / ImageMagick - perhaps I can deliver you those numbers too - 
for those folks not completely in need of a color profile aware version 
but to compare raw numbers

Perhaps it would also be nice to see if and how it works with Pypy too

Jan

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: New image and color management library for Python 2+3 Jan Riechers <janpeterr@freenet.de> - 2012-08-23 10:56 +0300

csiph-web