ajout section HEIC dans article conversion images CLI
This commit is contained in:
@@ -105,6 +105,40 @@ dcraw -c photo.CR2 > photo.ppm
|
||||
|
||||
---
|
||||
|
||||
## HEIC, le format Apple
|
||||
|
||||
Les iPhone exportent leurs photos en HEIC depuis iOS 11. Le format est compact, mais Linux ne le gère pas nativement — il faut convertir avant de pouvoir travailler dessus.
|
||||
|
||||
Le paquet `libheif-examples` fournit `heif-convert`, l'outil le plus direct :
|
||||
|
||||
```bash
|
||||
sudo apt install libheif-examples
|
||||
|
||||
heif-convert photo.heic photo.jpg
|
||||
```
|
||||
|
||||
ImageMagick peut aussi s'en charger si `libheif` est installé sur le système :
|
||||
|
||||
```bash
|
||||
magick photo.heic photo.jpg
|
||||
```
|
||||
|
||||
Pour vérifier que le support HEIC est bien disponible :
|
||||
|
||||
```bash
|
||||
magick identify -list format | grep -i heic
|
||||
```
|
||||
|
||||
Conversion d'un dossier entier :
|
||||
|
||||
```bash
|
||||
for f in *.heic *.HEIC; do
|
||||
heif-convert "$f" "${f%.*}.jpg"
|
||||
done
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## En pratique
|
||||
|
||||
Conversion d'un dossier de PNG en WebP :
|
||||
@@ -137,6 +171,7 @@ find . -name "*.jpg" -exec magick {} -resize 1200x1200\> {} \;
|
||||
| Gros volumes / performance | libvips |
|
||||
| Déjà dans le pipeline vidéo | FFmpeg |
|
||||
| Fichiers RAW | darktable-cli |
|
||||
| HEIC (iPhone) | heif-convert ou ImageMagick |
|
||||
| Lecture / nettoyage EXIF | exiftool |
|
||||
|
||||
Pour 90 % des besoins courants, ImageMagick suffit. libvips vaut le coup d'être appris si on traite régulièrement des lots importants.
|
||||
|
||||
Reference in New Issue
Block a user