Bug 433740 - Show Image File Size While Resizing
Summary: Show Image File Size While Resizing
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
: 407040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-02-28 11:40 UTC by Berker
Modified: 2021-10-13 19:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.12


Attachments
Observed Result (16.78 KB, image/png)
2021-02-28 11:40 UTC, Berker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Berker 2021-02-28 11:40:13 UTC
Created attachment 136251 [details]
Observed Result

SUMMARY
I am using resize option to shrink the file size because I cannot upload it to certain sites. So I would like to see the expected file size while resizing.

STEPS TO REPRODUCE
1. Open an image
2. Click resize under edit tab

OBSERVED RESULT
Does not show file size

EXPECTED RESULT
Shows file size

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Manjaro (5.11.1-1 Kernel)
(available in About System)
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-03-02 18:06:32 UTC
Good idea!
Comment 2 Antonio Prcela 2021-05-24 13:56:53 UTC
*** Bug 407040 has been marked as a duplicate of this bug. ***
Comment 3 Justin Zobel 2021-05-24 23:23:58 UTC
(In reply to Antonio Prcela from comment #2)
> *** Bug 407040 has been marked as a duplicate of this bug. ***

Wrong way around. You should mark the new as a duplicate of the old bug.
Comment 4 Antonio Prcela 2021-10-13 19:25:46 UTC
Git commit c3b9e549105cd78df8c9f8881b543c81977fede6 by Antonio Prcela.
Committed on 13/10/2021 at 19:23.
Pushed by ngraham into branch 'master'.

Show estimated file size in the resize image dialog

Automatically calculate the expected file size for the image with
the new size. Calculation is based on the assumption that the
image format won't be changed and for lossy images it uses
the value set in 'Lossy image save quality'.

M  +1    -0    app/imageopscontextmanageritem.cpp
M  +76   -0    lib/resize/resizeimagedialog.cpp
M  +7    -0    lib/resize/resizeimagedialog.h
M  +111  -58   lib/resize/resizeimagewidget.ui

https://invent.kde.org/graphics/gwenview/commit/c3b9e549105cd78df8c9f8881b543c81977fede6