converting SVG to PNG
"vinayak datir [email protected] [svg-developers]" <[email protected]> Tue, 12 Jun 2018 13:45:32 +0000 (UTC)
| Newsgroups | gmane.text.xml.svg.devel |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_3665058_512338636.1528811132990
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
Hi All,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 I am using batik-rasterizer-1.9.jar to convert =
the SVG into PNG. Input SVG has the CSS embedded using style tag.
=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 PNG is getting generated but =C2=A0styles are not getting picked =
up.
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 I have done two try outs
=C2=A0
Command I tried =
are =E2=80=93
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0
1>=C2=A0=C2=A0=C2=A0=C2=A0java -jar batik-rasterizer-1=
...9.jar d:\input.svg
=C2=A0
2>=C2=A0=C2=A0=C2=A0=C2=A0In second tryout =
I have separate out the css and SVG and run below command =E2=80=93
=C2=
=A0
java -jar batik-rasterizer-1.9.jar d:\OnlySVG.svg -cssUser style.css
=
=C2=A0
But output is same. Getting the PNG without the styles.
=C2=
=A0
Can anyone throw pointer on this issue?
=C2=A0
Thanks,
Vinayak=
...
=C2=A0
------=_Part_3665058_512338636.1528811132990
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<head>
<style type=3D"text/css">
<!--
/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}
div.photo-title=20
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;=20
}
div.attach-table div.attach-row {
clear: both;
}
div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}
p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}
div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}
div.attach-table div.attach-row div div span {
font-weight: normal;
}
div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html><head></head><body>
<!-- |**|begin egp html banner|**| -->
<br><br>
<!-- |**|end egp html banner|**| -->
<div style=3D"font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font=
-size:13px;"><div style=3D"font-family:Helvetica Neue, Helvetica, Arial, sa=
ns-serif;font-size:13px;"><div></div>
<div><span style=3D"color: rgb(38, 40, 42);">Hi All,</span><br></di=
v></div><div id=3D"ydpb4cf2489yahoo_quoted_9628238703" class=3D"ydpb4cf2489=
yahoo_quoted"><div style=3D"font-family:'Helvetica Neue', Helvetica, Arial,=
sans-serif;font-size:13px;color:#26282a;"><div><div id=3D"ydpb4cf2489yiv70=
47282112"><div class=3D"ydpb4cf2489yiv7047282112yqt1585465305" id=3D"ydpb4c=
f2489yiv7047282112yqtfd51643"><div><div style=3D"font-family:Helvetica Neue=
, Helvetica, Arial, sans-serif;font-size:13px;"><div class=3D"ydpb4cf2489yi=
v7047282112ydp650de982yahoo_quoted" id=3D"ydpb4cf2489yiv7047282112ydp650de9=
82yahoo_quoted_9732589536"><div style=3D"font-family:'Helvetica Neue', Helv=
etica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div id=3D"ydp=
b4cf2489yiv7047282112ydp650de982yiv6964090382"><div class=3D"ydpb4cf2489yiv=
7047282112ydp650de982yiv6964090382yqt7844706940" id=3D"ydpb4cf2489yiv704728=
2112ydp650de982yiv6964090382yqtfd51129"><div><div style=3D"font-family:Helv=
etica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div class=3D"ydp=
b4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yahoo_quoted" id=3D=
"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yahoo_quoted_89=
10028962"><div style=3D"font-family:'Helvetica Neue', Helvetica, Arial, san=
s-serif;font-size:13px;color:#26282a;"><div><div id=3D"ydpb4cf2489yiv704728=
2112ydp650de982yiv6964090382ydpd2d8e093yiv7539818032"><div><div class=3D"yd=
pb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7539818032WordS=
ection1">=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoNormal"> &=
nbsp; I am using batik-rasterizer-1.9.jar to =
convert the SVG into PNG. Input SVG has the CSS embedded using style tag.</=
p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoNormal"> &=
nbsp; PNG is getting generated but styl=
es are not getting picked up.</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoNormal"> &=
nbsp; I have done two try outs</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoNormal"> </p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph">Command I tried are =E2=80=93</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoNormal"> &=
nbsp; &nb=
sp; =
&nb=
sp; =
</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph"><span>1><span style=3D"font-style:normal;font=
-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-fa=
mily:New;">
</span></span>java -jar batik-rasterizer-1.9.jar d:\input.svg</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoNormal" style=3D"text-indent:.5in;"> </p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph"><span>2><span style=3D"font-style:normal;font=
-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-fa=
mily:New;">
</span></span>In second tryout I have separate out the css and SVG and run =
below command =E2=80=93</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph"> </p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph">java -jar batik-rasterizer-1.9.jar d:\OnlySVG.sv=
g -cssUser style.css</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph"> </p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph">But output is same. Getting the PNG without the =
styles.</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph"> </p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph">Can anyone throw pointer on this issue?</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph"> </p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph">Thanks,</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph">Vinayak.</p>=20
<p class=3D"ydpb4cf2489yiv7047282112ydp650de982yiv6964090382ydpd2d8e093yiv7=
539818032MsoListParagraph"> </p>=20
</div>
</div>
</div></div>
</div>
</div></div></div></div></div></div>
</div>
</div></div></div></div></div></div>
</div>
</div></div>
<!-- |**|begin egp html banner|**| -->
<br>
<br>
<!-- |**|end egp html banner|**| -->
<div width=3D"1" style=3D"color: white; clear: both;"/>__._,_.___</div>
=20=20=20=20=20=20
=20=20
=20=20=20=20
<div id=3D"fromDMARC" style=3D"clear:both; margin-top: 10px;">
<hr style=3D"height:2px ; border-width:0; color:#E3E3E3; backgroun=
d-color:#E3E3E3;">
Posted by: vinayak datir <[email protected]> <hr=
style=3D"height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E=
3E3;">
</div>
<!-- Start Recommendations -->
<!-- End Recommendations -->
<!-- |**|begin egp html banner|**| -->
<br><br>
<tt>
-----<BR>
To unsubscribe send a message to: [email protected]=
m<BR>
-or-<BR>
visit <a href=3D"http://groups.yahoo.com/group/svg-developers">http://group=
s.yahoo.com/group/svg-developers</a> and click "edit my membership&quo=
t;<BR>
----</tt>
<br><br>
<!-- |**|end egp html banner|**| -->
<!-- |**|begin egp html banner|**| -->
<img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D1298421/grpspI=
d=3D1706030390/msgId=3D66573/stime=3D1530775003" width=3D"1" height=3D"1"> =
<br>
<!-- |**|end egp html banner|**| -->
=20=20=20=20
<!-- |**|begin egp html banner|**| -->
<br>
=20=20=20
=20=20=20=20=20
=20
<!-- |**|begin egp html banner|**| -->
<div id=3D"ygrp-vital" style=3D"background-color: #f2f2f2; font-fam=
ily: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">
<span id=3D"vithd" style=3D"font-weight: bold; color: #333; text-tr=
ansform: uppercase; "><a href=3D"https://groups.yahoo.com/neo/groups/svg-de=
velopers/info;_ylc=3DX3oDMTJlMW50b21wBF9TAzk3MzU5NzE0BGdycElkAzEyOTg0MjEEZ3=
Jwc3BJZAMxNzA2MDMwMzkwBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTUzMDc3NTAwMw--" sty=
le=3D"text-decoration: none;">Visit Your Group</a></span>
<ul style=3D"list-style-type: none; margin: 0; padding: 0; display: in=
line;">
</ul>
</div>
<div id=3D"ft" style=3D"font-family: Arial; font-size: 11px; margin-top: 5p=
x; padding: 0 2px 0 0; clear: both;">
<a href=3D"https://groups.yahoo.com/neo;_ylc=3DX3oDMTJkY2ZqcG0wBF9TAzk3ND=
c2NTkwBGdycElkAzEyOTg0MjEEZ3Jwc3BJZAMxNzA2MDMwMzkwBHNlYwNmdHIEc2xrA2dmcARzd=
GltZQMxNTMwNzc1MDAz" style=3D"float: left;"><img src=3D"http://l.yimg.com/r=
u/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height=3D"15"=
width=3D"137" alt=3D"Yahoo! Groups" style=3D"border: 0;"/></a>
<div style=3D"color: #747575; float: right;"> • <a href=3D"https://i=
nfo.yahoo.com/privacy/us/yahoo/groups/details.html" style=3D"text-decoratio=
n: none;">Privacy</a> • <a href=3D"mailto:svg-developers-unsubscribe@y=
ahoogroups.com?subject=3DUnsubscribe" style=3D"text-decoration: none;">Unsu=
bscribe</a> • <a href=3D"https://info.yahoo.com/legal/us/yahoo/utos/te=
rms/" style=3D"text-decoration: none;">Terms of Use</a> </div>
</div>
<!-- |**|end egp html banner|**| -->
</div> <!-- ygrp-msg -->
=20=20=20
<br>
<!-- |**|end egp html banner|**| -->
<div style=3D"color: white; clear: both;"/>__,_._,___</div>
</body></html>
------=_Part_3665058_512338636.1528811132990--