<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Mapping JPEG compression levels between Adobe Photoshop and GIMP 2.4</title>
	<link>http://blogs.gnome.org/raphael/2007/10/23/mapping-jpeg-compression-levels-between-adobe-photoshop-and-gimp-24/</link>
	<description>Just another GNOME Blogs weblog</description>
	<pubDate>Sun, 06 Jul 2008 01:25:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: raphael</title>
		<link>http://blogs.gnome.org/raphael/2007/10/23/mapping-jpeg-compression-levels-between-adobe-photoshop-and-gimp-24/#comment-18</link>
		<dc:creator>raphael</dc:creator>
		<pubDate>Thu, 25 Oct 2007 22:21:32 +0000</pubDate>
		<guid>http://blogs.gnome.org/raphael/2007/10/23/mapping-jpeg-compression-levels-between-adobe-photoshop-and-gimp-24/#comment-18</guid>
		<description>Do you have any sample files that could be used for comparing the quality/size ratio of both programs? So far, I came to the opposite conclusion. But maybe I am biased...

Anyway,  using a different library than libjpeg would not change much: Photoshop cannot use a better (or worse) algorithm, because the JPEG compression algorithm is standardized and has to be implemented in the specific way if you want the files to be readable by any JPEG viewer.

The differences that can be observed between both programs are not related to the algorithm, but to the quantization tables that are used for the JPEG compression. These tables define how much of the original image is kept when saving (specifically, the divisors in these tables influence how many DCT coefficients are kept). Each table contains 64 numbers and is included directly in the JPEG file because it is needed for decompressing the file later. There are usually 2 or 3 quantization tables in the file: one for luminance and one or two for chrominance.

When you select a given "quality level" in GIMP (libjpeg) or in Photoshop, you are asking the program to generate the quantization tables that have been associated with that quality level by its developers. Different programs use different tables, but they usually have many similarities. That's why I created the tables included in this article: they allow you to find the quantization tables that are similar in both programs.

Considering how JPEG compression works, I would be very surprised if you could find some images that produce better results in Photoshop than in GIMP.  What happens is usually the opposite: GIMP saves JPEG files that are smaller than with Photoshop but have the same (or better) quality. One of the simple reasons for that difference is that Photoshop includes more metadata by default.</description>
		<content:encoded><![CDATA[<p>Do you have any sample files that could be used for comparing the quality/size ratio of both programs? So far, I came to the opposite conclusion. But maybe I am biased&#8230;</p>
<p>Anyway,  using a different library than libjpeg would not change much: Photoshop cannot use a better (or worse) algorithm, because the JPEG compression algorithm is standardized and has to be implemented in the specific way if you want the files to be readable by any JPEG viewer.</p>
<p>The differences that can be observed between both programs are not related to the algorithm, but to the quantization tables that are used for the JPEG compression. These tables define how much of the original image is kept when saving (specifically, the divisors in these tables influence how many DCT coefficients are kept). Each table contains 64 numbers and is included directly in the JPEG file because it is needed for decompressing the file later. There are usually 2 or 3 quantization tables in the file: one for luminance and one or two for chrominance.</p>
<p>When you select a given &#8220;quality level&#8221; in GIMP (libjpeg) or in Photoshop, you are asking the program to generate the quantization tables that have been associated with that quality level by its developers. Different programs use different tables, but they usually have many similarities. That&#8217;s why I created the tables included in this article: they allow you to find the quantization tables that are similar in both programs.</p>
<p>Considering how JPEG compression works, I would be very surprised if you could find some images that produce better results in Photoshop than in GIMP.  What happens is usually the opposite: GIMP saves JPEG files that are smaller than with Photoshop but have the same (or better) quality. One of the simple reasons for that difference is that Photoshop includes more metadata by default.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sp</title>
		<link>http://blogs.gnome.org/raphael/2007/10/23/mapping-jpeg-compression-levels-between-adobe-photoshop-and-gimp-24/#comment-17</link>
		<dc:creator>sp</dc:creator>
		<pubDate>Thu, 25 Oct 2007 14:09:55 +0000</pubDate>
		<guid>http://blogs.gnome.org/raphael/2007/10/23/mapping-jpeg-compression-levels-between-adobe-photoshop-and-gimp-24/#comment-17</guid>
		<description>I'm working with GIMP and so far it seems that Photoshop's jpeg compressing  achieves better quality with less file size than GIMP (which I assume uses libjpeg).

Is it because Photoshop uses a better algorithm? Perhaps there are any alternatives to libjpeg which can give a better size/quality ratio?</description>
		<content:encoded><![CDATA[<p>I&#8217;m working with GIMP and so far it seems that Photoshop&#8217;s jpeg compressing  achieves better quality with less file size than GIMP (which I assume uses libjpeg).</p>
<p>Is it because Photoshop uses a better algorithm? Perhaps there are any alternatives to libjpeg which can give a better size/quality ratio?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
