Bug 87963 - Add percentage value to new calculated compressed image size
Summary: Add percentage value to new calculated compressed image size
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: Other All
: medium enhancement
Assignee: Daniel
URL:
Whiteboard: target:7.1.0
Keywords: difficultyBeginner, easyHack, skillCpp, topicUI
Depends on:
Blocks: Image-Compression
  Show dependency treegraph
 
Reported: 2015-01-02 11:18 UTC by Yousuf Philips (jay) (retired)
Modified: 2023-04-20 09:25 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2015-01-02 11:18:29 UTC
When you open up the compress image dialog (image context menu > compress image...) and click on the 'Calculate' button, it shows you the new size of the compressed image in kilobytes, but doesnt show the percentage change in value, so a user knows how much he is saving.
Comment 1 Tomaz Vajngerl 2015-01-02 11:45:20 UTC
Sure, this can be easily added.
Comment 2 A (Andy) 2015-01-02 17:56:45 UTC
I agree, this would be a useful further information.
Comment 3 Justin L 2020-03-04 07:44:14 UTC
It looks like this is in svx/source/dialog/compressgraphicdialog.cxx's CompressGraphicsDialog::Update() function.
Comment 4 Xisco Faulí 2020-07-22 15:15:27 UTC
Dear Ayhan Yalçınsoy,
This bug has been in ASSIGNED status for more than 3 months without any
activity. Resetting it to NEW.
Please assign it back to yourself if you're still working on this.
Comment 5 An-Kh 2020-08-23 16:18:17 UTC
I have worked on it.

Please check : https://gerrit.libreoffice.org/c/core/+/101242 

Waiting for reviews
Comment 6 Commit Notification 2020-10-10 12:27:12 UTC
Daniel committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/46772b2dbbc269c2e83f00af2cd864fb64ccf425

tdf#87963: Add percentage value to new calculated compressed image size

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Buovjaga 2020-11-03 06:05:27 UTC
I verify the implementation. In case the size is not shrinking, but growing, it is displayed like "(-265 % Reduction)".

Daniel: if there is nothing else to do, please change the status to fixed.