Add ability to resize images based on percentage

Authored by huoni on Apr 13 2018, 11:14 PM.

Description

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.

BUG: 207802
FIXED-IN: 18.08.0

Before:

After:

Test Plan:
Open raster image, resize (+R).
Modify width and height values and percentages, with and without
Keep aspect ratio checked.

  • If 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

Details

Committed
huoniApr 23 2018, 11:34 PM
Reviewer
Gwenview
Differential Revision
D12300: Add ability to resize images based on percentage
Parents
R260:23d75f4a3f83: Update markup for xi18n* in failed-save message box
Branches
Unknown
Tags
Unknown