-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for HEIF/HEIC images #11
Comments
pyhief-pillow-opener https://pypi.org/project/pyheif-pillow-opener/ seems like a fairly easy way. See this example:
|
Thanks for bringing this to my attention. Steps to add this to lazygal:
|
I started on this. I made a requirements.txt and a Makefile to use it to build a venv. requirements.txt:
Makefile:
Some dependencies I could not find in PyPI so could not put in requirements.txt. I installed the following packages using apt (not sure of all of them are needed though):
Then I make the venv, activate it. Then run
However, I did make a patch that might enable support of HEIF/HEIC images using the pyheif_pillow_opener. But, alas, it has not been tested:
There will likely have to be done a bit of work in getting file name references correct. For example when reading a source file as filename.heic. Then I assume the thumbnail will be saved as jpg and thus the filename extension in the destination must be .jpg as well. Of course, I have not done any work on bullets 3 and 4 in your list regarding metadata and test cases. Sorry for not being able to contribute a fully working solution. I hope this is at least somewhat valuable. |
Thanks a lot for this work. For module |
I added PyGObject to requirements.txt and finally made the venv work. When I run setup.py test, I get a whole bunch of errors: I have not real idea how to solve these. I guess I am in a bit over my head here. |
Your venv misses gi overrides (file |
Would it be possible to use the patch I sent above? |
Please submit a working pull request. Only one call to |
Lazygal does not seem to support HEIF images. HEIF
Newer Apple devices such as iPhone or iPads take photos in the HEIF format[1]. These photos are using the .heic extension.
Lazygal does not seem to include the .heic files in the generated gallery.
Lazygal seems to use the Pillow module for image manipulation. Pillow seems to support the HEIF format[2], so I see no reason that lazygal shouldn't automatically include .heic images present in the source folder.
The pyheif package seems to enable HEIF support with Pillow.
The text was updated successfully, but these errors were encountered: