Skip to content
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

Switch EXIF library #12651

Merged
merged 1 commit into from
Jul 20, 2024
Merged

Switch EXIF library #12651

merged 1 commit into from
Jul 20, 2024

Conversation

bep
Copy link
Member

@bep bep commented Jul 9, 2024

There are some minor technical issues left to do on this issue, but this should be mostly OK.


This commit switches the Go library used for EXIF to one written from scratch by me. The specifications/implementations on this are all over the place, and to stop endless discussions, I decided to make Exiftool the source of truth.

This also brings EXIF support for WebP and PNG in addition to JPEG and TIFF.

The imagemeta library also supports XMP and IPTC metadata, but that requires an API change on the Hugo side, so that needs to be taken as a later task.

This should mostly work as before (only much faster). There are some tag names that have changed names, and there's a new imagemeta.Rat type that replaces math/big.Rat for rational numbers, but if you just print these numbers, you will not notice.

Closes #10855
Closes #8586

@bep bep mentioned this pull request Jul 9, 2024
@bep bep force-pushed the feat/exif-10855 branch 5 times, most recently from d21e7e0 to a569d73 Compare July 12, 2024 16:37
@bep bep marked this pull request as ready for review July 12, 2024 17:15
@bep bep marked this pull request as draft July 14, 2024 10:25
@bep bep force-pushed the feat/exif-10855 branch 10 times, most recently from 43e7d79 to b6edcab Compare July 20, 2024 13:03
@bep bep marked this pull request as ready for review July 20, 2024 13:55
@bep bep merged commit 72ff937 into gohugoio:master Jul 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WebP Exif support Replace underlying Exif library
1 participant