Loading ...
Sorry, an error occurred while loading the content.
 

backgroung png howto work with batik

Expand Messages
  • Vossler Tsao
    Hi there I build a sample background image call style4.png, It work just fine on inkscape 0.45 when export to png file format. however when I tried to batch
    Message 1 of 3 , Apr 2, 2007
      Hi there

      I build a sample background image call style4.png,
      It work just fine on inkscape 0.45 when export to png file format.

      however when I tried to batch svg files so I use
      (BatikServer_0.3.1_Windows + jre-6-windows-i586) to work with batch
      files in windows xp environment.

      here is the dos command i use

      java -jar batik-rasterizer.jar -d E:\svg -m image/jpeg -w 1800 -h
      2400 -q 0.8 -dpi 300 E:\svg\*.svg

      E:/svg/oo.svg
      E:/svg/real_styles/style4.png

      I am think do I miss some kind of path, or I should use css to make
      it so?

      thanks your help!


      Here is the source
      #################################################

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <!-- Created with Inkscape (http://www.inkscape.org/) -->
      <svg
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:cc="http://web.resource.org/cc/"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:svg="http://www.w3.org/2000/svg"
      xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-
      0.dtd"
      xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
      width="4800"
      height="3300"
      id="svg2168"
      sodipodi:version="0.32"
      inkscape:version="0.45"
      version="1.0"
      sodipodi:docbase="E:\svg"
      sodipodi:docname="oo.svg"
      inkscape:output_extension="org.inkscape.output.svg.inkscape"
      sodipodi:modified="true">
      id="defs2170" />
      <sodipodi:namedview
      id="base"
      pagecolor="#ffffff"
      bordercolor="#666666"
      borderopacity="1.0"
      gridtolerance="10000"
      guidetolerance="10"
      objecttolerance="10"
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
      inkscape:zoom="0.15515152"
      inkscape:cx="2400.0001"
      inkscape:cy="1650.0001"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      width="4800px"
      height="3300px"
      inkscape:window-width="1024"
      inkscape:window-height="712"
      inkscape:window-x="0"
      inkscape:window-y="22" />
      <metadata
      id="metadata2173">
      <rdf:RDF>
      <cc:Work
      rdf:about="">
      <dc:format>image/svg+xml</dc:format>
      <dc:type
      rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
      </cc:Work>
      </rdf:RDF>
      </metadata>
      <g
      inkscape:label="Layer 1"
      inkscape:groupmode="layer"
      id="layer1">
      <image
      y="0"
      x="0"
      id="image2315"
      height="3300"
      width="4800"
      sodipodi:absref="real_styles/style4.png"
      xlink:href="real_styles/style4.png" />
      </g>
      </svg>
    • Vossler Tsao
      I also download batik-1.7beta1 to do the test, Is that because batik don t support transparency png file. here is the png file http://2tsao.com/style.png
      Message 2 of 3 , Apr 2, 2007
        I also download batik-1.7beta1 to do the test, Is that because batik
        don't support "transparency" png file.

        here is the png file http://2tsao.com/style.png

        thanks in advance
      • thomas.deweese@kodak.com
        Hi, ... DOS doesn t really expand *.svg . Could this be your problem? What error do you get?
        Message 3 of 3 , Apr 2, 2007
          Hi,

          svg-developers@yahoogroups.com wrote on 04/02/2007 03:37:11 AM:

          > I build a sample background image call style4.png,
          > It work just fine on inkscape 0.45 when export to png file format.
          >
          > however when I tried to batch svg files so I use
          > (BatikServer_0.3.1_Windows + jre-6-windows-i586) to work with batch
          > files in windows xp environment.
          >
          > here is the dos command i use
          >
          > java -jar batik-rasterizer.jar -d E:\svg -m image/jpeg -w 1800 -h
          > 2400 -q 0.8 -dpi 300 E:\svg\*.svg

          DOS doesn't really expand '*.svg'. Could this be your
          problem? What error do you get?

          > E:/svg/oo.svg
          > E:/svg/real_styles/style4.png
          >
          > I am think do I miss some kind of path, or I should use css to make
          > it so?
          >
          > thanks your help!
          >
          > Here is the source
          > #################################################
          >
          > <?xml version="1.0" encoding="UTF-8" standalone="no"?>
          > <!-- Created with Inkscape (http://www.inkscape.org/) -->
          > <svg
          > xmlns:dc="http://purl.org/dc/elements/1.1/"
          > xmlns:cc="http://web.resource.org/cc/"
          > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          > xmlns:svg="http://www.w3.org/2000/svg"
          > xmlns="http://www.w3.org/2000/svg"
          > xmlns:xlink="http://www.w3.org/1999/xlink"
          > xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-
          > 0.dtd"
          > xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
          > width="4800"
          > height="3300"
          > id="svg2168"
          > sodipodi:version="0.32"
          > inkscape:version="0.45"
          > version="1.0"
          > sodipodi:docbase="E:\svg"
          > sodipodi:docname="oo.svg"
          > inkscape:output_extension="org.inkscape.output.svg.inkscape"
          > sodipodi:modified="true">
          > id="defs2170" />
          > <sodipodi:namedview
          > id="base"
          > pagecolor="#ffffff"
          > bordercolor="#666666"
          > borderopacity="1.0"
          > gridtolerance="10000"
          > guidetolerance="10"
          > objecttolerance="10"
          > inkscape:pageopacity="0.0"
          > inkscape:pageshadow="2"
          > inkscape:zoom="0.15515152"
          > inkscape:cx="2400.0001"
          > inkscape:cy="1650.0001"
          > inkscape:document-units="px"
          > inkscape:current-layer="layer1"
          > width="4800px"
          > height="3300px"
          > inkscape:window-width="1024"
          > inkscape:window-height="712"
          > inkscape:window-x="0"
          > inkscape:window-y="22" />
          > <metadata
          > id="metadata2173">
          > <rdf:RDF>
          > <cc:Work
          > rdf:about="">
          > <dc:format>image/svg+xml</dc:format>
          > <dc:type
          > rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
          > </cc:Work>
          > </rdf:RDF>
          > </metadata>
          > <g
          > inkscape:label="Layer 1"
          > inkscape:groupmode="layer"
          > id="layer1">
          > <image
          > y="0"
          > x="0"
          > id="image2315"
          > height="3300"
          > width="4800"
          > sodipodi:absref="real_styles/style4.png"
          > xlink:href="real_styles/style4.png" />
          > </g>
          > </svg>

          >
        Your message has been successfully submitted and would be delivered to recipients shortly.