How to handle batik transcoder failure when svg contains broken image links?
<p>I am using batik transcoder to convert my svg into png image.</p>

<p>I have external image sources in the svg image tags. Batik fails to do the conversion if any of my image link is broken.</p>

<p>I am getting the following error</p>

<pre><code>org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
null:0
The URI https://image.example/example1.png
on element &lt;image&gt; can'"t be opened because:
The URI can't be opened:
Server returned HTTP response code: 403 for URL: https://image.example/example1.png
        at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
        at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
        at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
        at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
</code></pre>

<p>Is there anyway I can convert the svg even if the image tag is broken?</p>