Created attachment 141361 [details] test project SUMMARY I plan to use Krita for comic, so I was interested in testing File Layers and how well they handle rescaling of sub-files (comic panels from sketch to final in hi-res). I tried to incorporate adaptive ppi scaling in File Layers, but they produced weird results. After some tests, I figured out that the only type of sub-file that is scaled properly is 72 dpi file. Any other dpi will produce a File Layer that is either too small or usually too big. I attached some test project. STEPS TO REPRODUCE 1. Create Main File A4 300dpi 2. Create Sub File 1, select A4 300dpi and switch from pixels to inches, then switch 300dpi to 100dpi. 3. Create Sub File 2, the same as Sub File 1 but dpi should be 72dpi 4. Add each Sub File as a File Layer with Scaling Option set to "Adapt to Image Resolution (ppi)" OBSERVED RESULT File Layer with original 100dpi is too big. File Layer with original 72dpi is the same size as Main File. EXPECTED RESULT Both File Layers should be the same size. Ideally when the Sub File is the same DPI as the Main File, the scaling in File Layer should be skipped. SOFTWARE/OS VERSIONS Windows: 10 Qt: 5.12.11 ADDITIONAL INFORMATION I tried to paste system information, but the window crashed Krita I will fill another bug report for it.
I cannot open the attached zip file: Archive: bug_dpi_file_layer_scaling.zip skipping: bug_dpi_file_layer_scaling/main_200dpi.kra need PK compat. v6.3 (can do v4.6) skipping: bug_dpi_file_layer_scaling/sub/sub1_100dpi.kra need PK compat. v6.3 (can do v4.6) skipping: bug_dpi_file_layer_scaling/sub/sub2_72dpi.kra need PK compat. v6.3 (can do v4.6)
Created attachment 141394 [details] test project NEW
(In reply to Halla Rempt from comment #1) > I cannot open the attached zip file: > > Archive: bug_dpi_file_layer_scaling.zip > skipping: bug_dpi_file_layer_scaling/main_200dpi.kra need PK compat. > v6.3 (can do v4.6) > skipping: bug_dpi_file_layer_scaling/sub/sub1_100dpi.kra need PK compat. > v6.3 (can do v4.6) > skipping: bug_dpi_file_layer_scaling/sub/sub2_72dpi.kra need PK compat. > v6.3 (can do v4.6) Can you check "test project NEW"?
Thanks for your comment! Automatically switching the status of this bug to REPORTED so that the KDE team knows that the bug is ready to get confirmed. In the future you may also do this yourself when providing needed information.
I could open test project NEW with win10 file explorer Reproduced with 5.0.0beta5 0e4b844
Fixed in commit 161c985969adff63a141e924125c5805393dcf04 Author: Egor Efimov <egorefimov24@gmail.com> Date: Thu Dec 22 16:10:38 2022 +0300 Fix bug 442127. Set KisImage resolution on FileLayer image loading