On Sat, Dec 20, 2008 at 9:06 PM, Thomas Holder
Hmm... but still the command line export uses "desktop" coordinates (with --export-area=x0:y0:x1:y1) and the function sp_export_png_file expects an area in desktop coordinates as well. The transformation is trivial and is done there by coordinate flipping and shifting by document height.
Well, I wonder if we should better eliminate the desktop coords transform here. Command line is for power users, who will more likely need the true SVG coordinates. At least, here is the change that I did for version 0.44:
The --query-* command line parameters now return the true SVG bounding box of the object instead of the Inkscape coordinate system bbox (with inverted Y axis). The new behavior makes more sense for scripting use of Inkscape. (http://wiki.inkscape.org/wiki/index.php/ReleaseNotes044)
so I think we must change all other command line parameters to match this behavior.