export-id with export-pdf/export-eps/export-ps wrong bbox

Bug #743987 reported by hefee
60
This bug affects 9 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Medium
Unassigned

Bug Description

If I use:

inkscape -z -j --export-id=missing -export-png=missing.png --export-dpi=300 foo.svg

a get a good png picture (id is cropped and bounded perfectly).

if I try:

inkscape -z -j --export-id=missing -export-eps=missing.eps trajectory.svg

I get not a eps figure that is cropped and bound to the id.

I use Inkscape 0.48+devel r (Mar 16 2011)

Revision history for this message
hefee (hefee) wrote :
Revision history for this message
hefee (hefee) wrote :
Revision history for this message
hefee (hefee) wrote :
su_v (suv-lp)
tags: added: eps exporting pdf
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48.1 and 0.48+devel r10129 on OS X 10.5.8, both using the command line or the GUI option.

The export limited to an id seems to ignore or miscalculate the transform of the parent group(s) e.g. of the top-level layer after resizing the page.

Attached modified version works for me: the three groups have been moved onto a new layer (which doesn't have an explicit 'transform' attribute when created after resizing the page) and the exported PDF/EPS fully includes the group with the id 'missing'.

Revision history for this message
su_v (suv-lp) wrote :
Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
hefee (hefee) wrote :

I just delete the transform atribute of the layer1 and now the export works like expected. Although the ids aren't in the drawing area, the exported id area is exact what is expected.

tags: added: transform
Revision history for this message
hefee (hefee) wrote :
su_v (suv-lp)
Changed in inkscape:
status: Confirmed → Triaged
su_v (suv-lp)
summary: - eport-id with export-pdf/export-eps/export-ps wrong bbox
+ export-id with export-pdf/export-eps/export-ps wrong bbox
tags: added: transformations
removed: transform
Revision history for this message
dkg (dkg0) wrote :

This is still happening with inkscape 0.48.4-0.1 and libcairo2 1.12.14-1 (from debian experimental).

Revision history for this message
Beluga (buovjaga) wrote :

No reproduced. For some reason I get the filename as xport-eps=missing.eps so it left me wondering, if something changed in the parameters?

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

Revision history for this message
hefee (hefee) wrote :

I can still reproduce this with curent version (Inkscape 0.91 r13725, debian unstable).
But the command was missing the "-" before expert-png/export-eps:

correct commands:
inkscape -z -j --export-id=missing --export-png=missing.png --export-dpi=300 foo.svg

inkscape -z -j --export-id=missing --export-eps=missing.eps trajectory.svg

Revision history for this message
Paul Gaborit (paul-gaborit) wrote :

This is still happening with inkscape 0.92 and Ubuntu 17.04 (zesty). When I wrote this answer (<https://tex.stackexchange.com/a/208172/14500>), everything worked. With version 0.92 of inkscape, the PDFs produced are blank (the object extracted by id is in the SVG document but the bounding box is incorrect).

Revision history for this message
Paul Ynome (paulynome) wrote :

Also happening with Inkscape 0.92.2 on Windows 10

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.