Bug 467257

Summary: File layers do not get scaled when scaling document
Product: [Applications] krita Reporter: Kim <zoomulator>
Component: Resize/Scale Image/LayerAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: griffinvalley
Priority: NOR    
Version: 5.1.5   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A test image + a series of 3 images showing the unexpected behavior

Description Kim 2023-03-12 23:23:24 UTC
Created attachment 157224 [details]
A test image + a series of 3 images showing the unexpected behavior

SUMMARY
Using file layers in a document and scaling the image either by "image -> scale image to new size" or via the "file -> export advanced" will result in the file-layers being cropped to the new size instead of scaled.

STEPS TO REPRODUCE
1. Add a File Layer to a Krita document. I imported PNG files.
2. Scale the image to a new size, like 50%
3. The image's dimensions are changed but the file layer is just cropped instead of scaled.

OBSERVED RESULT
The file layer is not scaled with the rest of the image

EXPECTED RESULT
The contents of the file layer should match the new scale of the image

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
This is possibly related to an old bug 349821 where transforming file layers seems out of the question at first but is later marked as resolved fixed.
Comment 1 wolthera 2023-10-18 12:38:04 UTC

*** This bug has been marked as a duplicate of bug 470110 ***
Comment 2 Dmitry Kazakov 2024-08-23 13:21:46 UTC
Git commit 91aa790cab80fac35b62bd96b8b9f15e92d1bc8b by Dmitry Kazakov.
Committed on 23/08/2024 at 13:21.
Pushed by dkazakov into branch 'master'.

Make sure file layers are updated when image size or resolution changes
Related: bug 470110

M  +29   -0    libs/ui/kis_file_layer.cpp
M  +5    -0    libs/ui/kis_file_layer.h

https://invent.kde.org/graphics/krita/-/commit/91aa790cab80fac35b62bd96b8b9f15e92d1bc8b
Comment 3 Dmitry Kazakov 2024-08-27 06:58:03 UTC
Git commit c554def57cde7aad7835d3245d678548cae3eaf0 by Dmitry Kazakov.
Committed on 27/08/2024 at 06:57.
Pushed by dkazakov into branch 'krita/5.2'.

Make sure file layers are updated when image size or resolution changes
Related: bug 470110

M  +29   -0    libs/ui/kis_file_layer.cpp
M  +5    -0    libs/ui/kis_file_layer.h

https://invent.kde.org/graphics/krita/-/commit/c554def57cde7aad7835d3245d678548cae3eaf0