Browse Source

:memo: Explain how to deal with HEIC format

DricomDragon 3 weeks ago
parent
commit
bbceccfe4a
1 changed files with 18 additions and 0 deletions
  1. 18 0
      Guides/shell.md

+ 18 - 0
Guides/shell.md

@@ -37,10 +37,28 @@ Replace `firstname` by the firstname of the person taking the picture.
 ```sh
 exiftool -p 'mv $FileName ${CreateDate}_firstname.jpg' -d "%Y%m%d_%H%M%S" -q
  . > rename.sh
+exiftool -p 'heif-convert $FileName ${CreateDate}_firstname.jpg' -d "%Y%m%d_%H%M%S" -q *.HEIC >> rename.sh
 ```
 
 Then execute and remove `rename.sh`.
 
+### Exotic formats
+
+Some phones use HEIC, that's a weird closed format. To convert them, two ways (use the one which works) :
+
+#### Image magick
+
+```sh
+convert 20240816_194033.heic 20240816_194033_user.jpg
+```
+
+#### Heif converter
+
+```sh
+sudo apt install libheif-examples
+heif-convert -q 85 20240816_194033.heic 20240816_194033_user.jpg
+```
+
 ### File name manipulations
 
 On Ubuntu, you have two different utilities : `rename.ul` making simple replacements, and `rename` working with regex.