PS/PDF export fails with images >32767px
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-
libcairo2-
python-
libcairo2-
libcairomm-
libcairo-
cairo-devel-
libcairo-
$ 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.
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).