<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.taltan.fr/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Taltan.blog.bkp - Balise - photos</title>
  <link>http://www.taltan.fr/</link>
  <atom:link href="http://www.taltan.fr/feed/tag/photos/rss2" rel="self" type="application/rss+xml"/>
  <description>T'as le temps de partager ...</description>
  <language>fr</language>
  <pubDate>Fri, 03 Feb 2012 19:49:22 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Concaténer des images simplement en ligne de commandes</title>
    <link>http://www.taltan.fr/post/2011/09/17/Concatener-des-images-simplement-en-ligne-de-commandes</link>
    <guid isPermaLink="false">urn:md5:7c544d7dff16aff0c8eadad669313d58</guid>
    <pubDate>Sat, 17 Sep 2011 21:53:00 +0200</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>debian</category><category>libre</category><category>photos</category><category>scripts</category><category>Ubuntu</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/20100612124759_Imagemagick-logo.png&quot; title=&quot;20100612124759_Imagemagick-logo.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.20100612124759_Imagemagick-logo_t.jpg&quot; alt=&quot;20100612124759_Imagemagick-logo.png&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; title=&quot;20100612124759_Imagemagick-logo.png, sept. 2011&quot; /&gt;&lt;/a&gt;On ne présente plus &lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot;&gt;ImageMagick&lt;/a&gt;, une suite d'utilitaire en ligne de commandes incroyablement puissante qui permet de créer, de convertir, de modifier, d'afficher des images dans tous les formats possibles  et imaginables, couper, tordre, changer les couleurs, pivoter, additionner, soustraire, etc..... enfin bref, on peut quasiment tout faire, et tout cela en ligne de commande, donc en le combinant à un langage de script notre imagination ne suffirait pas à atteindre les limites&amp;nbsp;! La &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot;&gt;documentation ImageMagick sur le site Ubuntu-fr&lt;/a&gt;  donne un bref aperçu de sa puissance, quant la &lt;a href=&quot;http://www.imagemagick.org/www/command-line-options.html&quot;&gt;documentation officielle&lt;/a&gt; qui recense de manière exhaustive toutes les options, elle donne simplement le vertige tant les possibilités sont infinies&amp;nbsp;! Je vous présente ci dessous une seule commande dont je me sert relativement souvent, la concaténation d'image en deux temps trois mouvements&amp;nbsp;:&lt;/p&gt;    &lt;p&gt;Pour installer le paquet ImageMagick si vous ne l'avez pas déja&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;apt-get install imagemagick&lt;/pre&gt;


&lt;p&gt;Exemple pour concaténer n images de gauche à droite sans bordure&lt;/p&gt;

&lt;pre&gt;montage +frame +shadow +label -geometry +0+0 -tile nx1 image1.jpg image2.jpg image3.jpg ....... image(n-1).jpg image(n).jpg image_result.jpg&lt;/pre&gt;


&lt;p&gt;Pour concaténer de haut en bas, remplacer nx1 par 1xn&lt;/p&gt;


&lt;h4&gt;Exemple pour 3 images&lt;/h4&gt;

&lt;h5&gt;Images d'origines&lt;/h5&gt;

&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/concatenate_01.png&quot; alt=&quot;concatenate_01.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;

&lt;h5&gt;Concaténation de gauche à droite&lt;/h5&gt;

&lt;pre&gt;montage +frame +shadow +label -geometry +0+0 -tile 3x1 01.jpg 02.jpg 03.jpg image_result_lr.jpg&lt;/pre&gt;

&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/image_result_lr.jpg&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/concatenate_r01.png&quot; alt=&quot;concatenate_r01.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;Concaténation de haut en bas&lt;/h5&gt;

&lt;pre&gt;montage +frame +shadow +label -geometry +0+0 -tile 1x3 01.jpg 02.jpg 03.jpg image_result_tb.jpg&lt;/pre&gt;

&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/image_result_tb.jpg&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/concatenate_r02.png&quot; alt=&quot;concatenate_r02.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.taltan.fr/post/2011/09/17/Concatener-des-images-simplement-en-ligne-de-commandes#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2011/09/17/Concatener-des-images-simplement-en-ligne-de-commandes#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/127</wfw:commentRss>
      </item>
    
  <item>
    <title>Mise à jour script exif_photos_rename_1.2, renommer les photos selon les données EXIF</title>
    <link>http://www.taltan.fr/post/2008/07/10/Mise-a-jour-script-exif_photos_rename_12-renommer-les-photos-selon-les-donnees-EXIF</link>
    <guid isPermaLink="false">urn:md5:e18d83530f888383ec20b77a5ba603d3</guid>
    <pubDate>Thu, 10 Jul 2008 12:15:00 +0200</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>exif_photos_rename</category><category>gnome</category><category>libre</category><category>Linux</category><category>photos</category><category>scripts</category>    
    <description>    &lt;p&gt;En cette période de congés estivales, j'ai pu me replonger dans ce script que je voulais mettre à jour depuis un petit moment. Il permet de renommer massivement (via les &lt;a href=&quot;http://www.taltan.fr/post/2006/06/07/14-les-nautilus-scripts&quot;&gt;nautilus-scripts&lt;/a&gt;) une série de photos selon les données &lt;a href=&quot;http://fr.wikipedia.org/wiki/Exif&quot;&gt;EXIF&lt;/a&gt; sous la forme &lt;strong&gt;20061104_19.41_007.jpg&lt;/strong&gt;, les 3 derniers digits (ici *007*) étant un compteur qui s'incrémente.&lt;/p&gt;


&lt;p&gt;La première modification concerne l'utilisation de l'utilitaire &lt;a href=&quot;http://www.sno.phy.queensu.ca/~phil/exiftool/&quot;&gt;exiftool&lt;/a&gt; en lieu et place de &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot;&gt;imagemagick&lt;/a&gt; qui posait souci avec &lt;a href=&quot;http://doc.ubuntu-fr.org/hardy&quot;&gt;Ubuntu 8.04 LTS Hardy Heron&lt;/a&gt;. En effet avec la version native Hardy de imagemagick certaines commandes ne fonctionnaient plus, notamment la commande &lt;em&gt;identify -format &quot;%[EXIF:DateTime]&lt;/em&gt; qui retournait une ligne vide (voir le nota bene 3 à la fin de ce post). En outre je trouve que le traitement du script est plus rapide avec exiftool...&lt;/p&gt;


&lt;p&gt;La deuxième modification concerne l'affichage d'une boite de dialogue qui permet de suivre l'état d'avancement du traitement en pourcentage, bien plus clean que le déroulement du script dans la fenêtre zenity...&lt;/p&gt;


&lt;h4&gt;Dépendances&amp;nbsp;:&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://www.sno.phy.queensu.ca/~phil/exiftool/&quot;&gt;exiftool&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://library.gnome.org/users/zenity/index.html.fr&quot;&gt;zenity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;$ sudo apt-get install libimage-exiftool-perl zenity&lt;/pre&gt;


&lt;h4&gt;Script exif_photos_rename_v1.2.sh&amp;nbsp;:&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;09/07/08 - &lt;a href=&quot;http://www.taltan.fr/public/dl/exif_photos_rename_v1.2.sh&quot;&gt;v1.2&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Remplacement de imagemagick par exiftool pour le traitement&lt;/li&gt;
&lt;li&gt;Ajout boîte de dialogue de barre de progression en pourcentage&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;27/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/exif_photos_rename_v1.1.sh&quot;&gt;v1.1&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.taltan.fr/post/2007/07/16/Script-de-renommage-de-photos-selon-les-donnees-EXIF&quot;&gt;Script de renommage de photos selon les données EXIF&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Réorganisation&lt;/li&gt;
&lt;li&gt;Choix du début de numérotation, par défaut à 1&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;15/07/07  - &lt;a href=&quot;http://www.taltan.fr/public/dl/exif_photos_rename_v1.0.sh&quot;&gt;v1.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Création&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taltan - http://www.taltan.fr - ola.taltan_AT_laposte.net&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Script exif_photos_rename_v1.2.sh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Licence : GNU / GPL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Renomme les photos selon les données EXIF sous la forme :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# ${aa}-${mm}-${jj}_${hh}.${min}_${numero}.ext&amp;nbsp; =&amp;gt; ex : 20061104_19.41_007.jpg&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Fonctionne pour une numérotation de 001 à 999&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Dépendances&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet exiftool : http://www.sno.phy.queensu.ca/~phil/exiftool/&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet zenity : http://library.gnome.org/users/zenity/index.html.fr&amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; =&amp;gt; sudo apt-get install libimage-exiftool-perl zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 15/07/07 - v1.0 - Création&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 27/07/07 - v1.1 - Réorganisation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Choix du début de numérotation, par défaut à 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 09/07/08 - v1.2 - Remplacement de imagemagick par exiftool pour le traitement&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Ajout boîte de dialogue de barre de progression en pourcentage&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Variables&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;nb_param=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;erreur=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000066;&quot;&gt;typeset&lt;/span&gt; -i &lt;span style=&quot;color: #0000ff;&quot;&gt;CNT=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000066;&quot;&gt;typeset&lt;/span&gt; -i &lt;span style=&quot;color: #0000ff;&quot;&gt;CUR=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Fonctions début de numérotation&lt;/span&gt;&lt;br /&gt;
début_numerot &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numParam=&lt;/span&gt;`zenity --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Début de numérotation&amp;quot;&lt;/span&gt; --entry-&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt; --entry --text &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Par défaut à 1, à modifier le cas échéant :&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? -ne &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Annulation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Fonctions renommage des fichiers&lt;/span&gt;&lt;br /&gt;
rename_jpeg &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;for&lt;/span&gt; parametre &lt;span style=&quot;color: #b1b100;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;old_name=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;date_time=&lt;/span&gt;`exiftool &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt; | grep &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Create Date&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;extension=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$parametre&lt;/span&gt; | awk -F &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'{print $NF}'&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;aa=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f2 | cut -c2&lt;span style=&quot;color: #cc66cc;&quot;&gt;-5&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;mm=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f3`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;jj=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f4 | cut -c1&lt;span style=&quot;color: #cc66cc;&quot;&gt;-2&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;hh=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f4 | cut -c4&lt;span style=&quot;color: #cc66cc;&quot;&gt;-5&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;min=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f5`&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -lt &lt;span style=&quot;color: #cc66cc;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;9&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -lt &lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;new_nane=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;aa&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;mm&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;jj&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;_&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;hh&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;min&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;_&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;numero&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;extension&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$old_name&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${new_nane}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? = &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${old_name} =&amp;gt; ${new_nane} .... OK&amp;quot;&lt;/span&gt; &amp;gt;&amp;gt; /tmp/exif_photos_rename.log&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rm -f &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$old_name&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Impossible de renommer $old_name .... NOK&amp;quot;&lt;/span&gt; &amp;gt;&amp;gt; /tmp/exif_photos_rename.log&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;erreur += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;CUR=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$CNT&lt;/span&gt;*&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;/&lt;span style=&quot;color: #0000ff;&quot;&gt;$nb_param&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$CUR&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;#Traitement de $nb_param photos&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;${old_name} =&amp;gt; ${new_nane} ... en cours&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;Avancement: $CUR %&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt; &amp;quot;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;CNT=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$CNT&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;+1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;numParam += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;nb_renomme=&lt;/span&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$nb_param&lt;/span&gt; - &lt;span style=&quot;color: #0000ff;&quot;&gt;$erreur&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$erreur&lt;/span&gt; != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; touch /tmp/exif_photos_rename.err&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;#Fin de traitement : $nb_param fichiers&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;Fichiers renommés : $nb_renomme&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;Fichiers impossible à renommer : $erreur&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt; _!!_ Cliquer sur Valider pour afficher le rapport de traitement _!!_&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;#Fin de traitement : $nb_param fichiers&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;Fichiers renommés : $nb_renomme&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;Fichiers impossible à renommer : $erreur&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;OK, vous pouvez fermer en cliquant sur Valider !&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Fonctions affichage du rapport de traitement&lt;/span&gt;&lt;br /&gt;
affich_log &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; -f /tmp/exif_photos_rename.err &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cat /tmp/exif_photos_rename.log | zenity --text-info --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/tmp/exif_photos_rename.log&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
rm -f /tmp/exif_photos_rename.log&lt;br /&gt;
rm -f /tmp/exif_photos_rename.err&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Traitement&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; -eq &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zenity --error --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;error&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Selectioner au moins 1 fichier&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
début_numerot&lt;br /&gt;
rename_jpeg &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt; | zenity --progress --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;exif_photos_rename&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;percentage=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
affich_log&lt;/code&gt;


