Created attachment 152510 [details] the original tiff SUMMARY When open a tiff file contain layers that have different sizes, it miss-aligned the layers: it does not respect the layer position instead it always put layers from (0,0) STEPS TO REPRODUCE 1. open given tiff file in krita compare with the result from gimp or imagemagick (`convert test-size.tiff -flatten test-size.im.jpg`) OBSERVED RESULT The `test` text is misplaced. EXPECTED RESULT The `test` text should be placed as the test-size.im.jpg SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Created attachment 152511 [details] the expected result
Created attachment 152512 [details] the krita's wrong result
Amyspark, can you take a look?
Thanks for the sample. I had noticed that Krita did not support TIFF layer positioning, so it'll be an interesting fix to make.
Git commit 96ee473d4e0a5325a25caa3275773138cc464054 by L. E. Segovia. Committed on 04/10/2022 at 00:55. Pushed by lsegovia into branch 'master'. TIFF: support sub IFD offsets M +15 -0 plugins/impex/tiff/kis_tiff_import.cc https://invent.kde.org/graphics/krita/commit/96ee473d4e0a5325a25caa3275773138cc464054
Git commit e1d030ca8b638931a6f15ab5fcd92544e06c8d6a by L. E. Segovia. Committed on 04/10/2022 at 00:56. Pushed by lsegovia into branch 'krita/5.1'. TIFF: support sub IFD offsets (cherry picked from commit 96ee473d4e0a5325a25caa3275773138cc464054) M +15 -0 plugins/impex/tiff/kis_tiff_import.cc https://invent.kde.org/graphics/krita/commit/e1d030ca8b638931a6f15ab5fcd92544e06c8d6a