2007-01-27 : Différence entre versions
De Asso Val Libre
(→Conversion par lot de format graphiques) |
(→Conversion par lot de format graphiques) |
||
Ligne 28 : | Ligne 28 : | ||
.bmp.jpg: | .bmp.jpg: | ||
− | convert $< $@ | + | convert $< $@ # Attention, cette ligne commence par une tabulation (impératif) |
− | |||
− | |||
− | Attention, | ||
== 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 à 22:03
À 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 .bmp en .jpg en utilisant convert. C'est un script pour l'utilitaire make
- Mettre le texte suivant dans un fichier dénommé Makefile dans le répertoire de travail.
- Ensuite au même endroit, simplement taper la commande
make
#!/usr/bin/make -f BMP=$(wildcard *.bmp) all: $(BMP:.bmp=.jpg) .SUFFIXES: .jpg .bmp .bmp.jpg: convert $< $@ # Attention, cette ligne commence par une tabulation (impératif)