After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 673006 - Wrong filesize in image preview, image properties and JPEG export dialog
Wrong filesize in image preview, image properties and JPEG export dialog
Status: RESOLVED DUPLICATE of bug 669818
Product: GIMP
Classification: Other
Component: General
2.7.5
Other Windows
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2012-03-28 16:06 UTC by GrafxUser
Modified: 2012-03-28 16:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshots of the dialogs with wrong file sizes (19.48 KB, image/png)
2012-03-28 16:06 UTC, GrafxUser
Details
Screenshots of the affected dialog boxes (60.98 KB, image/png)
2012-03-28 16:08 UTC, GrafxUser
Details

Description GrafxUser 2012-03-28 16:06:14 UTC
Created attachment 210793 [details]
Screenshots of the dialogs with wrong file sizes

GIMP shows a wrong filesize in the following dialogs:
1.  under the image preview in 'Open file', 'Open as Layers', 'Save as…', 'Save a copy'
2. 'Export image as JPEG', after enabling the option 'Show preview in image window'
3. 'Image Properties'

This happens always and affects JPEG, PNG, GIF, XCF, PSP and perhaps others as well (I tested with these file types).

How to reproduce:
to 1) run File/'Open', 'Open as Layers', 'Save as…' or 'Save a Copy'. Check the file size under the thumbnail preview.
to 2) run Image/Image Properties, check the item 'File Size:'
to 3) open or create an image, run File/Export…, choose extension .JPG and confirm. In the following dialog enable the option "Show preview in image window' and wait a short while until the size is computed

This should happen:
The proper file size should be shown.

This actually happens:
GIMP shows a file size of 1.3 GB for every file, independent of its actual size.
Also see the attached screenshots.

To me it is unclear, where this value comes from. It's neither the size of the affected files nor the free space of the files' volumes nor the size of the harddisk.

My system: 
Windows 7 32 bit, GIMP 2.7.5 (official GIMP development release).
Comment 1 GrafxUser 2012-03-28 16:08:33 UTC
Created attachment 210794 [details]
Screenshots of the affected dialog boxes
Comment 2 Michael Schumacher 2012-03-28 16:09:32 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 669818 ***
Comment 3 GrafxUser 2012-03-28 16:30:05 UTC
Thanks, Michael, for your very fast reply. I hadn't finished my next bug report yet, while your reaction came in here ;-)
But I'm afraid you were a little bit too fast. I already checked bug 669818 before my posting and found out, that my problem goes beyond that. Bug #669818 is about JPG files only and comment 4 there is a fix for JPEG files. The bug I reported is about more (if not all) image types. 
What will we do now - edit bugs 669818 title or reopen this bug? If latter, how can I do this (the status listbox only shows the items RESOLVED, UNCONFIRMED and VERIFIED, but not REOPENED)?
Comment 4 Michael Schumacher 2012-03-28 16:54:34 UTC
Comment #4 of bug 669818 is not a fix for this problem (and the same workaround could probably be done for all file format plug-ins).

The older bug should be extended to cover all file formats - that is, the summary and a comment.

IMO it's not absolutely necessary to do that, though - I'd be very surprised if a patch for 669818 wouldn't fix this problem for all formats.