Conversation
|
Thanks for all your work, an update to the new 2.10 API is long overdue. However, you are right that this patch would be really difficult to review and merge. It is more or less a complete replacement of the previous source. |
|
I should have done it properly since the start 🤕 As soon as I have some free time I'll split this into 3 or 4 commits. |
Exiv2 does not currently support reading metadata from a XCF file Since GIMP now keeps an internal copy of the metadata, we can access it with `gimp_image_get_metadata()` and use Gexiv2 to copy all exif tags to an empty `Exiv2::ExifData` (cherry picked from commit 96c139e)
Use GeglBuffers instead of GimDrawable to access pixel data. (cherry picked from commit 82cf937)
Fix some clang tidy warnings. Consistent use of glib types for numerical values. (cherry picked from commit 20b6050)
Following the GIMP/GNU C coding style. https://developer.gimp.org/HACKING https://www.gnu.org/prep/standards/html_node/Formatting.html#Formatting (cherry picked from commit 1b2eb75)
6567789 to
547d92f
Compare
|
@seebk I hope it is now easier to review. |
|
Thanks, still a lot of unecessary style changes but think I can look though it and merge the relevant parts. |
|
I have created a new branch |
New behaviour:
Fetch image metadata from gimp instead of reading it from the image
file.
This makes possible to execute the plugin on an image that has been
saved in the native XCF format.
Currently Exiv2 cannot read metadata from a XCF file.
Gimp uses Gexiv2. The plugin now needs to link this library too.
Changes in the implementation:
Ported from the old, deprecated, 2.8 API to the new one.
The plugin now uses GEGL buffers instead of 'GimpDrawable's
Miscellanea:
Reformat to better suit GIMP coding guidelines and GNU formatting.
Fixed a bunch of warns clang tidy was throwing at me.
Sorry, I know this should have been partitioned in several PRs to facilitate code review, but I have done it in a hurry as I needed the plugin to process a bunch of xcf files ASAP.