PS/PDF export fails with images >32767px

Bug #955889 reported by Thomas Rast
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

Saving a drawing with images >32767px (on one axis) to PS and PDF omits these images.

To reproduce:
$ convert -size 32767x3000 xc:black a.tif
$ convert -size 32768x3000 xc:skyblue b.tif

Make a new drawing and import both images (let's use "link" here; "embed" dit not help either). Scale them to page width and move them within page boundaries. Save the drawing as SVG and see that there's nothing suspicious about it[1]. Save the drawing as PS or PDF, open in a viewer: the skyblue one is missing.

Since this happened to me for other values of 3000[2], I strongly suspect a 'short' overflow bug on the image size.

Using openSuSE Tumbleweed as packaged, in particular
$ inkscape --version
Inkscape 0.48.2 r9819
$ rpm -qa | grep cairo
python-cairo-1.10.0-3.1.3.x86_64
libcairo2-1.10.2-14.1.3.x86_64
python-gobject-cairo-3.0.2-2.3.1.x86_64
libcairo2-32bit-1.10.2-14.1.3.x86_64
libcairomm-1_0-1-1.10.0-4.1.3.x86_64
libcairo-gobject2-1.10.2-14.1.3.x86_64
cairo-devel-1.10.2-14.1.3.x86_64
libcairo-script-interpreter2-1.10.2-14.1.3.x86_64
$ uname -a
Linux thomas.inf.ethz.ch 3.2.9-13-desktop #1 SMP PREEMPT Sun Mar 4 13:25:26 UTC 2012 (2c205b4) x86_64 x86_64 x86_64 GNU/Linux

[1] I'd love to attach the resulting SVG, but selecting it in the "open" dialog crashes my xulrunner. What a lovely day.

[2] I use inkscape to convert panoramas (from hugin) to PS for printing on a 150cm continuous paper inkjet printer. 32kpx is "only" about 540dpi when printing it across the width of the page, or less when printing lengthwise. Not to mention that I could easily stitch them 65kpx wide to fully use the camera resolution.

jazzynico (jazzynico)
tags: added: exporting pdf
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape 0.48.2 and trunk revision 11141.

Not exactly with the same values, but the same effect.
To reproduce, open the attached document and modify the groups width from 17999 to 18000 pixels before exporting to PDF.

Note that it is not due to the fact that an image is imported, but to the dimensions of the drawing (also fails with shapes).

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
Arnaud Gout (arnaud-gout-x) wrote :

This problem seems to be linked not only to pdf export but also to png export.
The point in common is that high resolution export leads to an empty file.
See Bug #1175692

su_v (suv-lp)
tags: added: cairo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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