![](https://secure.gravatar.com/avatar/b2dc087f43d1dd5db52c95b09b601da2.jpg?s=120&d=mm&r=g)
Is this using a python extension to inkscape, or in an external application?
If an extension, you can call another instance of inkscape passing the --query-all parameter and get a list of all the bounding boxes for every object in the svg file.
-Rob A>
On Jan 31, 2008 12:37 AM, M. Bashir Al-Noimi wrote:
Hi All :-) ,
I want to calculate dimensions of the following object:
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="430pt" height="648pt" viewBox="0 0 430 648" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0,648) scale(0.040000,-0.040000)" fill="#000000" stroke="none"> <path d="M6837 16034 c-4 -4 -4 -11 -1 -16 6 -10 24 -1 24 13 0 10 -14 12 -23 3z"/>
How I can do that?
I tried the following, but I'm sure it's wrong.
Calc Left point: Left = XM*Scale_X = 6837*0.040000 = 273.48
Calc Bottom point: Bottom = YM*Scale_Y = 16034*ABS(-0.040000) = 641.36
Converting c point to C: -4 -4 -4 -11 -1 -16 6 -10 24 -1 24 13 0 10 -14 12 -23 3 273.32 641.2 273.32 640.92 273.44 640.72 273.72 640.96 274.44 641.32 274.44 641.88 273.48 641.76 272.92 641.84 272.56 641.48
Calc Width as following: Width = X_MAX-X_MIN = 274.44-272.56 = 1.88
Calc Height as following: Height = Y_MAX-Y_MIN = 641.88-640.72 = 1.16
-- Best Regards تحياتي Muhammad Bashir Al-Noimi محمد بشير النعيمي
My Blog مدونتي http://mbnoimi.net/
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel