Clipped embedded image disappears when saving as Cairo PNG

Bug #1282909 reported by Erel Segal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

I created a simple InkScape file in the following way:

* Copied an image from clipboard.
* Pasted into InkScape.
* Saved as SVG.

The SVG file looks fine - it contains the pasted image and has a size of 972 KB (apparently the size of the image).

Next, I did "Save a copy" and saved as PNG.

The PNG file looks blank, and has a size of only 2 KB.

OS: Ubuntu 12.04
Inkscape Version: 0.48.3.1 r9886

Revision history for this message
su_v (suv-lp) wrote :

Please provide information about OS/platform and Inkscape version (see Inkscape menu 'Help > About Inkscape').

To allow further investigation, please also attach the two files you saved (SVG, PNG).

On 2014-02-21 08:20 +0100, Erel Segal wrote:
> Next, I did "Save a copy" and saved as PNG.

Note that the recommended export to PNG is via 'File > Export Bitmap'. The file format 'Cairo PNG' (via 'File > Save/Save as/Save a copy') only supports a limited set of features and was intended as test case for cairo-based exports mainly:
<http://tavmjong.free.fr/INKSCAPE/MANUAL/html/File-Export.html#File-Export-PNG-Cairo>

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Erel Segal (erelsgl) wrote :
no longer affects: ubuntu
description: updated
Revision history for this message
Erel Segal (erelsgl) wrote :

Done, and thanks for the hint about exporting to bitmap.

Revision history for this message
su_v (suv-lp) wrote :

Please also attach the SVG you saved first.

Revision history for this message
su_v (suv-lp) wrote :

Nevermind, found the attached SVG.

Changed in inkscape:
status: Incomplete → New
description: updated
Revision history for this message
Erel Segal (erelsgl) wrote :

I already attached it and I can see it in the bottom-right pane under "Bug attachments".

Strangely, it doesn't appear in the left thread (is this a bug in LaunchPad?)

Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.3.1 on OS X 10.7.5: the clipped bitmap image is not present in the file saved as 'Cairo PNG' (note that the original description of the report does not mention that the pasted bitmap image was further edited (clipped)).

After releasing the clip, saving a copy as 'Cairo PNG' works as expected (within the known limitations of the Cairo PNG file format).

Revision history for this message
su_v (suv-lp) wrote :

Related earlier report:
- Bug #669267 “Saving file as 'Cairo PNG' creates incorrect file.”
  <https://bugs.launchpad.net/inkscape/+bug/669267>

tags: added: clipping png saving
Changed in inkscape:
status: New → Confirmed
summary: - Embedded image disappears when saving as PNG
+ Clipped embedded image disappears when saving as Cairo PNG
Revision history for this message
su_v (suv-lp) wrote :

Also reproduced with latest trunk (r13047) and latest stable cairo (1.12.16), on OS X 10.7.5 (the clipped bitmap image is missing in the Cairo PNG, saves as expected if unclipped).

Changed in inkscape:
status: Confirmed → Fix Committed
Max Gaukler (mgmax)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.