Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeena/heic2jpeg
Transforms HEIC to JPEG, preserves EXIF and fixes orientation
https://github.com/jeena/heic2jpeg
Last synced: 15 days ago
JSON representation
Transforms HEIC to JPEG, preserves EXIF and fixes orientation
- Host: GitHub
- URL: https://github.com/jeena/heic2jpeg
- Owner: jeena
- License: gpl-3.0
- Created: 2022-07-31T11:12:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T04:11:10.000Z (about 2 years ago)
- Last Synced: 2024-10-31T22:14:09.690Z (2 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
heic2jpeg
=========This script solves the problem that none of the browsers can show Apples HEIC pictures, many online services like Flickr don't allow their upload and it's also dificult to show them on the TV.
The solution is to transcode them into JPEG, but none of the tools available would copy all the EXIF data like "Date taken" or "Orientation" so that it is impossible to sort them and there is a lot of manual work involved to rotate them manually afterwards.
This script tries to copy as much metadata as necessary to avoid all the manual work.
Installation
------------git clone https://github.com/jeena/heic2jpeg.git
sudo pacman -S perl-image-exiftool
pipenv install
pipenv shellUsage
-----./heic2jpeg.py original.heic
It will save the picture in the same directory, with the same name but as a JPEG and the ending `.jpg`../heic2date.py original.heic
This will get the date out of your .HEIC EXIF data and rename the file into IMG_YYYYMMDD_HHMMSS.heic
./mov2date.py original.mov
This will get the date out of your .mov file and rename the file into IMG_YYYYMMDD_HHMMSS.mov
You can automate it to do it for every specific file in a directory like this:
find . -iname "*.HEIC" -exec ~/Projects/heic2jpeg/heic2date.py {} \;
License
-------GPL v3