Bug 207802

Summary: Ability to enter percentage when resizing
Product: [Applications] gwenview Reporter: Grósz Dániel <groszdanielpub>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 18.08.0
Sentry Crash Report:

Description Grósz Dániel 2009-09-18 16:45:04 UTC
Version:            (using KDE 4.3.1)
OS:                Linux
Installed from:    SuSE RPMs

When resizing the image, the user must enter the new size in pixels. It would be nice to be able to enter it in percents as well.
Comment 1 Aurelien Gateau 2009-09-30 09:30:32 UTC
Good point, adding to my TODO.
Comment 2 Huon 2018-04-23 23:34:30 UTC
Git commit 25f2d4483b2dda15ace9eeff425760c042dcce91 by Huon Imberger.
Committed on 23/04/2018 at 23:34.
Pushed by huoni into branch 'master'.

Add ability to resize images based on percentage

Summary:
Adds Percentage width/height fields to the image resize dialog,
and ensures all fields appropriately adjust automatically.
FIXED-IN: 18.08.0

Before:
{F5811250, size=full}

After:
{F5811247, size=full}

Test Plan:
Open raster image, resize ({key Shift}+{key R}).
Modify width and height values and percentages, with and without
{nav Keep aspect ratio} checked.
  - If {nav Keep aspect ratio} checked, percentages should always
  be exactly the same
  - Values should be consistent, no matter which value is manually
  modified.

Confirming the resize should work as normal.

Reviewers: #gwenview, rkflx

Reviewed By: #gwenview, rkflx

Subscribers: rkflx, ngraham, muhlenpfordt

Tags: #gwenview

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

M  +63   -6    lib/resize/resizeimagedialog.cpp
M  +2    -0    lib/resize/resizeimagedialog.h
M  +59   -0    lib/resize/resizeimagewidget.ui

https://commits.kde.org/gwenview/25f2d4483b2dda15ace9eeff425760c042dcce91