2007-01-27 : Différence entre versions

De Asso Val Libre
Aller à : navigation, rechercher
(Conversion par lot de format graphiques)
(Conversion par lot de format graphiques)
Ligne 22 : Ligne 22 :
 
  .jpg.bmp:
 
  .jpg.bmp:
 
  convert  $<  $@
 
  convert  $<  $@
 +
 +
 +
Attention, devant la commande convert l'espace vide est une tabulation (impératif)
  
 
== Pour info ==
 
== Pour info ==
  
 
* http://www.mjc-athena.org/depot-val-libre/LL-depot/Photos/
 
* http://www.mjc-athena.org/depot-val-libre/LL-depot/Photos/

Version du 27 janvier 2007 à 21:54

À voir

  • Machine Aquario
  • Site aquario / album photo / diaporama

Conversion par lot de format graphiques

Depuis le temps que j'y pensais, voici un exemple de script commenté :

L'exempe ci-dessous converti les fichiers .jpg en .bmp en utilisant convert. C'est un script pour l'utilitaire make

#!/usr/bin/make -f

JPG=$(wildcard *.jpg)

all: $(JPG:.jpg=.bmp) 
 
.SUFFIXES: .jpg .bmp

.jpg.bmp:
	convert  $<  $@


Attention, devant la commande convert l'espace vide est une tabulation (impératif)

Pour info