&lt;h4&gt;Mise en place&amp;nbsp;:&lt;/h4&gt;


&lt;p&gt;Placer le script exif_photos_rename_v1.2.sh dans le dossier ~/.gnome2/nautilus-scripts, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ sudo chmod +x ~/.gnome2/nautilus-scripts/exif_photos_rename_v1.2.sh&lt;/pre&gt;


&lt;h4&gt;Utilisation&amp;nbsp;:&lt;/h4&gt;


&lt;p&gt;Sélectionner les photos à traiter, puis clic droit / Scripts / exif_photos_rename_v1.2.sh&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_01.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_01.png&quot; alt=&quot;exif_photos_rename_v1.2_01.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;exif_photos_rename_v1.2_01.png, juil 2008&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Cliquer sur Valider ou modifier le début de numérotation le cas échéant&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_00.png&quot; alt=&quot;exif_photos_rename_00.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Le traitement s'effectue, l'état d'avancement en pourcentage s'affiche&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_02.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_02.png&quot; alt=&quot;exif_photos_rename_v1.2_02.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;exif_photos_rename_v1.2_02.png, juil 2008&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;A la fin du traitement&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;1. Si aucune erreur n'est détectée, une petite récap s'affiche&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_03.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_03.png&quot; alt=&quot;exif_photos_rename_v1.2_03.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;exif_photos_rename_v1.2_03.png, juil 2008&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;2. Si des fichiers n'ont pu être renommés&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_04.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_04.png&quot; alt=&quot;exif_photos_rename_v1.2_04.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;exif_photos_rename_v1.2_04.png, juil 2008&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_05.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_05.png&quot; alt=&quot;exif_photos_rename_v1.2_05.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;exif_photos_rename_v1.2_05.png, juil 2008&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;Résultat&amp;nbsp;:&lt;/h4&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_06.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_v1.2_06.png&quot; alt=&quot;exif_photos_rename_v1.2_06.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;exif_photos_rename_v1.2_06.png, juil 2008&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;NB 1&amp;nbsp;: _/!\_&lt;/strong&gt; Par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Principe_de_pr%C3%A9caution&quot;&gt;principe de précaution&lt;/a&gt;, je vous conseille de commencer à utiliser un script qui, au final supprime ou modifie un fichier, sur une copie de vos photos, histoire de voir que tout se passe bien &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;NB 2 :&lt;/strong&gt; Suite à un &lt;a href=&quot;http://www.taltan.fr/post/2007/07/16/Script-de-renommage-de-photos-selon-les-donnees-EXIF#c1553&quot;&gt;commentaire de Batchajan&lt;/a&gt; sur mon post sur &lt;a href=&quot;http://www.taltan.fr/post/2007/07/16/Script-de-renommage-de-photos-selon-les-donnees-EXIF&quot;&gt;exif_photos_rename_v1.1&lt;/a&gt;, j'ai également attaché à ce billet une variante de mon script, &lt;a href=&quot;http://www.taltan.fr/public/dl/exiftool_v1.0.sh&quot;&gt;exiftool_v1.0.sh&lt;/a&gt;. Batchajan l'a en effet modifié pour rajouter les fonctions suivantes&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Eviter le rerenommage d'une photo déjà moulinée&lt;/li&gt;
&lt;li&gt;Classer les photos renommées dans les répertoires aaaa/aaaa-mm&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Merci à Batchajan pour ces modifications, elles pourront être utiles... &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;NB 3 :&lt;/strong&gt; Utilisant imagemagick dans d'autres scripts sur mon Ubuntu 8.04 Hardy Heron, notamment &lt;a href=&quot;http://www.taltan.fr/tag/PhpWebGallery&quot;&gt;PhpWebGallery_create&lt;/a&gt;, j'ai du &lt;a href=&quot;http://www.imagemagick.org/script/install-source.php#unix&quot;&gt;compiler la dernière version stable de imagemagick&lt;/a&gt; à partir des &lt;a href=&quot;ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/&quot;&gt;sources&lt;/a&gt;&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;sudo apt-get install libfontconfig1-dev libjpeg62-dev libpng12-dev librsvg2-dev libtiff4-dev libjasper-dev libwmf-dev
&quot;télécharger la dernière version de ImageMagick-6.4.xx&quot; =&amp;gt; &lt;a href=&quot;ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/&quot;&gt;ftp://ftp.fu-berlin.de/unix/X11/graphics/ImageMagick/&lt;/a&gt;
tar -xvzf ImageMagick-6.4.xx
cd ImageMagick-6.4.xx
./configure
make
sudo make install&lt;/pre&gt;


&lt;p&gt;Puis après la compilation, j'ai rajouté à la fin de mon fichier ~/.bashrc la ligne&lt;/p&gt;


&lt;pre&gt;export LD_LIBRARY_PATH=/usr/local/lib&lt;/pre&gt;</description>
    
          <enclosure url="http://www.taltan.fr/public/dl/exif_photos_rename_v1.2.sh"
      length="4649" type="text/plain" />
          <enclosure url="http://www.taltan.fr/public/dl/exiftool_v1.0.sh"
      length="3660" type="text/plain" />
    
    
          <comments>http://www.taltan.fr/post/2008/07/10/Mise-a-jour-script-exif_photos_rename_12-renommer-les-photos-selon-les-donnees-EXIF#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2008/07/10/Mise-a-jour-script-exif_photos_rename_12-renommer-les-photos-selon-les-donnees-EXIF#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/88</wfw:commentRss>
      </item>
    
  <item>
    <title>Script PhpWebGallery_create maj v3.0.1</title>
    <link>http://www.taltan.fr/post/2007/08/26/Script-PhpWebGallery_create-maj-v301</link>
    <guid isPermaLink="false">urn:md5:9547f77c5fa1dfc50d46b9cd4488acb2</guid>
    <pubDate>Sun, 26 Aug 2007 08:47:00 +0200</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>gnome</category><category>libre</category><category>Linux</category><category>photos</category><category>PhpWebGallery</category><category>scripts</category>    
    <description>    &lt;p&gt;Voila une mise à jour du script PhpWebGallery_create, il passe en version v3.0.1, disponible &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.1.sh&quot;&gt;ici&lt;/a&gt;. Le seul changement est la possibilité de jouer sur la compression (variable COMPRESS_QUALITY_THUMB) des miniatures pour réduire au maximum leur poid.&lt;/p&gt;


&lt;p&gt;Historique&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;23/07/2007&amp;nbsp;: &lt;a href=&quot;http://www.taltan.fr/post/2007/07/23/Script-v3-de-generation-automatique-de-galeries-PhpWebGallery&quot;&gt;Script v3 de génération automatique de galeries PhpWebGallery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;18/07/2007&amp;nbsp;: &lt;a href=&quot;http://www.taltan.fr/post/2007/07/18/Script-v20-de-generation-automatique-de-galeries-PhpWebGallery&quot;&gt;Script v2 de génération automatique de galeries PhpWebGallery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;02/09/2006&amp;nbsp;: &lt;a href=&quot;http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery&quot;&gt;Script v1 de génération automatique de galeries PhpWebGallery&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Description&amp;nbsp;:&lt;/h3&gt;

&lt;p&gt;Script bash de génération automatique de galeries PhpWebGallery pour Linux, crée une arborescence prêt à être uploader.&lt;/p&gt;


&lt;h4&gt;Sur dossier&lt;/h4&gt;


&lt;p&gt;Soit à partir du navigateur de fichier en sélectionnant un dossier à traiter, soit en exécutant directement le script&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;Traitement récursif d'un dossier complet, crée un clone au format PWG de l'arborescence (sous-dossier compris) du dossier choisi, prêt à être uploader dans PWG. Il ne reste plus qu'a uploader le dossier sur le Web.&lt;/p&gt;


&lt;h4&gt;Sur photos&lt;/h4&gt;


&lt;p&gt;Soit à partir du navigateur de fichier en sélectionnant les photos à traiter, soit en exécutant directement le script&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;Créer une galerie au format PWG à partir des photos selectionnées Pwg, crée un dossier. Il ne reste plus qu'a uploader le dossier sur le Web.&lt;/p&gt;


&lt;h4&gt;Processus&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Demande du nom de la galerie&lt;/li&gt;
&lt;li&gt;Crée les dossier nécessaire dans le dossier courant&lt;/li&gt;
&lt;li&gt;Traite les images originales et les copie, 3 choix possibles
&lt;ol&gt;
&lt;li&gt;Aucun, déplacement de l'original&lt;/li&gt;
&lt;li&gt;Augmente la compression en gardant la résolution originale&lt;/li&gt;
&lt;li&gt;Réduit la résolution originale sans compression&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;Création des images affichées dans la galerie&lt;/li&gt;
&lt;li&gt;Création des miniatures&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;Plate-forme&amp;nbsp;:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Linux
&lt;ul&gt;
&lt;li&gt;Tout Linux, script &lt;a href=&quot;http://fr.wikipedia.org/wiki/Bourne-Again_shell&quot;&gt;bash&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Gnome via les &lt;a href=&quot;http://doc.ubuntu-fr.org/nautilus_scripts&quot;&gt;nautilus-script&lt;/a&gt; dans nautilus&lt;/li&gt;
&lt;li&gt;Kde via les &lt;a href=&quot;http://www.coagul.org/article.php3?id_article=91&quot;&gt;servicemenus&lt;/a&gt; dans konqueror, si une âme charitable voulait bien le porter avec kdialog&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Windows (possible car &lt;a href=&quot;http://www.imagemagick.org&quot;&gt;ImageMagick&lt;/a&gt; y est également porté), si une âme charitable..bis &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Dépendances&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot;&gt;imagemagick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;zenity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pour une distribution basée sur les .deb&lt;/p&gt;

&lt;pre&gt;$ apt-get install imagemagick zenity&lt;/pre&gt;

&lt;p&gt;Pour les autres rendez-vous &lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php#unix&quot;&gt;ici&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;PhpWebGallery_create_v3.0.1.sh&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;26/08/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.1.sh&quot;&gt;v3.0.1&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Rajout variable compression photos miniatures&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;23/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.sh&quot;&gt;v3.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Réorganisation&lt;/li&gt;
&lt;li&gt;Rajout de la fonctionnalité traitement d'un dossier recursivement&lt;/li&gt;
&lt;li&gt;Rajout de la fonctionnalité stand alone (sans selection de dossier ou fichier)&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;21/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.1.sh&quot;&gt;v2.1&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Fix bug orientation de la photo avec des noms de fichier avec des espaces&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;17/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.0.sh&quot;&gt;v2.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Ajout différents test avants éxécution&lt;/li&gt;
&lt;li&gt;Ajout de l'interface zenity&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;02/09/06 - &lt;a href=&quot;http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery&quot;&gt;v1.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Création&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Les variables suivantes sont à modifier (ou pas) selon vos besoins, c'est une histoire de compromis entre la taille, le poids et l'affichage souhaité.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Taille des photos miniatures&amp;nbsp;: THUMB_L=&quot;&lt;strong&gt;128&lt;/strong&gt;&quot; et THUMB_H=&quot;&lt;strong&gt;96&lt;/strong&gt;&quot;&lt;/li&gt;
&lt;li&gt;Compression des miniatures&amp;nbsp;: COMPRESS_QUALITY_THUMB=&quot;70&quot; (0=maximum, 100=aucune)&lt;/li&gt;
&lt;li&gt;Taille des photos à afficher dans phpwebgallery&amp;nbsp;: PICT_L=&quot;&lt;strong&gt;800&lt;/strong&gt;&quot; et PICT_H=&quot;&lt;strong&gt;600&lt;/strong&gt;&quot;&lt;/li&gt;
&lt;li&gt;Compression  des photos à afficher dans phpwebgallery&amp;nbsp;: COMPRESS=&quot;72&quot; (+ élevé = + de compression)&lt;/li&gt;
&lt;li&gt;Taille des photos, images tailles réelles&amp;nbsp;: REAL_L=&quot;&lt;strong&gt;1280&lt;/strong&gt;&quot; et REAL_H=&quot;&lt;strong&gt;1024&lt;/strong&gt;&quot; (fixe la hauteur ou la largeur selon l'orientation)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Mise en place&lt;/h3&gt;


&lt;h4&gt;Via les nautilus script de gnome&lt;/h4&gt;

&lt;p&gt;Placer le script &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.1.sh&quot;&gt;PhpWebGallery_create_v3.0.1.sh&lt;/a&gt; dans le dossier ~/.gnome2/nautilus-scripts, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ chmod +x ~/.gnome2/nautilus-scripts/PhpWebGallery_create_v3.0.1.sh&lt;/pre&gt;

&lt;p&gt;Exécution&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Soit via le nautilus scripts, sélectionner les photos (ou un dossier) puis clic droit / Scripts / PhpWebGallery_create.sh&lt;/li&gt;
&lt;li&gt;Soit en stand alone en exécutant directement ~/.gnome2/nautilus-scripts/PhpWebGallery_create_v3.0.sh sans paramêtre, vous pouvez également rajouter un lanceur dans le tableau de bord&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;En stand alone&lt;/h4&gt;

&lt;p&gt;Placer le script &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.1.sh&quot;&gt;PhpWebGallery_create_v3.0.1.sh&lt;/a&gt; dans le dossier /sbin, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ chmod +x /bin/PhpWebGallery_create_v3.0.1.sh&lt;/pre&gt;


&lt;h3&gt;Utilisation&lt;/h3&gt;


&lt;p&gt;Documentation disponible &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.pdf&quot;&gt;ici&lt;/a&gt; en PDF et en annexe&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;NB&amp;nbsp;: _/!\_&lt;/strong&gt; Par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Principe_de_pr%C3%A9caution&quot;&gt;principe de précaution&lt;/a&gt;, je vous conseille de commencer à utiliser un script qui, au final supprime ou modifie un fichier, sur une copie de vos photos, histoire de voir que tout se passe bien &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;h3&gt;Références&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/doc/doku.php&quot;&gt;Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://download.gna.org/phpwebgallery/&quot;&gt;Téléchargement&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery_create sur PhpWebGallery&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/doc/doku.php/fr:utiliser:preparer_les_photos#avec_phpwebgallery_create_sous_linux&quot;&gt;Wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?id=11311&quot;&gt;Forum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/ext/extension_view.php?eid=150&quot;&gt;Extensions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Script Inspiré du script &lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?id=5522&quot;&gt;Rep2Thumb.sh&lt;/a&gt; de Gothico et &lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?pid=37829&quot;&gt;gallery.sh&lt;/a&gt; de wiloo&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot;&gt;imageMagick&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/command-line-tools.php&quot;&gt;Documentation Command-line Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php&quot;&gt;Téléchargement&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;Documentation de zenity&lt;/a&gt; + l'aide de gnome&lt;/li&gt;
&lt;/ul&gt;</description>
    
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.1.sh"
      length="30370" type="text/plain" />
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.pdf"
      length="963874" type="application/pdf" />
    
    
          <comments>http://www.taltan.fr/post/2007/08/26/Script-PhpWebGallery_create-maj-v301#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2007/08/26/Script-PhpWebGallery_create-maj-v301#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/68</wfw:commentRss>
      </item>
    
  <item>
    <title>Script v3 de génération automatique de galeries PhpWebGallery</title>
    <link>http://www.taltan.fr/post/2007/07/23/Script-v3-de-generation-automatique-de-galeries-PhpWebGallery</link>
    <guid isPermaLink="false">urn:md5:7cfdd99af01f4000c88e536b1cdf02bb</guid>
    <pubDate>Mon, 23 Jul 2007 22:59:00 +0200</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>gnome</category><category>libre</category><category>Linux</category><category>photos</category><category>PhpWebGallery</category><category>scripts</category>    
    <description>    &lt;p&gt;Pour faire suite à ces billet&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;18/07/2007&amp;nbsp;: &lt;a href=&quot;http://www.taltan.fr/post/2007/07/18/Script-v20-de-generation-automatique-de-galeries-PhpWebGallery&quot;&gt;Script v2 de génération automatique de galeries PhpWebGallery&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;02/09/2006&amp;nbsp;: &lt;a href=&quot;http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery&quot;&gt;Script v1 de génération automatique de galeries PhpWebGallery&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Voila la version 3 du script PhpWebGallery_create avec deux nouvelles fonctionnalités&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Traitement récursif d'un dossier complet, crée un clone au &lt;a href=&quot;http://www.taltan.fr/public/images/pwg_v3_arbo.png&quot;&gt;format PWG&lt;/a&gt; de l'arborescence (sous dossier compris) du dossier choisi, prêt à être uploader dans PWG&lt;/li&gt;
&lt;li&gt;Mode stand alone&amp;nbsp;: fonctionne sans argument (demande le type de traitement&amp;nbsp;: dossier ou photos)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Encore un pas de plus vers le &quot;user-friendly&quot; car il n'est plus obligatoire de l'utiliser via les &lt;a href=&quot;http://www.taltan.fr/post/2006/06/07/14-les-nautilus-scripts&quot;&gt;nautilus scripts&lt;/a&gt;, il se suffit à lui même. Vous pouvez quand même l'intégrer à Nautilus, comme les versions précédentes.&lt;/p&gt;


&lt;h3&gt;Plate-forme&amp;nbsp;:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Linux
&lt;ul&gt;
&lt;li&gt;Tout Linux, script &lt;a href=&quot;http://fr.wikipedia.org/wiki/Bourne-Again_shell&quot;&gt;bash&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Gnome via les &lt;a href=&quot;http://doc.ubuntu-fr.org/nautilus_scripts&quot;&gt;nautilus-script&lt;/a&gt; dans nautilus&lt;/li&gt;
&lt;li&gt;Kde via les &lt;a href=&quot;http://www.coagul.org/article.php3?id_article=91&quot;&gt;servicemenus&lt;/a&gt; dans konqueror, si une âme charitable voulait bien le porter avec kdialog&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Windows (possible car &lt;a href=&quot;http://www.imagemagick.org&quot;&gt;ImageMagick&lt;/a&gt; y est également porté), si une âme charitable..bis &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Dépendances&amp;nbsp;:&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot;&gt;imagemagick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;zenity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pour une distribution basée sur les .deb&lt;/p&gt;

&lt;pre&gt;$ apt-get install imagemagick zenity&lt;/pre&gt;

&lt;p&gt;Pour les autres rendez-vous &lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php#unix&quot;&gt;ici&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;PhpWebGallery_create_v3.0.sh&amp;nbsp;:&lt;/h3&gt;


&lt;p&gt;Le code s'étant quelque peu empâté (il est en effet passé d'environ 150 lignes à plus de 600 !), je vous en épargne l'affichage ici &lt;img src=&quot;/themes/default/smilies/smile.png&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;23/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.sh&quot;&gt;v3.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Réorganisation&lt;/li&gt;
&lt;li&gt;Rajout de la fonctionnalité traitement d'un dossier recursivement&lt;/li&gt;
&lt;li&gt;Rajout de la fonctionnalité stand alone (sans selection de dossier ou fichier)&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;21/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.1.sh&quot;&gt;v2.1&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Fix bug orientation de la photo avec des noms de fichier avec des espaces&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;17/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.0.sh&quot;&gt;v2.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Ajout différents test avants éxécution&lt;/li&gt;
&lt;li&gt;Ajout de l'interface zenity&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;02/09/06 - &lt;a href=&quot;http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery&quot;&gt;v1.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Création&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Les variables suivantes sont à modifier (ou pas) selon vos besoins, c'est une histoire de compromis entre la taille, le poids et l'affichage souhaité.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Taille des photos miniatures&amp;nbsp;: THUMB_L=&quot;&lt;strong&gt;128&lt;/strong&gt;&quot; et THUMB_H=&quot;&lt;strong&gt;96&lt;/strong&gt;&quot;&lt;/li&gt;
&lt;li&gt;Taille des photos à afficher dans phpwebgallery&amp;nbsp;: PICT_L=&quot;&lt;strong&gt;800&lt;/strong&gt;&quot; et PICT_H=&quot;&lt;strong&gt;600&lt;/strong&gt;&quot;&lt;/li&gt;
&lt;li&gt;Taille des photos, images tailles réelles&amp;nbsp;: REAL_L=&quot;&lt;strong&gt;1280&lt;/strong&gt;&quot; et REAL_H=&quot;&lt;strong&gt;1024&lt;/strong&gt;&quot; (fixe la hauteur ou la largeur selon l'orientation)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Mise en place&amp;nbsp;:&lt;/h3&gt;


&lt;h4&gt;Via les nautilus script de gnome&lt;/h4&gt;

&lt;p&gt;Placer le script &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.sh&quot;&gt;PhpWebGallery_create_v3.0.sh&lt;/a&gt; dans le dossier ~/.gnome2/nautilus-scripts, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ chmod +x ~/.gnome2/nautilus-scripts/PhpWebGallery_create_v3.0.sh&lt;/pre&gt;

&lt;p&gt;Exécution&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Soit via le nautilus scripts, sélectionner les photos (ou un dossier) puis clic droit / Scripts / PhpWebGallery_create.sh&lt;/li&gt;
&lt;li&gt;Soit en stand alone en exécutant directement ~/.gnome2/nautilus-scripts/PhpWebGallery_create_v3.0.sh sans paramêtre, vous pouvez également rajouter un lanceur dans le tableau de bord&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;En stand alone&lt;/h4&gt;

&lt;p&gt;Placer le script &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.sh&quot;&gt;PhpWebGallery_create_v3.0.sh&lt;/a&gt; dans le dossier /sbin, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ chmod +x /bin/PhpWebGallery_create_v3.0.sh&lt;/pre&gt;


&lt;h3&gt;Utilisation&amp;nbsp;:&lt;/h3&gt;


&lt;p&gt;Même remarque que pour l'empâtement du code (légère surcharge en screenshot), disponible &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.pdf&quot;&gt;ici&lt;/a&gt; en PDF et en annexe&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;NB&amp;nbsp;: _/!\_&lt;/strong&gt; Par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Principe_de_pr%C3%A9caution&quot;&gt;principe de précaution&lt;/a&gt;, je vous conseille de commencer à utiliser un script qui, au final supprime ou modifie un fichier, sur une copie de vos photos, histoire de voir que tout se passe bien &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;h3&gt;Références&amp;nbsp;:&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/doc/doku.php&quot;&gt;Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://download.gna.org/phpwebgallery/&quot;&gt;Téléchargement&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery_create sur PhpWebGallery&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/doc/doku.php/fr:utiliser:preparer_les_photos#avec_phpwebgallery_create_sous_linux&quot;&gt;Wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?id=11311&quot;&gt;Forum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/ext/extension_view.php?eid=150&quot;&gt;Extensions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Script Inspiré du script &lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?id=5522&quot;&gt;Rep2Thumb.sh&lt;/a&gt; de Gothico et &lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?pid=37829&quot;&gt;gallery.sh&lt;/a&gt; de wiloo&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot;&gt;imageMagick&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/command-line-tools.php&quot;&gt;Documentation Command-line Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php&quot;&gt;Téléchargement&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;Documentation de zenity&lt;/a&gt; + l'aide de gnome&lt;/li&gt;
&lt;/ul&gt;</description>
    
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.0.sh"
      length="30117" type="text/plain" />
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v3.pdf"
      length="963874" type="application/pdf" />
    
    
          <comments>http://www.taltan.fr/post/2007/07/23/Script-v3-de-generation-automatique-de-galeries-PhpWebGallery#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2007/07/23/Script-v3-de-generation-automatique-de-galeries-PhpWebGallery#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/65</wfw:commentRss>
      </item>
    
  <item>
    <title>Script v2 de génération automatique de galeries PhpWebGallery</title>
    <link>http://www.taltan.fr/post/2007/07/18/Script-v20-de-generation-automatique-de-galeries-PhpWebGallery</link>
    <guid isPermaLink="false">urn:md5:59a134c5e66095d99cd71a099e6d4e20</guid>
    <pubDate>Wed, 18 Jul 2007 23:59:00 +0200</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>gnome</category><category>libre</category><category>Linux</category><category>photos</category><category>PhpWebGallery</category><category>scripts</category>    
    <description>    &lt;p&gt;Pour faire suite à &lt;a href=&quot;http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery&quot;&gt;mon billet&lt;/a&gt; sur la création de galeries &lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery&lt;/a&gt; voila la version 2.0 du script. Je vais donc passer rapidement sur la présentation de &lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery&lt;/a&gt;, logiciel sous licence &lt;a href=&quot;http://fr.wikipedia.org/wiki/GNU_GPL&quot;&gt;GNU/GPL&lt;/a&gt; de présentation de photos sur le web basé sur le couple &lt;a href=&quot;http://fr.wikipedia.org/wiki/PHP:_Hypertext_Preprocessor&quot;&gt;PHP&lt;/a&gt; / &lt;a href=&quot;http://fr.wikipedia.org/wiki/MySQL&quot;&gt;MySQL&lt;/a&gt;, en demo &lt;a href=&quot;http://demo.phpwebgallery.net/&quot;&gt;ici&lt;/a&gt;. Cette nouvelle version, associé au &lt;a href=&quot;http://www.taltan.fr/post/2006/06/07/14-les-nautilus-scripts&quot;&gt;scripts nautilus&lt;/a&gt;, se veut plus &quot;user-friendly&quot;, tout se fait le plus simplement possible (à la souris) et surtout, contrairement à la v1.0, les erreurs sont gérées et le déroulement du traitement est visible.&lt;/p&gt;


&lt;p&gt;Le processus d'import de galerie dans PhpWebGallery (Pwg) est assez simple, il suffit d'uploader les photos via &lt;a href=&quot;http://fr.wikipedia.org/wiki/Ftp&quot;&gt;FTP&lt;/a&gt; (je vous conseille au passage l'excellente extension &lt;a href=&quot;http://www.mozilla-europe.org/fr/products/firefox/&quot;&gt;Firefox&lt;/a&gt; qu'est &lt;a href=&quot;http://extensions.geckozone.org/FireFTP&quot;&gt;FireFTP&lt;/a&gt;) et de se rendre sur l'interface d'administration pour synchroniser les galeries. Comme souligné dans le &lt;a href=&quot;http://phpwebgallery.net/doc/doku.php/fr:fr&quot;&gt;Wiki Pwg&lt;/a&gt;, il est recommandé de &lt;a href=&quot;http://phpwebgallery.net/doc/doku.php/fr:utiliser:preparer_les_photos&quot;&gt;traiter les photos avant de les importer dans Pwg&lt;/a&gt; afin de travailler sur l'arborescence, les résolutions, les tailles de fichiers, les miniatures.&lt;/p&gt;


&lt;p&gt;Pour Pwg une galerie est un dossier, par exemple la galerie nommé Galerie_test&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;|+- Gallerie_test
|   |+- pwg_high  &lt;strong&gt;=&amp;gt;  &lt;em&gt;dossier contenant les images tailles réelles, haute résolution&lt;/em&gt;&lt;/strong&gt;
|   |   |-- img_01.jpg
|   |   |-- img_02.jpg 
|   |   |-- img_03.jpg
|   |+- thumbnail  &lt;strong&gt;=&amp;gt; &lt;em&gt;dossier contenant les miniatures, taille 128x98 par exemple&lt;/em&gt;&lt;/strong&gt;
|   |   |-- TN-img_01.jpg       &lt;em&gt;les miniatures doivent reprendre&lt;/em&gt;
|   |   |-- TN-img_02.jpg           &lt;em&gt;le nom de l'image originale&lt;/em&gt;              
|   |   |-- TN-img_03.jpg               &lt;em&gt; avec le préfixe TN-&lt;/em&gt; 
|   |-- img_01.jpg
|   |-- img_02.jpg  &lt;strong&gt;=&amp;gt; &lt;em&gt;photos de la Galerie_test, taille 800x600 par exemple&lt;/em&gt;&lt;/strong&gt;
|   |-- img_03.jpg&lt;/pre&gt;


&lt;p&gt;la finalité de PhpWebGallery_create est, qu'à partir du navigateur de fichier, on sélectionne des photos, qu'on fasse un clic droit / Créer une galerie, qu'on renseigne le nom de la galerie et ... c'est tout. Un dossier respectant la nomenclature et l'arborescence Pwg (comme décris ci-dessus) contenant les photos sera créé. Il ne reste plus qu'a uploader le dossier sur le Web.&lt;/p&gt;


&lt;h3&gt;Plate-forme&amp;nbsp;:&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Gnome via les &lt;a href=&quot;http://doc.ubuntu-fr.org/nautilus_scripts&quot;&gt;nautilus-script&lt;/a&gt; dans nautilus&lt;/li&gt;
&lt;li&gt;Kde (script à adapter à kdialog) via les &lt;a href=&quot;http://www.coagul.org/article.php3?id_article=91&quot;&gt;servicemenus&lt;/a&gt; dans konqueror mais je ne traiterai ici que de Gnome et nautilus&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Dépendances&amp;nbsp;:&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot;&gt;imagemagick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;zenity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pour une distribution basée sur les .deb&lt;/p&gt;

&lt;pre&gt;$ apt-get install imagemagick zenity&lt;/pre&gt;

&lt;p&gt;Pour les autres rendez-vous &lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php#unix&quot;&gt;ici&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;PhpWebGallery_create_v2.1.sh&amp;nbsp;:&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;21/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.1.sh&quot;&gt;v2.1&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Fix bug orientation de la photo avec des noms de fichier avec des espaces&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;17/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.0.sh&quot;&gt;v2.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Ajout différents test avants éxécution&lt;/li&gt;
&lt;li&gt;Ajout de l'interface zenity&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;02/09/06 - &lt;a href=&quot;http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery&quot;&gt;v1.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Création&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taltan - http://www.taltan.fr - ola.taltan_AT_laposte.net&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# http://www.taltan.fr/post/2007/07/18/Script-v20-de-generation-automatique-de-galeries-PhpWebGallery#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Script PhpWebGallery_create_v2.1.sh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Licence : GNU / GPL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Inspiré du script Rep2Thumb.sh de Gothico&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; http://forum.phpwebgallery.net/viewtopic.php?id=5522&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Inspiré du script gallery.sh de wiloo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; http://forum.phpwebgallery.net/viewtopic.php?pid=37829&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Script de création de galerie pour PhpWebGallery&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# A intégrer dans les nautilus script (applicable aux fichiers selectionnés)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création de miniatures&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création de photos redimensionnées&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Dépendances&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet imagemagick : http://doc.ubuntu-fr.org/imagemagick&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; =&amp;gt; sudo apt-get install imagemagick zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 02/09/06 - v1.0 - Création&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 17/09/07 - v2.0 - Ajout différents test avants éxécution&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Ajout de l'interface zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 21/09/07 - v2.1 - Fix bug orientation de la photo avec des noms de fichier avec des espaces&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## CONFIGURATION&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ##&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# vérifie si imagemagick est installé&lt;/span&gt;&lt;br /&gt;
which convert &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&amp;gt;/dev/null&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zenity --error --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Erreur&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;La paquet Imagemagick n'est pas installé&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#teste si au moins 1 fichier est selectioné&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -eq 0 ]; then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zenity --error --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Erreur&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Selectionner au moins 1 fichier&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Chemin complet de la galerie à créer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;GALLERY_PATH=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;`pwd`&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Nom de la galerie&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; ! &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALERY_NAME&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Réafficher la fenetre tant que l'utilisateur n'a pas fait de choix&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;GALERY_NAME=&lt;/span&gt;`zenity --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Nom de la galerie&amp;quot;&lt;/span&gt; --entry --text &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Entrer le nom de la galerie&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? -ne &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Annulation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Nom du répertoire à créer pour les miniatures&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# (&amp;quot;thumbnail&amp;quot; par défaut dans phpwebgallery)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_DIR=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;thumbnail&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Nom du répertoire à créer pour les images tailles réelles&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# (&amp;quot;pwg_high&amp;quot; par défaut dans phpwebgallery)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_DIR=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;pwg_high&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Préfixe des miniatures&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_PREFIX=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;TN-&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## L pour Largeur&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## H pour Hauteur&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taille des photos miniatures&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;128&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;96&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taille des photos à afficher dans phpwebgallery&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;800&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;600&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taille des photos images tailles réelles dans REAL_DIR&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1280&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1024&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Garder les données EXIF ou non&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Avec EXIF =&amp;gt; &amp;quot;&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Sans EXIF =&amp;gt; &amp;quot;-strip&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;EXIF=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Choix du traitement pour l'image en taille réelle&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; ! &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$TRAIT_REAL_CHOICE&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Réafficher la fenetre tant que l'utilisateur n'a pas fait de choix&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;TRAIT_REAL_CHOICE=&lt;/span&gt;`zenity --list --&lt;span style=&quot;color: #0000ff;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;200&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Choisissez le type de traitement pour l'image en taille réelle&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&lt;span style=&quot;color: #0000ff;&quot;&gt;column=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;N°&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;column=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Description&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Aucun, déplacement de l'original&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Augmente la compression en gardant la résolution originale&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Réduit la résolution originale sans compression&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;###### Choix -&amp;gt; Sortie boucle ######&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? -ne &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Annulation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$TRAIT_REAL_CHOICE&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Déplacement de l'original dans le répertoire configuré pour les mages tailles réelles&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$TRAIT_REAL_CHOICE&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;b&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Augmente la compression en gardant la résolution originale&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert -density &lt;span style=&quot;color: #cc66cc;&quot;&gt;72&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$EXIF&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$TRAIT_REAL_CHOICE&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;c&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Réduit la résolition originale sans compression&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert &lt;span style=&quot;color: #0000ff;&quot;&gt;$EXIF&lt;/span&gt; -resize &lt;span style=&quot;color: #0000ff;&quot;&gt;$REAL_SIZE&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## TRAITEMENT DES IMAGES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ##&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création des miniatures dans le répertoire configuré&lt;/span&gt;&lt;br /&gt;
mkdir &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME&amp;quot;&lt;/span&gt;&lt;br /&gt;
mkdir &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$THUMB_DIR&amp;quot;&lt;/span&gt;&lt;br /&gt;
mkdir &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;numParam=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;erreur=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;nb_param=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;for&lt;/span&gt; parametre &lt;span style=&quot;color: #b1b100;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Orientation de la photo&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;`identify &lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&amp;quot;&lt;/span&gt;$parametre&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&amp;quot;&lt;/span&gt; | sed s/JPEG/^/g | cut -d^ -f2 | cut -d&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\ &lt;/span&gt; -f2 | cut -dx -f1`&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;`identify &lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&amp;quot;&lt;/span&gt;$parametre&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&amp;quot;&lt;/span&gt; | sed s/JPEG/^/g | cut -d^ -f2 | cut -d&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\ &lt;/span&gt; -f2 | cut -dx -f2`&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$L&lt;/span&gt; -gt &lt;span style=&quot;color: #0000ff;&quot;&gt;$H&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${THUMB_L}x${THUMB_H}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${PICT_L}x${PICT_H}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${REAL_L}x${REAL_H}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${THUMB_H}x${THUMB_L}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${PICT_H}x${PICT_L}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${REAL_H}x${REAL_L}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${numParam}. Traitement de $parametre : .... OK &amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# traitement pour l'image en taille réelle&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #0000ff;&quot;&gt;$parametre&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création des images affichées dans la galerie&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert -density &lt;span style=&quot;color: #cc66cc;&quot;&gt;72&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$EXIF&lt;/span&gt; -resize &lt;span style=&quot;color: #0000ff;&quot;&gt;$PICT_SIZE&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$parametre&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création des miniatures dans le répertoire configuré pour les miniature&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert -thumbnail &lt;span style=&quot;color: #0000ff;&quot;&gt;$THUMB_SIZE&lt;/span&gt; -density &lt;span style=&quot;color: #cc66cc;&quot;&gt;72&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$THUMB_DIR/$THUMB_PREFIX$parametre&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;numParam += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fin de traitement : $# fichiers &amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;OK, vous pouvez fermer !&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt; | zenity --text-info --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;PhpWebGallery_create&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;Les variables suivantes sont à modifier (ou pas) selon vos besoins, c'est une histoire de compromis entre la taille, le poids et l'affichage souhaité.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Taille des photos miniatures&amp;nbsp;: THUMB_L=&quot;&lt;strong&gt;128&lt;/strong&gt;&quot; et THUMB_H=&quot;&lt;strong&gt;96&lt;/strong&gt;&quot;&lt;/li&gt;
&lt;li&gt;Taille des photos à afficher dans phpwebgallery&amp;nbsp;: PICT_L=&quot;&lt;strong&gt;800&lt;/strong&gt;&quot; et PICT_H=&quot;&lt;strong&gt;600&lt;/strong&gt;&quot;&lt;/li&gt;
&lt;li&gt;Taille des photos, images tailles réelles&amp;nbsp;: REAL_L=&quot;&lt;strong&gt;1280&lt;/strong&gt;&quot; et REAL_H=&quot;&lt;strong&gt;1024&lt;/strong&gt;&quot; (fixe la hauteur ou la largeur selon l'orientation)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Mise en place&amp;nbsp;:&lt;/h3&gt;


&lt;p&gt;Placer le script &lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.0.sh&quot;&gt;PhpWebGallery_create_v2.0.sh&lt;/a&gt; dans le dossier ~/.gnome2/nautilus-scripts, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ chmod +x ~/.gnome2/nautilus-scripts/PhpWebGallery_create_v2.0.sh&lt;/pre&gt;


&lt;h3&gt;Utilisation&amp;nbsp;:&lt;/h3&gt;


&lt;p&gt;&lt;strong&gt;NB&amp;nbsp;: _/!\_&lt;/strong&gt; Par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Principe_de_pr%C3%A9caution&quot;&gt;principe de précaution&lt;/a&gt;, je vous conseille de commencer à utiliser un script qui, au final supprime ou modifie un fichier, sur une copie de vos photos, histoire de voir que tout se passe bien &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Supposons que vous voulez créer une galerie nommée Galerie_test à partir des photos situées dans le dossier Dossier_test&lt;/p&gt;

&lt;pre&gt;|+- Dossier_test
|   |-- img_01.jpg
|   |-- img_02.jpg
|   |-- img_03.jpg&lt;/pre&gt;


&lt;p&gt;Sélection des photos du Dossier_test, puis clic droit / Scripts / PhpWebGallery_create_v2.0.sh&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/pwg_create00.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.pwg_create00_s.jpg&quot; alt=&quot;pwg_create00.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Renseigner le nom de la galerie, Galerie_test&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/pwg_create01.png&quot; alt=&quot;pwg_create01.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Sélectionner le traitement voulu pour les images &quot;tailles réelles&quot;, toujours la même histoire de compromis entre la taille, le poids et l'affichage souhaité&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/pwg_create02.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/pwg_create02.png&quot; alt=&quot;pwg_create02.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Une fois le traitement terminé&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/pwg_create03.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.pwg_create03_s.jpg&quot; alt=&quot;pwg_create03.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Le dossier Dossier_test a l'arborescence ci-dessous (en gras les dossiers et fichiers créés)&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;|+- Dossier_test
|   &lt;strong&gt;|+- Gallerie_test&lt;/strong&gt;
|   &lt;strong&gt;|   |+- pwg_high&lt;/strong&gt;
|   &lt;strong&gt;|   |   |-- img_01.jpg&lt;/strong&gt;
|   &lt;strong&gt;|   |   |-- img_02.jpg&lt;/strong&gt; 
|   &lt;strong&gt;|   |   |-- img_03.jpg&lt;/strong&gt;
|   &lt;strong&gt;|   |+- thumbnail&lt;/strong&gt;
|   &lt;strong&gt;|   |   |-- TN-img_01.jpg&lt;/strong&gt;
|   &lt;strong&gt;|   |   |-- TN-img_02.jpg&lt;/strong&gt;
|   &lt;strong&gt;|   |   |-- TN-img_03.jpg&lt;/strong&gt;
|  &lt;strong&gt; |   |-- img_01.jpg&lt;/strong&gt;
|   &lt;strong&gt;|   |-- img_02.jpg&lt;/strong&gt;
|   &lt;strong&gt;|   |-- img_03.jpg&lt;/strong&gt;
|   |-- img_01.jpg
|   |-- img_02.jpg
|   |-- img_03.jpg&lt;/pre&gt;


&lt;p&gt;Le dossier &lt;strong&gt;Galerie_test&lt;/strong&gt; est prêt à être uploader sur le Web dans Pwb&lt;/p&gt;


&lt;h3&gt;Références&amp;nbsp;:&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Script Inspiré du script &lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?id=5522&quot;&gt;Rep2Thumb.sh&lt;/a&gt; de Gothico et &lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?pid=37829&quot;&gt;gallery.sh&lt;/a&gt; de wiloo&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/doc/doku.php&quot;&gt;Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://download.gna.org/phpwebgallery/&quot;&gt;Téléchargement&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/?lang=fr&quot;&gt;PhpWebGallery_create sur PhpWebGallery&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/doc/doku.php/fr:utiliser:preparer_les_photos#avec_phpwebgallery_create_sous_linux&quot;&gt;Wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?id=11311&quot;&gt;Forum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://phpwebgallery.net/ext/extension_view.php?eid=150&quot;&gt;Extensions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot;&gt;imageMagick&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/command-line-tools.php&quot;&gt;Documentation Command-line Tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php&quot;&gt;Téléchargement&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;Documentation de zenity&lt;/a&gt; + l'aide de gnome&lt;/li&gt;
&lt;/ul&gt;</description>
    
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.0.sh"
      length="7378" type="text/plain" />
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.1.sh"
      length="7547" type="text/plain" />
    
    
          <comments>http://www.taltan.fr/post/2007/07/18/Script-v20-de-generation-automatique-de-galeries-PhpWebGallery#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2007/07/18/Script-v20-de-generation-automatique-de-galeries-PhpWebGallery#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/63</wfw:commentRss>
      </item>
    
  <item>
    <title>Script de renommage de photos selon les données EXIF</title>
    <link>http://www.taltan.fr/post/2007/07/16/Script-de-renommage-de-photos-selon-les-donnees-EXIF</link>
    <guid isPermaLink="false">urn:md5:b2c2f8b9e7eea4a8c643ebcab03974e7</guid>
    <pubDate>Tue, 17 Jul 2007 09:14:00 +0200</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>exif_photos_rename</category><category>gnome</category><category>libre</category><category>Linux</category><category>photos</category><category>PhpWebGallery</category><category>scripts</category><category>Ubuntu</category>    
    <description>    &lt;p&gt;Avec les photos numériques on ne compte pas, on prend des dizaines (voir des centaines) de photos puis on les importe sur le &lt;a href=&quot;http://fr.wikipedia.org/wiki/Compatible_PC&quot;&gt;PC&lt;/a&gt; pour les trier. Personnellement j'utilise &lt;a href=&quot;http://gthumb.sourceforge.net/&quot;&gt;gThumb&lt;/a&gt; car il est léger, simple à utiliser, n'est pas usine à gaz, dispose de fonctionnalités assez avancées et en plus est intégré nativement dans Ubuntu.
Le premier de ces tris est le renommage, j'ai l'habitude de renommer mes photos en fonction de la date de prise de vue (+ une numérotation) ce qui permet par la suite d'effectuer un tri chronologique dans l'explorateur de fichiers et d'avoir un nom unique.&lt;/p&gt;


&lt;p&gt;il est possible de renommer massivement des photos en fonction des données &lt;a href=&quot;http://fr.wikipedia.org/wiki/Exif&quot;&gt;EXIF&lt;/a&gt; avec gThumb mais le meilleur résultat que j'ai pu en tirer est un nom de fichier sous la forme &lt;strong&gt;2006-11-04--19.41.56_007.jpg&lt;/strong&gt;.  C'est presque le résultat attendu sauf que je n'ai pas trouvé le moyen d'enlever le double tiret et les secondes qui sont superflus. Voila le pourquoi de ce script, utilisé via les &lt;a href=&quot;http://www.taltan.fr/post/2006/06/07/14-les-nautilus-scripts&quot;&gt;scripts nautilus&lt;/a&gt;, en deux clics il permet de renommer une série de photos sous la forme &lt;strong&gt;2006-11-04_19.41_007.jpg&lt;/strong&gt;&lt;/p&gt;


&lt;h4&gt;Dépendances&amp;nbsp;:&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot;&gt;imagemagick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Nécessite le paquet &lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;zenity&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;pre&gt;$ sudo apt-get install imagemagick zenity&lt;/pre&gt;


&lt;h4&gt;Script exif_photos_rename_v1.1.sh&amp;nbsp;:&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;27/07/07 - &lt;a href=&quot;http://www.taltan.fr/public/dl/exif_photos_rename_v1.1.sh&quot;&gt;v1.1&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Réorganisation&lt;/li&gt;
&lt;li&gt;Choix du début de numérotation, par défaut à 1&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;15/07/07  - &lt;a href=&quot;http://www.taltan.fr/public/dl/exif_photos_rename_v1.0.sh&quot;&gt;v1.0&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Création&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taltan - http://www.taltan.fr -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Script exif_photos_rename_v1.1.sh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Licence : GNU / GPL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Renomme les photos selon les données EXIF sous la forme :&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# ${aa}-${mm}-${jj}_${hh}.${min}_${numero}.ext&amp;nbsp; =&amp;gt; ex : 2006-11-04_19.41_007.jpg&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Fonctionne pour une numérotation de 001 à 999&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Dépendances&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet imagemagick : http://doc.ubuntu-fr.org/imagemagick&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; =&amp;gt; sudo apt-get install imagemagick zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 15/07/07 - v1.0 - Création&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 27/07/07 - v1.1 - Réorganisation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Choix du début de numérotation, par défaut à 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Variables&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;nb_param=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# nb de paramètres passés au script&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;erreur=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# initialisation du compteur d'erreurs à 0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Fonctions début de numérotation&lt;/span&gt;&lt;br /&gt;
début_numerot &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numParam=&lt;/span&gt;`zenity --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Début de numérotation&amp;quot;&lt;/span&gt; --entry-&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt; --entry --text &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Par défaut à 1, à modifier le cas échéant :&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si fermeture&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? -ne &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si annulation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Fonctions renommage des fichiers&lt;/span&gt;&lt;br /&gt;
rename_jpeg &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;for&lt;/span&gt; parametre &lt;span style=&quot;color: #b1b100;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt;; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour chaque fichier selectionné&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# faire&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;old_name=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# on définie le nom du fichier actuel&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;date_time=&lt;/span&gt;`identify -format &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;%[EXIF:DateTime]&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable date / heure de la photo (ex: 2006:11:04 19:41:30. )&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;extension=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$parametre&lt;/span&gt; | awk -F &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'{print $NF}'&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable extension du fichier (ex : .jpg)&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;aa=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f1` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable année (ex : 2006)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;mm=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f2` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable mois (ex : 11)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;jj=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f3 | cut -c1&lt;span style=&quot;color: #cc66cc;&quot;&gt;-2&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable jour (ex : 04)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;hh=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f3 | cut -c4&lt;span style=&quot;color: #cc66cc;&quot;&gt;-5&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable heure (ex : 19)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;min=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$date_time&lt;/span&gt; | cut -d: -f4` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable minute (ex: 41)&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable numérotation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -lt &lt;span style=&quot;color: #cc66cc;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour les paramètres 1 à 9&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;00&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# rajouter 2 digit =&amp;gt; 001, 002, 003,..., 009&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;9&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -lt &lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour les paramètres 10 à 99&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# rajouter 1 digit =&amp;gt; 010, 011, 012,..., 099&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# pour les paramètres supérieur à 100&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;numero=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# ne pas rajouter de digit =&amp;gt; 100, 101, 102,...&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;new_nane=&lt;/span&gt;`&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;aa&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;-&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;mm&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;-&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;jj&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;_&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;hh&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;min&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;_&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;numero&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;extension&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;` &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# on définie le nouveau nom =&amp;gt; 2006-11-04_19.41_num.jpg&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$old_name&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${new_nane}&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# on renomme le fichier en le copiant&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? = &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si la copie a reussi &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${old_name} =&amp;gt; ${new_nane} .... OK&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rm -f &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$old_name&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# =&amp;gt; supprime le fichier original&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si la copie a echoué&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Impossible de renommer $old_name .... NOK&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# =&amp;gt; message d'erreur&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;erreur += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# incrémentation du compteur d'erreur&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;numParam += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# incrémentation du numéro de paramètre&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;nb_renomme=&lt;/span&gt;$&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$nb_param&lt;/span&gt; - &lt;span style=&quot;color: #0000ff;&quot;&gt;$erreur&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# création de la variable nombre de fichiers renommés&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fin de traitement : $# fichiers &amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fichiers renommes : $nb_renomme&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fichiers en erreur : $erreur&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;OK, vous pouvez fermer !&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## Traitement&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; -eq &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# si aucun fichier n'est selectionné =&amp;gt; mesage d'erreur&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zenity --error --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;error&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Selectioner au moins 1 fichier&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
début_numerot&lt;br /&gt;
rename_jpeg &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt; | zenity --text-info --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;exif_photos_rename&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;/code&gt;


&lt;h4&gt;Mise en place&amp;nbsp;:&lt;/h4&gt;


&lt;p&gt;Placer le script exif_photos_rename_v1.1.sh dans le dossier ~/.gnome2/nautilus-scripts, puis le rendre exécutable&lt;/p&gt;

&lt;pre&gt;$ sudo chmod +x ~/.gnome2/nautilus-scripts/exif_photos_rename_v1.1.sh&lt;/pre&gt;


&lt;h4&gt;Utilisation&amp;nbsp;:&lt;/h4&gt;


&lt;p&gt;Sélectionner les photos à traiter, puis clic droit / Scripts / exif_photos_rename.sh
&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_01.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.exif_photos_rename_01_s.jpg&quot; alt=&quot;exif_photos_rename_01.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Cliquer sur Valider ou modifier le début de numérotation le cas échéant&amp;nbsp;:
&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_00.png&quot; alt=&quot;exif_photos_rename_00.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;h4&gt;Résultat&amp;nbsp;:&lt;/h4&gt;

&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/images/exif_photos_rename_02.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.exif_photos_rename_02_s.jpg&quot; alt=&quot;exif_photos_rename_02.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/exif_photos_rename_03.png&quot; alt=&quot;exif_photos_rename_03.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;NB&amp;nbsp;: _/!\_&lt;/strong&gt; Par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Principe_de_pr%C3%A9caution&quot;&gt;principe de précaution&lt;/a&gt;, je vous conseille de commencer à utiliser un script qui, au final supprime ou modifie un fichier, sur une copie de vos photos, histoire de voir que tout se passe bien &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
          <enclosure url="http://www.taltan.fr/public/dl/exif_photos_rename_v1.1.sh"
      length="3743" type="text/plain" />
          <enclosure url="http://www.taltan.fr/public/dl/exif_photos_rename_v1.1_comment.sh"
      length="4957" type="text/plain" />
    
    
          <comments>http://www.taltan.fr/post/2007/07/16/Script-de-renommage-de-photos-selon-les-donnees-EXIF#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2007/07/16/Script-de-renommage-de-photos-selon-les-donnees-EXIF#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/62</wfw:commentRss>
      </item>
    
  <item>
    <title>Corriger les yeux rouges avec Gimp</title>
    <link>http://www.taltan.fr/post/2006/12/03/55-corriger-les-yeux-rouges-avec-gimp</link>
    <guid isPermaLink="false">urn:md5:ee0bdcf7a3ddc1cabde90011f97f1567</guid>
    <pubDate>Sun, 03 Dec 2006 10:21:00 +0000</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>gimp</category><category>libre</category><category>photos</category>    
    <description>    &lt;p&gt;Il y a longtemps que je cherchais un moyen simple de corriger les yeux rouges sur les photos à l'aide &lt;a href=&quot;http://www.gimp-fr.org/news.php&quot; hreflang=&quot;fr&quot;&gt;Gimp&lt;/a&gt;, au hasard de surf je suis bien tombé sur des tutos efficaces mais manuels, comme &lt;a href=&quot;http://gimp4you.eu.org/tutoriels/retouches/1&quot; hreflang=&quot;fr&quot;&gt;ici&lt;/a&gt;, &lt;a href=&quot;http://www.absolut-photo.com/tutoriels/yeux_rouges_gimp.php&quot; hreflang=&quot;fr&quot;&gt;là&lt;/a&gt;, &lt;a href=&quot;http://www.clubic.com/article-31278-7-le-b-a-ba-de-la-retouche-photo.html&quot; hreflang=&quot;fr&quot;&gt;là&lt;/a&gt; ou encore &lt;a href=&quot;http://www.infetech.com/article.php3?id_article=71&quot; hreflang=&quot;fr&quot;&gt;celui-la&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Et je suis tombé sur le site &lt;a href=&quot;http://imagimp.free.fr/&quot; hreflang=&quot;fr&quot;&gt;imagimp.free.fr&lt;/a&gt; qui propose un &lt;a href=&quot;http://www.gimp-fr.org/script.php&quot; hreflang=&quot;fr&quot;&gt;script-fu&lt;/a&gt; pour Gimp. Un script-fu est une maniére simple d'automatiser des taches sous Gimp, leur principe, dans leur finalité, est similaire aux macros. Ce script reprends les principes des tutos cités plus haut en automatisant toutes les taches à effectuer, si bien, qu'au final un seul clic de souris suffit. Le script &lt;a href=&quot;http://taltan.free.fr/dl/yeuxrouges.zip&quot;&gt;yeuxrouges.scm&lt;/a&gt; est à placer dans dans le dossier &lt;em&gt;/usr/share/gimp/2.0/scripts/&lt;/em&gt;. Il apparaîtra ensuite dans le menu &lt;em&gt;Script-fu / Photo&lt;/em&gt; de Gimp. Il est trivial à utiliser et terriblement efficace, la preuve&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;1. Sélectionner la zone à modifier&lt;/strong&gt;, un zoom important est nécessaire pour bien visualiser les contour, n'hésitez pas à déborder un peu.&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/gimp00.png&quot; alt=&quot;gimp00.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;2. Appliquer le &lt;em&gt;Script-fu / Photo / Yeux rouges ...&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/gimp01.png&quot; alt=&quot;gimp01.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;3. Recommencer la même procédure pour le deuxième oeil&lt;/strong&gt;, voila le résultat à l'échelle 1, tout à fait satisfaisant ...&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/gimp02.png&quot; alt=&quot;gimp02.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Pour voir les photos grandeur nature avant et après, c'est par la, cliquez sur la photo ...
&lt;a href=&quot;http://www.taltan.fr/public/images/gimp_avant_apres.png&quot;&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/.gimp_avant_apres_s.jpg&quot; alt=&quot;gimp_avant_apres.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.taltan.fr/post/2006/12/03/55-corriger-les-yeux-rouges-avec-gimp#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2006/12/03/55-corriger-les-yeux-rouges-avec-gimp#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/34</wfw:commentRss>
      </item>
    
  <item>
    <title>Script de génération automatique de galeries PhpWebGallery</title>
    <link>http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery</link>
    <guid isPermaLink="false">urn:md5:9d83215e5a560fa6d0e35355a0491981</guid>
    <pubDate>Sat, 02 Sep 2006 22:06:00 +0000</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Geekerie cultu-libriste</category>
        <category>libre</category><category>photos</category><category>PhpWebGallery</category><category>scripts</category>    
    <description>    &lt;p&gt;&lt;a href=&quot;http://www.phpwebgallery.net/fre/index.html&quot; hreflang=&quot;fr&quot;&gt;PhpWebGallery&lt;/a&gt; est une trés bonne application web PHP (sous licence GPL), qui permet de créer facilement une galerie de photos en ligne. Elle est proposée en standard dans les &lt;a href=&quot;http://faq.free.fr/adsl/5/9/8/1&quot; hreflang=&quot;fr&quot;&gt;modules des pages perso&lt;/a&gt; de &lt;a href=&quot;http://www.free.fr/&quot; hreflang=&quot;fr&quot;&gt;FREE&lt;/a&gt;. le hic c'est que la génération de galerie n'est pas automatique et la nomenclature des fichiers est trés précise. Sous Windows on a &lt;a href=&quot;http://forum.phpwebgallery.net/viewtopic.php?id=941&quot; hreflang=&quot;fr&quot;&gt;phpMyVignettes&lt;/a&gt; mais rien en GUI sous Linux (à ma connaissance). après quelques recherches j'ai trouvé pas mal de scripts qui réalisent ça mais rien que me colle vraiment, alors j'en ai adapté plusieurs pour avoir un résultat perso&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.0.sh&quot;&gt;Script PhpWebGallery_create_v2.0.sh&lt;/a&gt; =&amp;gt; Génération automatique de galeries au format PhpWebGallery (génération répertoire, miniatures, photos pwg_high, ...), à intégrer dans les nautilus script (s'applique aux fichiers selectionnés, ne les modifie pas ), nécessite le paquet &lt;a href=&quot;http://doc.ubuntu-fr.org/imagemagick&quot; hreflang=&quot;fr&quot;&gt;Imagemagick&lt;/a&gt; et &lt;a href=&quot;http://www.agu3l.org/article.php3?id_article=25&quot;&gt;zenity&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.taltan.fr/public/images/pwg_script.png&quot; alt=&quot;pwg_script.png&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;em&gt;Maj&amp;nbsp;: 17/07/2007&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Demande du nom de la galerie&lt;/li&gt;
&lt;li&gt;Crée les dossier $GALERY_NAME , $GALERY_NAME/THUMB_DIR et $GALERY_NAME/REAL_DIR dans le dossier courant&lt;/li&gt;
&lt;li&gt;Traite les images originales et les copie dans le dossier $GALERY_NAME/THUMB_DIR, 3 choix possibles
&lt;ol&gt;
&lt;li&gt;Aucun, déplacement de l'original&lt;/li&gt;
&lt;li&gt;Augmente la compression en gardant la résolution originale&lt;/li&gt;
&lt;li&gt;Réduit la résolution originale sans compression à $REAL_L et $REAL_H&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;Création des images affichées dans la galerie (à 800x600, variable PICT_L et PICT_H) dans le dossier $GALERY_NAME&lt;/li&gt;
&lt;li&gt;Création des miniatures (à 128x96, variable THUMB_L et THUMB_H) dans le dossier $GALERY_NAME/THUMB_DIR&lt;/li&gt;
&lt;/ol&gt;
&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taltan - http://www.taltan.fr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Script PhpWebGallery_create_v2.0.sh&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Licence : GNU / GPL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Inspiré du script Rep2Thumb.sh de Gothico&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; http://forum.phpwebgallery.net/viewtopic.php?id=5522&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Inspiré du script gallery.sh de wiloo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; http://forum.phpwebgallery.net/viewtopic.php?pid=37829&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Script de création de galerie pour PhpWebGallery&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# A intégrer dans les nautilus script (applicable aux fichiers selectionnés)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création de miniatures&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création de photos redimensionnées&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Dépendances&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet imagemagick : http://doc.ubuntu-fr.org/imagemagick&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; - Nécessite le paquet zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; =&amp;gt; sudo apt-get install imagemagick zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 02/09/06 - v1.0 - Création&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# 17/09/07 - v2.0 - Ajout différents tests avant exécution&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Ajout de l'interface zenity&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;############################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## CONFIGURATION&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ##&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# vérifie si imagemagick est installé&lt;/span&gt;&lt;br /&gt;
which convert &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&amp;gt;/dev/null&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zenity --error --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Erreur&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;La paquet Imagemagick n'est pas installé&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#teste si au moins 1 fichier est selectioné&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -eq 0 ]; then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zenity --error --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Erreur&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;text=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Selectionner au moins 1 fichier&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Chemin complet de la galerie à créer&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;GALLERY_PATH=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;`pwd`&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Nom de la galerie&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; ! &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALERY_NAME&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Réafficher la fenetre tant que l'utilisateur n'a pas fait de choix&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;GALERY_NAME=&lt;/span&gt;`zenity --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Nom de la galerie&amp;quot;&lt;/span&gt; --entry --text &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Entrer le nom de la galerie&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? -ne &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Annulation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Nom du répertoire à créer pour les miniatures&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# (&amp;quot;thumbnail&amp;quot; par défaut dans phpwebgallery)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_DIR=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;thumbnail&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Nom du répertoire à créer pour les images tailles réelles&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# (&amp;quot;pwg_high&amp;quot; par défaut dans phpwebgallery)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_DIR=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;pwg_high&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Préfixe des miniatures&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_PREFIX=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;TN-&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## L pour Largeur&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## H pour Hauteur&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taille des photos miniatures&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;128&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;96&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taille des photos à afficher dans phpwebgallery&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;800&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;600&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Taille des photos images tailles réelles dans REAL_DIR&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1280&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1024&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Garder les données EXIF ou non&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Avec EXIF =&amp;gt; &amp;quot;&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Sans EXIF =&amp;gt; &amp;quot;-strip&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;EXIF=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Choix du traitement pour l'image en taille réelle&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; ! &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$TRAIT_REAL_CHOICE&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Réafficher la fenetre tant que l'utilisateur n'a pas fait de choix&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;TRAIT_REAL_CHOICE=&lt;/span&gt;`zenity --list --&lt;span style=&quot;color: #0000ff;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;200&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&lt;span style=&quot;color: #0000ff;&quot;&gt;title=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Choisissez le type de traitement pour l'image en taille réelle&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&lt;span style=&quot;color: #0000ff;&quot;&gt;column=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;N°&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;column=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Description&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Aucun, déplacement de l'original&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Augmente la compression en gardant la résolution originale&amp;quot;&lt;/span&gt; \&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Réduit la résolution originale sans compression&amp;quot;&lt;/span&gt;`&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;###### Choix -&amp;gt; Sortie boucle ######&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? != &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; $? -ne &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;amp;&amp;amp; &lt;span style=&quot;color: #000066;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Annulation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$TRAIT_REAL_CHOICE&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Déplacement de l'original dans le répertoire configuré pour les mages tailles réelles&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cp &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$TRAIT_REAL_CHOICE&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;b&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Augmente la compression en gardant la résolution originale&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert -density &lt;span style=&quot;color: #cc66cc;&quot;&gt;72&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$EXIF&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$TRAIT_REAL_CHOICE&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;c&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Réduit la résolition originale sans compression&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert &lt;span style=&quot;color: #0000ff;&quot;&gt;$EXIF&lt;/span&gt; -resize &lt;span style=&quot;color: #0000ff;&quot;&gt;$REAL_SIZE&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;## TRAITEMENT DES IMAGES&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ##&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;########################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création des miniatures dans le répertoire configuré&lt;/span&gt;&lt;br /&gt;
mkdir &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME&amp;quot;&lt;/span&gt;&lt;br /&gt;
mkdir &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$THUMB_DIR&amp;quot;&lt;/span&gt;&lt;br /&gt;
mkdir &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;numParam=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;erreur=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;nb_param=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;for&lt;/span&gt; parametre &lt;span style=&quot;color: #b1b100;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;do&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Orientation de la photo&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;L=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;`identify &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$parametre&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; | cut -d&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\ &lt;/span&gt; -f3 | cut -dx -f1`&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;H=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;`identify &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$parametre&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; | cut -d&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\ &lt;/span&gt; -f3 | cut -dx -f2`&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$L&lt;/span&gt; -gt &lt;span style=&quot;color: #0000ff;&quot;&gt;$H&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${THUMB_L}x${THUMB_H}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${PICT_L}x${PICT_H}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${REAL_L}x${REAL_H}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;THUMB_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${THUMB_H}x${THUMB_L}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;PICT_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${PICT_H}x${PICT_L}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;REAL_SIZE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${REAL_H}x${REAL_L}&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${numParam}. Traitement de $parametre : .... OK &amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# traitement pour l'image en taille réelle&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trait_real &lt;span style=&quot;color: #0000ff;&quot;&gt;$parametre&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création des images affichées dans la galerie&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert -density &lt;span style=&quot;color: #cc66cc;&quot;&gt;72&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$EXIF&lt;/span&gt; -resize &lt;span style=&quot;color: #0000ff;&quot;&gt;$PICT_SIZE&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$REAL_DIR/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$parametre&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Création des miniatures dans le répertoire configuré pour les miniature&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; convert -thumbnail &lt;span style=&quot;color: #0000ff;&quot;&gt;$THUMB_SIZE&lt;/span&gt; -density &lt;span style=&quot;color: #cc66cc;&quot;&gt;72&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$parametre&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$GALLERY_PATH/$GALERY_NAME/$THUMB_DIR/$THUMB_PREFIX$parametre&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;let&lt;/span&gt; $&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;numParam += &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$numParam&lt;/span&gt; -gt &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$#&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #b1b100;&quot;&gt;then&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Fin de traitement : $# fichiers &amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-----------------------------------------&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;OK, vous pouvez fermer !&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #b1b100;&quot;&gt;done&lt;/span&gt; | zenity --text-info --title &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;PhpWebGallery_create&amp;quot;&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;width=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; --&lt;span style=&quot;color: #0000ff;&quot;&gt;height=&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;&lt;strong&gt;NB&amp;nbsp;: _/!\_&lt;/strong&gt; Par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Principe_de_pr%C3%A9caution&quot;&gt;principe de précaution&lt;/a&gt;, je vous conseille de commencer à utiliser un script qui, au final supprime ou modifie un fichier, sur une copie de vos photos, histoire de voir que tout se passe bien &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v2.0.sh"
      length="7378" type="text/plain" />
          <enclosure url="http://www.taltan.fr/public/dl/PhpWebGallery_create_v1.0.sh"
      length="3617" type="text/plain" />
    
    
          <comments>http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2006/09/02/37-generer-automatiquement-des-galeries-au-format-phpwebgallery#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/21</wfw:commentRss>
      </item>
    
</channel>
</rss>
