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 507228 - Image size calculation for dragged images is wrong
Image size calculation for dragged images is wrong
Status: RESOLVED FIXED
Product: postr
Classification: Other
Component: General
0.9
Other Linux
: Low normal
: ---
Assigned To: Postr Maintainers
Postr Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-04 10:39 UTC by Ross Burton
Modified: 2012-10-04 01:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ross Burton 2008-01-04 10:39:24 UTC
Flickr cares about the file size of the uploaded data, not the resulting uncompressed image size.  So, when an image is dragged to postr, it should straight away encode to a PNG and determine the file size, instead of converting when uploading.
Comment 1 Germán Poo-Caamaño 2009-11-05 03:44:47 UTC
I was trying to figure out when it could happen.  I am documenting the steps just
in case a voluntary would like to work in this bug.

When using drag & drop from Nautilus to Postr, Postr receives an URI; which works ok.

However, when using Gimp is possible to drag from the layer toolbox and drop on Postr.
In such case, Postr will receive an (uncompressed) Image not an URI.  The file size may
be 2.2MB, but the uncompressed file may be 20MB.

Postr will transfer a file throught HTTP.  Hence, in the previous example, the right
size if 2.2MB not 20MB.
Comment 2 Germán Poo-Caamaño 2009-11-05 04:24:55 UTC
On the other hand, the file size is checked on ::add_image_filename().
In the case described in this bug (targetType == ImageList.DRAG_IMAGE)
it is never checked.

I do think this is not a common use case.
Comment 3 Germán Poo-Caamaño 2012-10-04 01:21:20 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.