Bug 442365

Summary: Created templates don't account for vectors resized from image rescaling, malforming them
Product: [Applications] krita Reporter: tomtomtomreportingin
Component: Tools/VectorAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: griffinvalley, halla, huulong
Priority: NOR    
Version First Reported In: 5.0.0-beta1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=433220
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tomtomtomreportingin 2021-09-13 05:07:06 UTC
SUMMARY
This bug is sad as it's destructive. Created templates don't properly account vector objects being resized by image rescaling operations, meaning that the actual created template will provide malformed vectors instead of what was intended.

Not a regression of Krita 5.

STEPS TO REPRODUCE
1. Create A5 600 PPI document.
2. Add a vector layer.
3. Create a vector rectangle serving as the document's margins.
4. Image -> Scale Image to New Size, for example 1000x1414.
5. File -> Create Template from Image.
6. Open new template, which also has a seemingly correct preview.

OBSERVED RESULT
Sadness. The rectangle now spills out of the image.

EXPECTED RESULT
The vector rectangle should still be essentially serving as a margin.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.12.11 (Appimage)
Comment 1 wolthera 2021-09-16 14:32:51 UTC
Seems it might be related to this bug: https://bugs.kde.org/show_bug.cgi?id=433220