You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Raju Dave <rb...@rediffmail.com> on 2001/07/16 17:45:09 UTC

jpeg to svg

Hi,

Is it possible to convert jpeg image into svg format with batik?

if yes, can somebody give me a sample code.

Best Regards


Raju Dave
iORMYX GmbH

____________________________________________________
http://www.monsterindia.com - The Best Jobs. For the Best Minds.




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


jpeg to svg

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "RD" == Raju Dave <rb...@rediffmail.com> writes:

RD> Is it possible to convert jpeg image into svg format with batik?

    Presumably you mean find lines/text/shapes in the JPEG and convert
them to paths in an SVG file.  No we do not have any auto-tracing
abilities in Batik (although they might be a welcome addition).  Doing
this well is _very_ difficult.

    On the other hand if you don't mind the JPEG image saying a JPEG
(raster data) you can simply use the <image> tag to reference the
JPEG, just like you might do in HTML, or if you want the SVG to be
standalone you can Base64 encode the image and include it inline. We
don't really provide tools for this, but it's so trivial there isn't
much point.

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


Re: jpeg to svg

Posted by Bill Haneman <bi...@sun.com>.
Raju Dave wrote:
> 
> Hi,
> 
> Is it possible to convert jpeg image into svg format with batik?

Well, yes and no.

SVG (Scalable "Vector" Graphics) is a vector (line-and-shape-oriented)
format, jpeg is a raster ("pixel-based") format.  So the two are
inherently different, and in fact the usual way of including
pixel/bitmap data in an SVG file is via an included image element:

<svg>
  <image xlink:href="myimage.jpeg"/>
</svg>
 
The above code is technically SVG, but you see that the SVG format
just passes the work of encoding pixels to the contained image
element.

-Bill

> if yes, can somebody give me a sample code.
> 
> Best Regards
> 
> Raju Dave
> iORMYX GmbH
> 
> ____________________________________________________
> http://www.monsterindia.com - The Best Jobs. For the Best Minds.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

-- 
--------------
Bill Haneman
Gnome Accessibility / Batik SVG Toolkit
Sun Microsystems Ireland

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