StefanOltmann opened a new pull request, #359: URL: https://github.com/apache/commons-imaging/pull/359
I encountered a bug while testing the Kotlin Multiplatform port (https://github.com/ashampoo/kim) of a library. The bug is a critical issue causing metadata corruption during the write process. This bug has been reported at https://issues.apache.org/jira/browse/IMAGING-319. Fortunately, a functional fix was identified by @gwlucastrig, although, for some reason, it hasn't been incorporated into a pull request. All credit for the fix goes to him. Here is the equivalent code in my library: https://github.com/Ashampoo/kim/blob/01fbb7825d3ccf53170c4625aad63b713614919e/src/commonMain/kotlin/com/ashampoo/kim/format/tiff/write/TiffWriterLossless.kt#L257-L261 I can confirm that the fix is effective. Removing that specific line causes my unit tests to fail, particularly with the test image [photo_28.jpg](https://github.com/apache/commons-imaging/assets/9299303/b8a38bc0-8ff5-4a5f-9ad7-ab7c850ed5c8). Unfortunately, I'm unable to include this image in the pull request since I don't own it. The image falls under the Unsplash license, requiring attribution, and I cannot make decisions regarding this for Apache. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
