xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mihir <mihir_amr...@yahoo.com>
Subject Resize SVG Path(s) with Physical Mesaurement Unit
Date Sat, 16 Mar 2013 17:28:43 GMT
Hello

My GOAL
----------------------------------------------------------------------------------------

*convert a Paper Pattern of Shoe shape in to Digital Scalable format by
preserving its physical measurement  with target printer DPI taken into
account*

I have a paper Pattern of a Shoe Side Component. what i did up until now to 
make it digitize in above manner,

(1) Take  a A4 Size Paper
(2) Put this Paper Pattern on this Paper 
(3) Draw an Outline on to the Paper of Component 
(4) So i get the Shape Outline on the Paper
(5) Scan this Paper using 200 DPI in JPEG format and i got the following
Image.

Shoe Component Scanned at 200 DPI (I have so may times try to upload the
image but it fails)

after this,

I open this image in inkspace trace the bitmap , save file as SVG and get
the following path.

<path
     d="m 1945.5,1683.9752 c -30.0155,-2.4876 -54.0851,-12.3408
-73.6527,-30.1506 -2.0089,-1.8285 -33.6966,-45.8496 -70.4171,-97.8246
-36.7204,-51.975 -73.2987,-103.725 -81.285,-115 -7.9862,-11.275
-18.1766,-25.675 -22.6452,-32 -52.816,-74.7574 -52.2195,-74.0572
-69.0796,-81.0973 -18.0361,-7.5312 -24.164,-8.8389 -48.2228,-10.2911
-12.1016,-0.7304 -25.4568,-0.9969 -30.1976,-0.6025 -12.9809,1.0799
-39.2305,6.3025 -112.5,22.3829 -18.7,4.1041 -46.15,10.0041 -61,13.1112
-14.85,3.1071 -38.025,8.2988 -51.5,11.5373 -22.8239,5.4852 -50.1507,11.7134
-127.5,29.059 -17.05,3.8235 -51.7,11.2454 -77,16.4932 -25.3,5.2477
-65.9794,13.7862 -90.3987,18.9743 -42.11009,8.9468 -45.02285,9.433
-56.50703,9.433 -27.04965,0 -44.44761,-9.4555 -60.07869,-32.6519
-5.85594,-8.6901 -7.47747,-14.4372 -12.93588,-45.8481 -3.87942,-22.3245
-16.80463,-148.6998 -21.01781,-205.5 -5.6497,-76.167 -5.88607,-81.7611
-5.8733,-139 0.0107,-47.94626 0.30993,-59.24284 2.19859,-83
2.62457,-33.01416 7.49996,-69.9155 14.07073,-106.5 2.66714,-14.85
5.84036,-33.075 7.05159,-40.5 2.54951,-15.62872 3.59303,-17.40522
10.79401,-18.3759 2.58307,-0.34819 9.9961,-1.61223 16.47339,-2.80899 l
11.77691,-2.17591 7.41491,-23.0696 c 4.0782,-12.68828 10.18484,-32.29342
13.5703,-43.56698 3.38547,-11.27356 6.57197,-21.27574 7.08111,-22.22708
1.90739,-3.56399 4.06945,-3.76938 24.01756,-2.28161 35.30611,2.63321
108.06081,7.45577 128.36231,8.50853 11,0.57042 30.125,1.70454 42.5,2.52026
28.0228,1.84716 130.8259,8.20095 145,8.96178 83.8365,4.50011
107.6002,5.87057 130.5,7.52594 14.85,1.07346 46.35,3.08882 70,4.47857
23.65,1.38975 52.225,3.19046 63.5,4.00158 11.275,0.81111 36.7,2.38998
56.5,3.50858 32.0485,1.81059 83.2149,4.92613 156,9.4989 59.0643,3.71076
72.8464,4.51467 88.1567,5.14219 13.7526,0.56369 16.5629,0.9449
17.9059,2.42894 0.8762,0.96818 3.3649,8.66118 5.5305,17.09556 7.11,27.69159
13.3563,44.13078 18.859,49.6335 1.5486,1.54856 4.6075,3.35245 6.7977,4.00865
5.4568,1.63489 19.2015,1.47992 34.7502,-0.39181 24.9253,-3.00046
22.7937,-3.04319 25.7893,0.5169 1.4577,1.73235 3.5967,6.39384
4.7533,10.35886 1.1565,3.96503 5.957,19.35914 10.6675,34.20914
27.4314,86.47681 66.5112,155.22433 111.1812,195.5853 14.7913,13.3644
51.3205,36.5873 75.043,47.7075 26.5961,12.4671 64.1702,21.0259
117.479,26.7598 65.6749,7.064 99.974,12.9238 164.5867,28.1188
53.4979,12.5811 84.9315,27.6803 107.8473,51.8047 9.432,9.9295
15.1651,18.9002 21.6626,33.8963 2.8901,6.6702 7.1557,16.4026 9.4791,21.6276
22.5081,50.6179 48.5214,129.832 68.0314,207.1656 7.317,29.0029
8.2071,35.4744 5.2296,38.0214 -0.9625,0.8233 -7.825,3.1915 -15.25,5.2626
-7.425,2.0711 -58.275,16.4941 -113,32.0511 -238.9201,67.9194
-321.4745,91.3786 -394.5,112.1037 -31.9,9.0535 -64.3369,18.6596
-72.0821,21.347 -41.9077,14.541 -98.3118,22.9748 -133.9179,20.0238 z" 
     id="path2997"
     fill="none" />


now my question is 

how can i resize this path such as for example,

29cm * 20 cm for 72 DPI .

I want to resize the path with reference to physical size.

I have explained here everything , still any doubts please fill free to ask
me.

Thank You
Mihir Parekh



--
View this message in context: http://batik.2283329.n4.nabble.com/Resize-SVG-Path-s-with-Physical-Mesaurement-Unit-tp4655513.html
Sent from the Batik - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message