<?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 - Linux</title>
  <link>http://www.taltan.fr/</link>
  <atom:link href="http://www.taltan.fr/feed/category/Linux/rss2" rel="self" type="application/rss+xml"/>
  <description>T'as le temps de partager ...</description>
  <language>fr</language>
  <pubDate>Fri, 30 Jul 2010 05:50:20 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <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>Linux</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 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>Linux</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>
    
  <item>
    <title>Conversion de fichiers audio</title>
    <link>http://www.taltan.fr/post/2006/06/27/27-conversion-de-fichiers-audio</link>
    <guid isPermaLink="false">urn:md5:1691fb0091521b38580aad699564c666</guid>
    <pubDate>Tue, 27 Jun 2006 12:16:00 +0000</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Linux</category>
        <category>audio</category><category>libre</category><category>scripts</category>    
    <description>    &lt;p&gt;Combien de fois je me suis retrouvé avec des fichiers musicaux illisibles sur mon baladeur MP3, à me demander quel soft utiliser pour pour les convertir. Alors oui, il y a l'artillerie lourde des applications GUI (&lt;a href=&quot;http://fr.wikipedia.org/wiki/Environnement_graphique&quot; hreflang=&quot;fr&quot;&gt;Graphic User Interface&lt;/a&gt;) avec moult clics et suivant, suivant, ..., alors qu'une simple ligne de commande peut résoudre cette problématique. Ci dessous quelques exemples (non exhaustif) des ces possibilités&amp;nbsp;:&lt;/p&gt;


&lt;h3&gt;Convertir OGG --&amp;gt; MP3&lt;/h3&gt;


&lt;p&gt;MP3 à 192kbs, les .mp3 sont stockés dans un répertoire à part (mp3), nécessite les outils ogg (vorbis-tools) et le codec lame&lt;/p&gt;

&lt;pre&gt;$ sudo apt-get install lame vorbis-tools&lt;/pre&gt;


&lt;pre&gt;$ cd &lt;em&gt;&quot;le répertoire qui contient les fichiers ogg&quot;&lt;/em&gt;
$ mkdir mp3; for i in *.ogg; do new_name=`echo &quot;$i&quot; | sed s/.ogg/.mp3/g`; ogg123 -d wav -f - &quot;$i&quot; | lame -h -m s -b 192 - &amp;gt; mp3/&quot;$new_name&quot;; done&lt;/pre&gt;


&lt;h3&gt;Convertir MP3 --&amp;gt; OGG&lt;/h3&gt;


&lt;p&gt;Les .ogg sont stockés dans un répertoire à part (ogg), nécessite les outils ogg (vorbis-tools) et le MPEG layer 1/2/3 audio player (mpg123)&lt;/p&gt;

&lt;pre&gt;$ sudo apt-get install mpg123 vorbis-tools&lt;/pre&gt;


&lt;pre&gt;$ cd &lt;em&gt;&quot;le répertoire qui contient les fichiers ogg&quot;&lt;/em&gt;
$ mkdir ogg; for i in *.mp3; do new_name=`echo &quot;$i&quot; | sed s/.mp3/.ogg/g`; mpg123 -b 10000 -s &quot;$i&quot; | sox -t raw -r 44100 -s -w -c2 - ogg/temp.wav; oggenc ogg/temp.wav -o ogg/&quot;$new_name&quot;; done; rm -f ogg/temp.wav&lt;/pre&gt;


&lt;h3&gt;Convertir MPC --&amp;gt; WAV&lt;/h3&gt;


&lt;p&gt;Les .wav sont stockés dans un répertoire à part (wav), nécessite le codec lame et le décodeur &lt;a href=&quot;http://www.musepack.net/index.php?pg=lin&quot; hreflang=&quot;en&quot;&gt;mppdec&lt;/a&gt;&lt;/p&gt;


&lt;pre&gt;$ cd &lt;em&gt;&quot;le répertoire qui contient les fichiers mpc&quot;&lt;/em&gt;
$ mkdir wav; for i in *.mpc; do new_name=`echo &quot;$i&quot; | sed s/.mpc/.wav/g`; mppdec-static &quot;$i&quot; wav/&quot;$new_name&quot;; done&lt;/pre&gt;


&lt;h3&gt;Convertir WAV --&amp;gt; MP3&lt;/h3&gt;


&lt;p&gt;Ici MP3 à 160kbs, les .mp3 sont stockés dans un répertoire à part (mp3), nécessite le codec LAME&lt;/p&gt;


&lt;pre&gt;$ cd &lt;em&gt;&quot;le répertoire qui contient les fichiers wav&quot;&lt;/em&gt;
$ mkdir mp3; for i in *.wav; do new_name=`echo &quot;$i&quot; | sed s/.wav/.mp3/g`; lame --abr 160 &quot;$i&quot; &quot;new_name&quot; ; done&lt;/pre&gt;


&lt;h3&gt;Convertir WAV --&amp;gt; OGG&lt;/h3&gt;


&lt;p&gt;Ici OGG à average bitrate&quot; de 202 kb/s environ, les .ogg sont stockés dans un répertoire à part (ogg), nécessite les outils ogg (vorbis-tools), plus d'info sur le &lt;a href=&quot;http://www.greguti.com/petitlinux/index.php?entry=entry070206-120426&quot; hreflang=&quot;fr&quot;&gt;Petit Linux&lt;/a&gt;&lt;/p&gt;


