Bug 395267 - "Scale to New Size" window : the print size shown is limited to an equivalent of 10k pixels (Krita 4.1)
Summary: "Scale to New Size" window : the print size shown is limited to an equivalent...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: 4.1.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Tiar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-12 08:21 UTC by Regis
Modified: 2019-03-06 09:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshots of the dialog to illustrate the issue (118.08 KB, image/jpeg)
2018-06-12 08:21 UTC, Regis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regis 2018-06-12 08:21:40 UTC
Created attachment 113222 [details]
Screenshots of the dialog to illustrate the issue

Hi,

I'm having a bug with the "Scale to new size" dialog.
I'm working with high res images, around 20cm by 30cm but in 1200 dpi, making it roughly 10000px by 15000px. When attempting to reduce them to, for example, 600dpi (with constrain proportions checked) it messes the proportion by limiting the longest dimension to 5000 pixels. This seems to happen when trying to change size of big images by using any of the "print size" fields of the "scale to new size" dialog. Changing the values in the "pixel dimensions" fields, whether it's set to pixels or percents or whatever, seems to work fine.

Also, sometimes, the print dimensions of big images are not correctly displayed while the pixel dimensions is right, but I couldn't find out why it happens only on some images and not with others.
Comment 1 Regis 2018-06-27 14:10:14 UTC
Hi,

It seems the issue concerns a max limit for the print size.
The displayed print size never exceeds an equivalent of 10000 pixels (when adjusted to the dpi), that's why my 1200dpi documents shows wrongly a max dimension of 21.12 cm, which would make it roughly 10000 pixels long (but it's really 14k pixels long).

It's the same kind of issue than this previous similar one :
https://bugs.kde.org/show_bug.cgi?id=391763
Comment 2 wolthera 2018-11-16 15:48:16 UTC
Related: https://bugs.kde.org/show_bug.cgi?id=400177
Comment 3 Tiar 2019-03-06 09:42:45 UTC
Git commit a8ad9c6d450635a2f9733c10f695545baa1b793a by Agata Cacko.
Committed on 06/03/2019 at 09:42.
Pushed by tymond into branch 'master'.

Fix the low pixel size limit in Scale to New Size dialog

Summary:
This commit changes the limit for image size
in the dialog from 90k pixels to 100000k (100M) pixels
which is the same limit as in the File -> New dialog.

Test Plan:
- trying to scale image to 1000M pixels in any dimension
(dialog should not allow for that)
- trying to scale image to 1000M pixels, but in a different
unit (according to dpi); dialog should not allow for that
- trying to scale image to 20k pixels, it works fine

Reviewers: #krita, woltherav

Reviewed By: #krita, woltherav

Subscribers: woltherav

Tags: #krita

Differential Revision: https://phabricator.kde.org/D19545

M  +1    -1    plugins/extensions/imagesize/dlg_imagesize.cc

https://commits.kde.org/krita/a8ad9c6d450635a2f9733c10f695545baa1b793a