Bug 246332

Summary: FILEIO : show resulting file size in save dialog
Product: [Applications] digikam Reporter: Frank Gore <gore>
Component: DImg-FileIOAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Frank Gore 2010-07-31 08:07:59 UTC
Version:           1.2.0 (using KDE 4.4.4) 
OS:                Linux

When saving as a JPG file, it would be extremely useful to know how big a file will be as quality settings are adjusted, similar to what GIMP offers. Many web sites have a file size limit for uploads, and the only reason I resize and re-save images is to be under that limit. It's aggravating to have to save over and over with different quality settings until I get it right.

Reproducible: Always

Steps to Reproduce:
Try saving a file as a JPEG

Actual Results:  
No expected file size displayed anywhere

Expected Results:  
An expected file size displayed somewhere
Comment 1 Marcel Wiesweg 2010-08-06 11:50:43 UTC
How does the Gimp implement that? Is it byte exact or a guess?
I dont see a way to know the file size before saving.
Comment 2 Frank Gore 2010-08-06 15:44:40 UTC
It's byte-exact. In the save dialog, there's an option to "Show preview in image window". When that option is clicked, the image is temporarily saved and its result is displayed in the image window, so I can see what the final JPG file will look like (compression artifacts and all) as I change JPG options. After every change, the resulting file size is recalculated. If the file is too large (ie. 20+ megapixels), then his option is a bit slow so I turn it off. But at that point, I don't really care about file size anyways.

This ability to see file size and resulting image is extremely convenient. If Digikam could do it, I'd never need to re-open the files in Gimp just to re-save to the right file size.