Improve XCF support
Needs ReviewPublic

Authored by sandsmark on Mon, Nov 11, 10:32 PM.

Details

Summary

Now it can at least handle the simplest XCF files I have.

Biggest difference seems to be that they changed to 64bit for offsets from version 11 and upwards.

Still some issues with more complex layers (aka. not completely plain images), but this is better than nothing.

Test Plan

Tested with some simple XCFs I had laying around that didn't get thumbnails earlier.

Diff Detail

Repository
R287 KImageFormats
Lint
Lint Skipped
Unit
Unit Tests Skipped
sandsmark created this revision.Mon, Nov 11, 10:32 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMon, Nov 11, 10:32 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
sandsmark requested review of this revision.Mon, Nov 11, 10:32 PM
sandsmark updated this revision to Diff 69617.Mon, Nov 11, 11:08 PM

Forgot to fix the layer offset reading, and read the precision after instead of before the image properties

sandsmark updated this revision to Diff 69618.Mon, Nov 11, 11:28 PM

Fixed masks as well, now even some more complex XCF files work again.

this very much needs test files :)