Bug 391763

Summary: The "Scale Image to New Size" and "Resize Canvas" dialogs show a maximum of 10000 pixels for bigger images [Krita 4.1.0 Pre-Alpha]
Product: [Applications] krita Reporter: Regis <regis>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Regis 2018-03-12 16:35:51 UTC
When opening a very big image (in this case I tested with a jpg and a png, both around 29,000 pixels wide and 7,000 pixels of height), the image loads correctly but when using the dialogs "Scale Image..." or "Resize Canvas", it says the image is only 10,000 pixels wide.

So scaling down with constrained proportions gives as result a distorted image.

I tested it both on Linux Mint 18.3 Cinnamon (with the 4.1 appimage from last friday, the 9th of march) and on Windows 10 with today's build of 4.1(git d0e6714).

On Krita 3.3.3 it works fine, the correct length appears on the dialog.
Comment 1 Halla Rempt 2018-03-13 08:52:49 UTC
Git commit 581d1379bcb2563d4981e2b0274f697d4f165d80 by Boudewijn Rempt.
Committed on 13/03/2018 at 08:51.
Pushed by rempt into branch 'master'.

Set the maximum values for width and height to 100000000.000000

This is the same value as in the new image dialog, which makes
sense. This partially reverts

commit 40c93621ec166fdd39fd44003e68a1a52e84aa74
Author: Juan Palacios <jpalaciosdev@gmail.com>
Date:   Sun Nov 24 20:22:24 2013 +0100

    Tweak value range of size dialog's spinboxes.

    Incremented number of decimals for QDoubleSpinbox and set a more sane
    range for allowed values in all spinboxes of canvas size, image size
    and layer size dialogs.

M  +8    -8    plugins/extensions/imagesize/wdg_canvassize.ui
M  +5    -5    plugins/extensions/imagesize/wdg_imagesize.ui
M  +7    -7    plugins/extensions/imagesize/wdg_layersize.ui

https://commits.kde.org/krita/581d1379bcb2563d4981e2b0274f697d4f165d80
Comment 2 Halla Rempt 2018-03-13 08:53:00 UTC
Git commit bcf047fc754a2ce98ad676cfdf182fd11c679103 by Boudewijn Rempt.
Committed on 13/03/2018 at 08:52.
Pushed by rempt into branch 'krita/4.0'.

Set the maximum values for width and height to 100000000.000000

This is the same value as in the new image dialog, which makes
sense. This partially reverts

commit 40c93621ec166fdd39fd44003e68a1a52e84aa74
Author: Juan Palacios <jpalaciosdev@gmail.com>
Date:   Sun Nov 24 20:22:24 2013 +0100

    Tweak value range of size dialog's spinboxes.

    Incremented number of decimals for QDoubleSpinbox and set a more sane
    range for allowed values in all spinboxes of canvas size, image size
    and layer size dialogs.
(cherry picked from commit 581d1379bcb2563d4981e2b0274f697d4f165d80)

M  +8    -8    plugins/extensions/imagesize/wdg_canvassize.ui
M  +5    -5    plugins/extensions/imagesize/wdg_imagesize.ui
M  +7    -7    plugins/extensions/imagesize/wdg_layersize.ui

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