<?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>Le blog à Nono &#187; photos</title>
	<atom:link href="http://blogs.glou.org/arnaud/tag/photos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.glou.org/arnaud</link>
	<description>C'est l'histoire d'un geek...</description>
	<lastBuildDate>Tue, 03 Aug 2010 16:01:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Retailler des photos</title>
		<link>http://blogs.glou.org/arnaud/2010/06/07/retailler-des-photos/</link>
		<comments>http://blogs.glou.org/arnaud/2010/06/07/retailler-des-photos/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 19:08:04 +0000</pubDate>
		<dc:creator>nono</dc:creator>
				<category><![CDATA[geekeries]]></category>
		<category><![CDATA[ImageMagick]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://blogs.glou.org/arnaud/?p=218</guid>
		<description><![CDATA[Retailler des photos, c&#8217;est facile. Un p&#8217;tit coup de convert ou de mogrify et c&#8217;est tout bon.
Sauf qu&#8217;en vrai, c&#8217;est un peu moins évident que ça. Il leur manque une fonctionnalité élémentaire : un critère sur la taille du fichier obtenu (en gros, un mogrify -geometry 800&#215;800 -max-filesize 200K). C&#8217;est dommage, j&#8217;en aurais bien l&#8217;utilité [...]]]></description>
			<content:encoded><![CDATA[<p>Retailler des photos, c&#8217;est facile. Un p&#8217;tit coup de <em>convert</em> ou de <em>mogrify</em> et c&#8217;est tout bon.</p>
<p>Sauf qu&#8217;en vrai, c&#8217;est un peu moins évident que ça. Il leur manque une fonctionnalité élémentaire : un critère sur la taille du fichier obtenu (en gros, un <em>mogrify -geometry 800&#215;800 -max-filesize 200K</em>). C&#8217;est dommage, j&#8217;en aurais bien l&#8217;utilité pour publier des photos sur <a href="http://www.pentaxone.fr/">certain site web</a>. Du coup, j&#8217;ai bricolé en vitesse un petit bout de fonction <em>zsh</em> pour retailler des photos en 800&#215;800, 200 Ko maximum.</p>
<p>Il y a plein de trucs codés en dur dedans et on sent bien mes restes de programmation de mon enfance, mais ça marche à peu près. <img src='http://blogs.glou.org/arnaud/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<pre>## Retaillage en 800x800, 200 Ko pour PentaxOne
resize4p1 () {
    if [[ $# -ne 1 ]]
    then
	echo "usage: resize4p1 source.jpeg"
	return 1
    fi
    source=$1
    dest=$(basename $source .jpeg).small.jpeg
    if [[ ! -f $source ]]
    then
	echo "E: Source file ${source} does not exist."
	return 1
    fi
    if [[ -f $dest ]]
    then
	echo "E: Destination file ${dest} already exists."
	return 1
    fi

    # Premiere passe en dur, pas beau mais initialise le "until" comme il faut.
    echo -n "Quality 100 ... "
    convert -antialias -geometry 800x800 -quality 100 $source $dest
    filesize=$(du -sk $dest | awk '{ print $1 }')
    echo "done -- file size is $filesize KB."

    q=99
    until [[ $filesize -lt 200 ]]
    do
	echo -n "Quality $q  ... "
	convert -antialias -geometry 800x800 -quality $q $source $dest
	filesize=$(du -sk $dest | awk '{ print $1 }')
	echo "done -- file size is $filesize KB."
	q=$(($q - 1))
	if [[ $q -lt 1 ]]
	then
	    echo "E: Quality 1 is not small enough -- unexpected error."
	    return 1
	fi
    done
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blogs.glou.org/arnaud/2010/06/07/retailler-des-photos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photoblog : pixelpost</title>
		<link>http://blogs.glou.org/arnaud/2010/02/13/photoblog-pixelpost/</link>
		<comments>http://blogs.glou.org/arnaud/2010/02/13/photoblog-pixelpost/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 15:03:33 +0000</pubDate>
		<dc:creator>nono</dc:creator>
				<category><![CDATA[geekeries]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[photoblog]]></category>
		<category><![CDATA[pixelpost]]></category>

		<guid isPermaLink="false">http://blogs.glou.org/arnaud/?p=176</guid>
		<description><![CDATA[Ça fait un moment que je projetais de publier une galerie photo à peu près montrable. On m&#8217;a signalé il y a quelques jours un moteur de photoblogs, Pixelpost. J&#8217;ai installé ça ce matin pour voir, mise en pratique ici.
Notes pour les admin système
À vue de nez, ça se présente comme une appli web classique. [...]]]></description>
			<content:encoded><![CDATA[<p>Ça fait un moment que je projetais de publier une galerie photo à peu près montrable. On m&#8217;a signalé il y a quelques jours un moteur de photoblogs, <a href="http://www.pixelpost.org/">Pixelpost</a>. J&#8217;ai installé ça ce matin pour voir, mise en pratique <a href="http://photos.glou.org/arnaud/">ici</a>.</p>
<h2>Notes pour les admin système</h2>
<p>À vue de nez, ça se présente comme une appli web classique. D&#8217;une part, c&#8217;est du PHP-MySQL et ça se pose sur place sans trop réfléchir. D&#8217;autre part c&#8217;est un gros foutoir qui mélange allègrement son propre code, les modules additionnels et les données. Pas encore regardé si on peut en faire une installation propre, faudra voir.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.glou.org/arnaud/2010/02/13/photoblog-pixelpost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Une nouvelle salle machines</title>
		<link>http://blogs.glou.org/arnaud/2009/07/10/une-nouvelle-salle-machines/</link>
		<comments>http://blogs.glou.org/arnaud/2009/07/10/une-nouvelle-salle-machines/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 16:02:22 +0000</pubDate>
		<dc:creator>nono</dc:creator>
				<category><![CDATA[geekeries]]></category>
		<category><![CDATA[baies]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[salle machines]]></category>

		<guid isPermaLink="false">http://blogs.glou.org/arnaud/?p=83</guid>
		<description><![CDATA[Des nouvelles baies, un bon paquet de câbles et des jours de boulot.
Avant


Après


Ça a de la gueule, non ?
]]></description>
			<content:encoded><![CDATA[<p>Des nouvelles baies, un bon paquet de câbles et des jours de boulot.</p>
<h1>Avant</h1>
<p><img class="aligncenter size-full wp-image-84" title="imgp1025" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/07/imgp1025.jpg" alt="imgp1025" width="400" height="268" /><br />
<img class="aligncenter size-full wp-image-85" title="imgp1028" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/07/imgp1028.jpg" alt="imgp1028" width="268" height="400" /></p>
<h1>Après</h1>
<p><img class="aligncenter size-full wp-image-86" title="imgp1027" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/07/imgp1027.jpg" alt="imgp1027" width="400" height="268" /><br />
<img class="aligncenter size-full wp-image-87" title="imgp1029" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/07/imgp1029.jpg" alt="imgp1029" width="268" height="400" /></p>
<p>Ça a de la gueule, non ?</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.glou.org/arnaud/2009/07/10/une-nouvelle-salle-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fuckin&#8217; Bruges</title>
		<link>http://blogs.glou.org/arnaud/2009/02/27/fuckin-bruges/</link>
		<comments>http://blogs.glou.org/arnaud/2009/02/27/fuckin-bruges/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 13:50:30 +0000</pubDate>
		<dc:creator>nono</dc:creator>
				<category><![CDATA[photos]]></category>
		<category><![CDATA[bruges]]></category>
		<category><![CDATA[tourisme]]></category>

		<guid isPermaLink="false">http://blogs.glou.org/arnaud/?p=68</guid>
		<description><![CDATA[Hier, expédition à Bruges.



]]></description>
			<content:encoded><![CDATA[<p>Hier, expédition à Bruges.</p>
<p><img class="aligncenter size-full wp-image-69" title="dsc00037" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00037.jpg" alt="dsc00037" width="400" height="300" /><br />
<img class="aligncenter size-full wp-image-70" title="dsc00038" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00038.jpg" alt="dsc00038" width="400" height="300" /><br />
<img class="aligncenter size-full wp-image-71" title="dsc00039" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00039.jpg" alt="dsc00039" width="400" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.glou.org/arnaud/2009/02/27/fuckin-bruges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paris by night : Notre-Dame et ses environs</title>
		<link>http://blogs.glou.org/arnaud/2009/02/13/paris-by-night%c2%a0-notre-dame-et-ses-environs/</link>
		<comments>http://blogs.glou.org/arnaud/2009/02/13/paris-by-night%c2%a0-notre-dame-et-ses-environs/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 00:25:06 +0000</pubDate>
		<dc:creator>nono</dc:creator>
				<category><![CDATA[photos]]></category>
		<category><![CDATA[paris]]></category>

		<guid isPermaLink="false">http://blogs.glou.org/arnaud/?p=55</guid>
		<description><![CDATA[Une petite balade en soirée dans Paris avec mon vieux Sony en main.
Aucune retouche si ce n&#8217;est un recadrage, pas mal du tout pour un compact de 2003.





]]></description>
			<content:encoded><![CDATA[<p>Une petite balade en soirée dans Paris avec mon vieux Sony en main.</p>
<p>Aucune retouche si ce n&#8217;est un recadrage, pas mal du tout pour un compact de 2003.</p>
<p><img src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00076-1024x682.jpg" alt="dsc00076" title="dsc00076" width="450" height="300" class="aligncenter size-large wp-image-56" /><br />
<img src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00084-1023x682.jpg" alt="dsc00084" title="dsc00084" width="450" height="300" class="aligncenter size-large wp-image-57" /><br />
<img src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00091-1024x682.jpg" alt="dsc00091" title="dsc00091" width="450" height="300" class="aligncenter size-large wp-image-58" /><br />
<img src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00092-1024x682.jpg" alt="dsc00092" title="dsc00092" width="450" height="300" class="aligncenter size-large wp-image-62" /><br />
<img src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/02/dsc00094-1024x682.jpg" alt="dsc00094" title="dsc00094" width="450" height="300" class="aligncenter size-large wp-image-64" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.glou.org/arnaud/2009/02/13/paris-by-night%c2%a0-notre-dame-et-ses-environs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le Louvre by night</title>
		<link>http://blogs.glou.org/arnaud/2009/01/28/le-louvre-by-night/</link>
		<comments>http://blogs.glou.org/arnaud/2009/01/28/le-louvre-by-night/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 23:10:38 +0000</pubDate>
		<dc:creator>nono</dc:creator>
				<category><![CDATA[photos]]></category>
		<category><![CDATA[paris]]></category>

		<guid isPermaLink="false">http://blogs.glou.org/arnaud/?p=44</guid>
		<description><![CDATA[Juste une paire de photos prises avec mon vieux compact et un minimum de retouches.


]]></description>
			<content:encoded><![CDATA[<p>Juste une paire de photos prises avec mon vieux compact et un minimum de retouches.</p>
<p style="text-align: center;"><img class="aligncenter size-large wp-image-46" title="dsc00063" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/01/dsc00063-1024x682.jpg" alt="dsc00063" width="450" height="300" /></p>
<p style="text-align: center;"><img class="aligncenter size-large wp-image-47" title="dsc00068" src="http://blogs.glou.org/arnaud/wp-content/uploads/2009/01/dsc00068-1024x682.jpg" alt="dsc00068" width="450" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.glou.org/arnaud/2009/01/28/le-louvre-by-night/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
