https://bugs.kde.org/show_bug.cgi?id=463713

            Bug ID: 463713
           Summary: scaleImage modifies hidden guides and ignores passed
                    xRes and yRes
    Classification: Applications
           Product: krita
           Version: 5.1.4
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Resize/Scale Image/Layer
          Assignee: krita-bugs-n...@kde.org
          Reporter: dstou...@gmail.com
  Target Milestone: ---

SUMMARY

Note: I had to remove most of the code output because it kept telling me my
message was spam..

I've noticed two issues related to Document::scaleImage:

1. Guides in the document are modified slightly even if scaleImage doesn't
actually change the image size
2. The xRes and yRes specified in scaleImage are ignored, and 288 is used
instead

STEPS TO REPRODUCE
Create a 1087 x 1828 document at 300 DPI and add a single horizontal and
vertical guide.

Run this script:

OBSERVED RESULT
When guides are currently visible I get this:

Note that the DPI (xres/yres) becomes 288 instead of 300

When guides are hidden, I get this:

Note that the guides changed from [1716.0] [571.0] to [1647.36] [548.16]

EXPECTED RESULT
scaleImage should not modify guides just because they are hidden. The guides
should presumably scale in accordance with the image size changing, but if the
image size doesn't change, the guides shouldn't change either.

The DPI passed into scaleImage should be used in the returned document.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to