GNOME Bugzilla – Bug 559081
JPEG Save dialog preview should adjust size units
Last modified: 2008-11-03 21:12:15 UTC
This was originally filed against Fedora at: https://bugzilla.redhat.com/show_bug.cgi?id=469551 Description of problem: When saving a JPEG and enabling 'Show preview' in the quality dialog, the file size is always displayed in kB. It would be nicer to switch to MB at 1024kB, so that sizes can be directly compared with e.g. nautilus. Version-Release number of selected component (if applicable): gimp-2.4.7-3.fc9 How reproducible: 100% Steps to Reproduce: 1.Start GIMP, open a large-ish image. 2.File->Save As...->foo.jpg 3.Enable preview 4.Inspect file size. Actual results: Shown in thousands of kB. Expected results: Shown in appropriate units. Additional info: Patch attached for gimp-2.6.2.
Created attachment 121857 [details] [review] patch to use MB as the jpeg preview unit for 1024 KB and higher
NB: patch is by the original submitter, Tim Waugh.
Give me a shout if this should be made configurable, I imagine that some people would want to have the (more) exact KB numbers even for large files (e.g. when trying to satisfy space constraints).
Thanks for spotting this. Fixed in trunk: 2008-11-03 Sven Neumann <sven@gimp.org> Bug 559081 – JPEG Save dialog preview should adjust size units * plug-ins/file-jpeg/jpeg-save.c: use g_format_size_for_display() to display the JPEG file size.