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 Steven Dow <sd...@instepsoftware.com> on 2002/03/28 15:35:08 UTC

Placing TIF files in my SVG

Can someone help me out?  I read that the Batik browser was able to
recognize .TIF images.  Below, I have a section of code that should be
working.  What is wrong here?

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="8in" height=" 7in" viewBox="0 0 220 170">
<rect x="0" y="0" width="220" height="170" fill="#ffffff"
stroke="#000000" stroke-width=".01in" />
<image width="60" height="60" xlink:href="longlat.tif"/>
</svg>

As a side note, would it be possible to embed the Batik browsing
capability into the IE browser as a plugin?

Thanks,

Steven Dow
InStep Software


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


Re: Placing TIF files in my SVG

Posted by Vincent Hardy <vi...@sun.com>.
Steven Dow wrote:
> ...
> 
> As a side note, would it be possible to embed the Batik browsing
> capability into the IE browser as a plugin?
> 

You can use JavaWebStart to start the Batik browser from IE. See:

http://xml.apache.org/batik/batikDemo.html
http://java.sun.com/products/javawebstart
Cheers,
Vincent.

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


Re: Placing TIF files in my SVG

Posted by Chris Lilley <ch...@w3.org>.
On Thursday, March 28, 2002, 3:35:08 PM, Steven wrote:


SD> Can someone help me out?  I read that the Batik browser was able to
SD> recognize .TIF images.  Below, I have a section of code that should be
SD> working.  What is wrong here?

SD> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
SD> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
SD> <svg width="8in" height=" 7in" viewBox="0 0 220 170">
SD> <rect x="0" y="0" width="220" height="170" fill="#ffffff"
SD> stroke="#000000" stroke-width=".01in" />
SD> <image width="60" height="60" xlink:href="longlat.tif"/>
SD> </svg>

Nothing ...

image could do with x and y attributes but if not, they default to
zero which would be visible in your example.

I assume that longlat.tif is available in the current directory with
that filename and that case.

I would suggest using tiffinfo to check what your TIFF contains. Is it
an RGB tiff and not something exotic like YCbCr or LAB? Is it
uncompressed or LZW or JPEG or what?

Does the TIFF display in other image viewing applications?

If so, and you convert it to a PNG and edit your svg slightly, does it
display now? If yes, the Batik TIFF reading code might be the problem.
On the other hand if other image display programs have problems, maybe
try regenerating the TIFF.

Lastly, just in case (and purely speculative based on the filename)
but if its a georeferenced TIFF, be sure those tags are not upsetting
the Batik TIFF reader code.


-- 
 Chris                            mailto:chris@w3.org


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