&lt;pre&gt;$ cd &lt;em&gt;&quot;le répertoire qui contient les fichiers wav&quot;&lt;/em&gt;
$ for i in *.wav; do oggenc -q 6 $i ; done&lt;/pre&gt;


&lt;h3&gt;Convertir WMA --&amp;gt; MP3&lt;/h3&gt;


&lt;p&gt;MP3 à 192kbs, les .mp3 sont stockés dans un répertoire à part (mp3), nécessite mplayer et le codec lame&lt;/p&gt;

&lt;pre&gt;$ sudo apt-get install lame mplayer&lt;/pre&gt;


&lt;pre&gt;$ cd &lt;em&gt;&quot;le répertoire qui contient les fichiers wma&quot;&lt;/em&gt;
$ mkdir mp3 ;for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader &quot;$i&quot; &amp;amp;&amp;amp; lame -m j -h --vbr-new -b 192 audiodump.wav -o &quot;`basename &quot;$i&quot; .wma`.mp3&quot;; done; rm -f audiodump.wav ; mv *.mp3 mp3/&lt;/pre&gt;


&lt;h3&gt;Couper un fichier MP3&lt;/h3&gt;


&lt;p&gt;Ici MP3 à 128kbs, nécessite le codec LAME, la première commande génére un fichier temporaire &lt;em&gt;audiodump.wav&lt;/em&gt; à supprimer par la suite
ici coupe le MP3 à partir de 27 mins 50 sec du début pendant 09 min 48 s&lt;/p&gt;


&lt;pre&gt;$ cd &lt;em&gt;&quot;le répertoire qui contient le fichier à couper&quot;&lt;/em&gt;
$ mplayer -vc null -vo null -ao pcm -ss 00:27:50 -endpos 00:09:48 mon_fichier.mp3 ; lame --abr 128 audiodump.wav mon_fichier_coupé.mp3&lt;/pre&gt;


&lt;p&gt;&lt;em&gt;&lt;strong&gt;Liens :&lt;/strong&gt;&lt;/em&gt; &lt;a href=&quot;http://giminik.developpez.com/articles/debian-gnu-linux/gravure-audio-ligne-commande/&quot;&gt;http://giminik.developpez.com/articles/debian-gnu-linux/gravure-audio-ligne-commande&lt;/a&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.taltan.fr/post/2006/06/27/27-conversion-de-fichiers-audio#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2006/06/27/27-conversion-de-fichiers-audio#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/16</wfw:commentRss>
      </item>
    
  <item>
    <title>Utilisation courante de wget</title>
    <link>http://www.taltan.fr/post/2006/04/16/17-utilisation-courante-de-wget</link>
    <guid isPermaLink="false">urn:md5:3b92768b5bc90198b84cc8f656f57a19</guid>
    <pubDate>Sun, 16 Apr 2006 18:07:03 +0000</pubDate>
    <dc:creator>Taltan</dc:creator>
        <category>Linux</category>
        <category>libre</category>    
    <description>    &lt;p&gt;&lt;a href=&quot;http://fr.wikipedia.org/wiki/Wget&quot; hreflang=&quot;fr&quot;&gt;Wget&lt;/a&gt; est un logiciel de téléchargement avancé en ligne de commande trés puissant qui peut notament être utilisé dans des scripts bash. Voila un petit menemto des commandes les plus utiles&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;Télécharger un fichier&lt;/p&gt;


&lt;pre&gt;$ wget url_du_fichier_à_télécharger&lt;/pre&gt;


&lt;p&gt;Aspirer un site&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;$ wget -rkpE http://XXXXXX.net&lt;/pre&gt;


&lt;p&gt;IL est aussi possible d'utiliser&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;$ wget -np -r URL (capture récursive sans remonter)
$ wget -m URL (récupère en mode miroir)
$ wget -l=2 (niveau de récursivité égal a deux)
$ wget -c ftp://suite_de_l_URL (pour une reprise possible du téléchargement en cas de plantage)&lt;/pre&gt;


&lt;p&gt;Aspirer tous les fichiers d'un site d'une extension particuliére&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;$ wget -r -l1 –no-parent -A.ram http://XXXX ( pour les fichier .ram)
$ wget -r -l1 –no-parent -A.mp3 http://XXXX (pour les fichier .mp3)....&lt;/pre&gt;


&lt;p&gt;Télécharger les URL listées dans un fichier TXT ( Attention une URL par ligne, rien d'autre)&lt;/p&gt;


&lt;pre&gt;$ wget –input-file=Nom_du_fichier.txt&lt;/pre&gt;


&lt;p&gt;Télécharger à travers un proxy&lt;/p&gt;


&lt;pre&gt;$ export http_proxy=http://URL:8080
$ export ftp_proxy=http://URL:8080
$ wget URL&lt;/pre&gt;


&lt;p&gt;&lt;em&gt;Source&amp;nbsp;: &lt;a href=&quot;http://mandows.apinc.org/howto/wget.html&quot; hreflang=&quot;fr&quot;&gt;http://mandows.apinc.org/howto/wget.html&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.taltan.fr/post/2006/04/16/17-utilisation-courante-de-wget#comment-form</comments>
      <wfw:comment>http://www.taltan.fr/post/2006/04/16/17-utilisation-courante-de-wget#comment-form</wfw:comment>
      <wfw:commentRss>http://www.taltan.fr/feed/atom/comments/7</wfw:commentRss>
      </item>
    
</channel>
</rss>