Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jcupitt
Copy link
Member

@jcupitt jcupitt commented Dec 8, 2025

We were removing the orientation tag from the image during save, and this triggered a warning about a shared image pointer.

This PR removes the metadata change -- we were removing the libvips metadata orientation fields, but not regenerating the exif data block, which is what we we were actually writing, so the removal had no effect.

We could call vips__exif_update() to rebuild the exif block, but that's not part of the libvips API, so isn't available when heifsave is a module.

See #4783 for reporting PR.

We were removing the orientation tag from the image during save, and
this triggered a warning about a shared image pointer.

This PR removes the metadata change -- we were removing the libvips metadata
orientation fields, but not regenerating the exif data block, which is what we
we were actually writing, so the removal had no effect.

We could call `vips__exif_update()` to rebuild the exif block, but
that's not part of the libvips API, so isn't available when heifsave is a
module.
@jcupitt
Copy link
Member Author

jcupitt commented Dec 8, 2025

Also improve a confusing indent.

@jcupitt jcupitt merged commit 0d845f6 into master Dec 8, 2025
16 checks passed
@jcupitt jcupitt deleted the fix-heifsave-meta branch December 8, 2025 17:03
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.

3 participants