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:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to