[prev in list] [next in list] [prev in thread] [next in thread]
List: batik-users
Subject: AW: Broken image, embedded PNG
From: Kerschbaum Michael <m.kerschbaum () pke ! at>
Date: 2011-11-02 14:18:18
Message-ID: C86230D4F461B648B8C88C49CF219A65015C0040 () 01-MBX2 ! wan ! pke ! at
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hallo,
On Win7 it works ?! If you have the source Code of batik you could debug it ?! There \
are no errors written to console or std.err ! No logging, as long as i can see in the \
batik code....
Someone who knows the code better may know where the default image is used. With this \
information it is possible to find the code where the default image is used, and why \
it is used !
[cid:image001.png@01CC9971.911AF940]
mfg
Klaus Düller - Vorsitzender des Aufsichtsrates
Von: Kevin Gamiel [mailto:kgamiel@renci.org]
Gesendet: Mittwoch, 02. November 2011 13:49
An: <batik-users@xmlgraphics.apache.org>
Betreff: Re: Broken image, embedded PNG
It's a tiny file, no errors on the console, my web browser can display it just fine. \
I'm on a Mac, should that matter, running OS X Lion.
Is there debugging I could enable for batik? I assume the broken image icon is \
originating from batik so maybe it could tell us where it's failing(?) See attached \
for image I see.
Kevin
[cid:image002.png@01CC9971.911AF940]
--
RENCI
http://www.renci.org
Proud charter member of Tar Heel Information Services - "Nothing but Net!"
On Nov 2, 2011, at 3:45 AM, Kerschbaum Michael wrote:
Hello,
Have you checked some other stuff. Read permission, enough memory (VM Settings, -Xms, \
-Xmx) ?
Mfg
-----Ursprüngliche Nachricht-----
Von: Kevin Gamiel [mailto:kgamiel@renci.org]
Gesendet: Dienstag, 01. November 2011 06:02
An: <batik-users@xmlgraphics.apache.org<mailto:batik-users@xmlgraphics.apache.org>>
Betreff: Re: Broken image, embedded PNG
Hmmm, this is my first batik app, probably missing something.
Here is a test app that demonstrates the problem. I included a second URL in a \
comment that does work for comparison:
<code>
import javax.swing.*;
import java.awt.*;
import org.w3c.dom.svg.*;
import org.w3c.dom.*;
import org.apache.batik.swing.*;
import org.apache.batik.util.XMLResourceDescriptor;
import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
public class TestPanel extends JFrame {
public TestPanel() throws Exception {
try {
JPanel p = new JPanel();
p.setLayout(null);
p.setBounds(0, 0, 500, 500);
JSVGCanvas canvas = new JSVGCanvas();
canvas.setBounds(0, 0, 500, 500);
p.add(canvas);
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
Document doc = f.createDocument(
"http://www.renci.org/~kgamiel/web/gauge/img/Tick1.svg");
// NOTE, works for this URL
//"http://www.renci.org/~kgamiel/web/gauge/img/dial.svg");
canvas.setDocument(doc);
getContentPane().add(p);
this.setBounds(0, 0, 500, 500);
} catch(Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args) throws Exception {
new TestPanel().setVisible(true);
}
}
</code>
Kevin
--
RENCI
http://www.renci.org
Proud charter member of Tar Heel Information Services - "Nothing but Net!"
On Nov 1, 2011, at 12:15 AM, Zainab AlMeraj wrote:
Hi,
I have loaded it onto a JSVGCanvas and it looks fine.
The problem maybe something else.
Zainab
On Tue, Nov 1, 2011 at 12:00 AM, Kevin Gamiel \
<kgamiel@renci.org<mailto:kgamiel@renci.org>> wrote: I have:
batik 1.7
Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03-383-11A511 Java HotSpot(TM) 64-Bit
Server VM Chrome/Safari
Trying to load the following SVG using JSVGCanvas and it displays the "broken image". \
I note that the SVG is an embedded PNG whereas the others I can successfully load are \
native SVG.
http://www.renci.org/~kgamiel/web/gauge/img/Tick1.svg
Any guidance appreciated!
Kevin
--
RENCI
http://www.renci.org
Proud charter member of Tar Heel Information Services - "Nothing but Net!"
---------------------------------------------------------------------
To unsubscribe, e-mail: \
batik-users-unsubscribe@xmlgraphics.apache.org<mailto:batik-users-unsubscribe@xmlgraphics.apache.org>
For additional commands, e-mail:
batik-users-help@xmlgraphics.apache.org<mailto:batik-users-help@xmlgraphics.apache.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: \
batik-users-unsubscribe@xmlgraphics.apache.org<mailto:batik-users-unsubscribe@xmlgraphics.apache.org>
For additional commands, e-mail: \
batik-users-help@xmlgraphics.apache.org<mailto:batik-users-help@xmlgraphics.apache.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: \
batik-users-unsubscribe@xmlgraphics.apache.org<mailto:batik-users-unsubscribe@xmlgraphics.apache.org>
For additional commands, e-mail: \
batik-users-help@xmlgraphics.apache.org<mailto:batik-users-help@xmlgraphics.apache.org>
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE-AT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hallo,<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">On \
Win7 it works ?! If you have the source Code of batik you could debug it ?! There are \
no errors written to console or std.err ! No logging, as long as i can see in the \
batik code….<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Someone \
who knows the code better may know where the default image is used. With this \
information it is possible to find the code where the default image is used, and why \
it is used ! <o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><img width="500" height="500" id="Grafik_x0020_1" \
src="cid:image001.png@01CC9971.911AF940"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">mfg<o:p></o:p></span></p>
<p class="MsoNormal"><i><span \
style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#1F497D"><br>
Klaus Düller – Vorsitzender des Aufsichtsrates</span></i><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="DE" \
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span \
lang="DE" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> \
Kevin Gamiel [mailto:kgamiel@renci.org] <br>
<b>Gesendet:</b> Mittwoch, 02. November 2011 13:49<br>
<b>An:</b> <batik-users@xmlgraphics.apache.org><br>
<b>Betreff:</b> Re: Broken image, embedded PNG<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It's a tiny file, no errors on the console, my web browser can \
display it just fine. I'm on a Mac, should that matter, running OS X Lion. \
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Is there debugging I could enable for batik? I assume the \
broken image icon is originating from batik so maybe it could tell us where it's \
failing(?) See attached for image I see.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Kevin<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><img width="1002" height="1005" \
id="_x0038_a2af6df-f6d7-43ba-afc7-f42809d73100" \
src="cid:image002.png@01CC9971.911AF940"><o:p></o:p></p> </div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">--<br>
RENCI<br>
<a href="http://www.renci.org">http://www.renci.org</a><br>
Proud charter member of Tar Heel Information Services - "Nothing but \
Net!"<o:p></o:p></p> </div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Nov 2, 2011, at 3:45 AM, Kerschbaum Michael \
wrote:<o:p></o:p></p> </div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">Hello,<br>
<br>
Have you checked some other stuff. Read permission, enough memory (VM Settings, -Xms, \
-Xmx) ?<br> <br>
Mfg<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: Kevin Gamiel [mailto:kgamiel@renci.org] <br>
Gesendet: Dienstag, 01. November 2011 06:02<br>
An: <<a href="mailto:batik-users@xmlgraphics.apache.org">batik-users@xmlgraphics.apache.org</a>><br>
Betreff: Re: Broken image, embedded PNG<br>
<br>
Hmmm, this is my first batik app, probably missing something.<br>
<br>
Here is a test app that demonstrates the problem. I included a second URL in a \
comment that does work for comparison:<br> <br>
<code><br>
import javax.swing.*;<br>
import java.awt.*;<br>
import org.w3c.dom.svg.*;<br>
import org.w3c.dom.*;<br>
import org.apache.batik.swing.*;<br>
import org.apache.batik.util.XMLResourceDescriptor;<br>
import org.apache.batik.dom.svg.SAXSVGDocumentFactory;<br>
<br>
public class TestPanel extends JFrame {<br>
public TestPanel() throws Exception {<br>
try {<br>
JPanel p = new \
JPanel();<br> p.setLayout(null);<br>
p.setBounds(0, 0, \
500, 500);<br> JSVGCanvas \
canvas = new JSVGCanvas();<br> \
canvas.setBounds(0, \
0, 500, 500);<br> p.add(canvas);<br>
String parser = \
XMLResourceDescriptor.getXMLParserClassName();<br> \
SAXSVGDocumentFactory \
f = new SAXSVGDocumentFactory(parser);<br> \
Document doc = \
f.createDocument(<br> \
"<a \
href="http://www.renci.org/~kgamiel/web/gauge/img/Tick1.svg">http://www.renci.org/~kgamiel/web/gauge/img/Tick1.svg</a>");<br>
// \
NOTE, works for this URL<br> \
//"<a \
href="http://www.renci.org/~kgamiel/web/gauge/img/dial.svg">http://www.renci.org/~kgamiel/web/gauge/img/dial.svg</a>");<br>
canvas.setDocument(doc);<br>
getContentPane().add(p);<br>
this.setBounds(0, \
0, 500, 500);<br> } catch(Exception e) \
{<br> e.printStackTrace();<br>
}<br>
}<br>
<br>
public static void main(String[] args) throws Exception {<br>
new TestPanel().setVisible(true);<br>
}<br>
}<br>
</code><br>
<br>
Kevin<br>
<br>
--<br>
RENCI<br>
<a href="http://www.renci.org">http://www.renci.org</a><br>
Proud charter member of Tar Heel Information Services - "Nothing but \
Net!"<br> <br>
On Nov 1, 2011, at 12:15 AM, Zainab AlMeraj wrote:<br>
<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">I have loaded it onto a JSVGCanvas and it looks fine. \
<o:p></o:p></p> </blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">The problem maybe something else.<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Zainab<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">On Tue, Nov 1, 2011 at 12:00 AM, Kevin Gamiel <<a \
href="mailto:kgamiel@renci.org">kgamiel@renci.org</a>> wrote:<o:p></o:p></p> \
</blockquote> <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">I have:<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">batik 1.7<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Java Plug-in 1.6.0_26<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Using JRE version 1.6.0_26-b03-383-11A511 Java HotSpot(TM) \
64-Bit <o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Server VM Chrome/Safari<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Trying to load the following SVG using JSVGCanvas and it \
displays the "broken image". I note that the SVG is an embedded PNG \
whereas the others I can successfully load are native SVG.<o:p></o:p></p> \
</blockquote> <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><a \
href="http://www.renci.org/~kgamiel/web/gauge/img/Tick1.svg">http://www.renci.org/~kgamiel/web/gauge/img/Tick1.svg</a><o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Any guidance appreciated!<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Kevin<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">--<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">RENCI<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><a \
href="http://www.renci.org">http://www.renci.org</a><o:p></o:p></p> </blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Proud charter member of Tar Heel Information Services - \
"Nothing but Net!"<o:p></o:p></p> </blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">---------------------------------------------------------------------<o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">To unsubscribe, e-mail: <a \
href="mailto:batik-users-unsubscribe@xmlgraphics.apache.org"> \
batik-users-unsubscribe@xmlgraphics.apache.org</a><o:p></o:p></p> </blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">For additional commands, e-mail: <o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><a \
href="mailto:batik-users-help@xmlgraphics.apache.org">batik-users-help@xmlgraphics.apache.org</a><o:p></o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><o:p> </o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a \
href="mailto:batik-users-unsubscribe@xmlgraphics.apache.org"> \
batik-users-unsubscribe@xmlgraphics.apache.org</a><br> For additional commands, \
e-mail: <a href="mailto:batik-users-help@xmlgraphics.apache.org"> \
batik-users-help@xmlgraphics.apache.org</a><br> <br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a \
href="mailto:batik-users-unsubscribe@xmlgraphics.apache.org"> \
batik-users-unsubscribe@xmlgraphics.apache.org</a><br> For additional commands, \
e-mail: <a href="mailto:batik-users-help@xmlgraphics.apache.org"> \
batik-users-help@xmlgraphics.apache.org</a><o:p></o:p></p> </div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>
["image001.png" (image/png)]
["image002.png" (image/png)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic