<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>®om&#039;s blog &#187; optipng</title>
	<atom:link href="http://blog.rom1v.com/tag/optipng/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rom1v.com</link>
	<description>Un blog libre</description>
	<lastBuildDate>Sun, 05 Sep 2010 17:23:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Optimiser la taille des fichiers png</title>
		<link>http://blog.rom1v.com/2008/08/optimiser-la-taille-des-fichiers-png/</link>
		<comments>http://blog.rom1v.com/2008/08/optimiser-la-taille-des-fichiers-png/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 10:02:00 +0000</pubDate>
		<dc:creator>®om</dc:creator>
				<category><![CDATA[Astuces]]></category>
		<category><![CDATA[Outils]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[puf]]></category>
		<category><![CDATA[gnu/linux]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[optipng]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rom1v.com/2008/08/optimiser-la-taille-des-fichiers-png/</guid>
		<description><![CDATA[L&#8217;outil optipng permet d&#8217;optimiser les fichiers png : les compresser davantage sans aucune perte de qualité. Pour l&#8217;utiliser, c&#8217;est très simple : optipng image.png Très pratique pour les captures d&#8217;écran que l&#8217;on veut poster sur les forums. Voici un exemple de résultat : $ optipng screenshot.png OptiPNG 0.5.5: Advanced PNG optimizer. Copyright (C) 2001-2007 Cosmin Truta. ** [...]]]></description>
			<content:encoded><![CDATA[<p>L&#8217;outil <a href="apt://optipng">optipng</a> permet d&#8217;optimiser les fichiers <strong>png</strong> : les compresser davantage sans aucune perte de qualité.</p>
<p>Pour l&#8217;utiliser, c&#8217;est très simple :</p>
<pre>optipng image.png</pre>
<p>Très pratique pour les captures d&#8217;écran que l&#8217;on veut poster sur les forums.</p>
<p>Voici un exemple de résultat :</p>
<pre>$ optipng screenshot.png
OptiPNG 0.5.5: Advanced PNG optimizer.
Copyright (C) 2001-2007 Cosmin Truta.

** Processing: screenshot.png
1196x688 8-bit RGB-alpha non-interlaced
The image is losslessly reduced to 8-bit RGB
Input IDAT size = 117762 bytes
Input file size = 118005 bytes
Trying...
  zc = 9  zm = 8  zs = 0  f = 0  IDAT size = 81686
  zc = 9  zm = 8  zs = 1  f = 0  IDAT too big
  zc = 1  zm = 8  zs = 2  f = 0  IDAT too big
  zc = 9  zm = 8  zs = 3  f = 0  IDAT too big
  zc = 9  zm = 8  zs = 0  f = 5  IDAT too big
  zc = 9  zm = 8  zs = 1  f = 5  IDAT too big
  zc = 1  zm = 8  zs = 2  f = 5  IDAT too big
  zc = 9  zm = 8  zs = 3  f = 5  IDAT too big

Selecting parameters:
  zc = 9  zm = 8  zs = 0  f = 0  IDAT size = 81686

Output IDAT size = 81686 bytes (36076 bytes decrease)
Output file size = 81761 bytes (36244 bytes = 30.71% decrease)</pre>
<p>Un peu plus de 30% de gain, ça n&#8217;est pas négligeable.</p>
<p>Et pour en faire un <a href="http://doc.ubuntu-fr.org/nautilus_scripts">script nautilus</a>, mettez ce script dans <code>~/.gnome2/nautilus-scripts/optipng</code> que vous rendez exécutable :</p>
<pre>#!/bin/sh
# Optimizes PNG files.
#
# 30th august 2008 - Romain Vimont (®om)
#

# Use only n as field separator
IFS='
'

# Calls optipng with all args
optipng $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS</pre>
<p>Combiné avec <a href="http://blog.rom1v.com/2008/08/imagup-uploader-une-image-en-2-clics/">imagup</a>, c&#8217;est très pratique pour poster des captures d&#8217;écran sur un forum.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rom1v.com/2008/08/optimiser-la-taille-des-fichiers-png/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
