xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Coppens <pc.subscripti...@gmail.com>
Subject Re: Fop 0.95beta - svg tif images
Date Thu, 10 Apr 2008 14:58:52 GMT
Thanks Jeremias....

As to the cause of the error...can't really see where else it is  
coming from (but in the end that might be a 'detail').  Below the  
complete stack trace...perhaps you find it 'interesting'

Now...for the more problematic part - I am on MacOS...anybody any luck  
getting the 0.95beta fop/batik  to work on macos when using tif  
images? It is unclear from my intial www wanderings what the state of  
jai on mac os is.

Pointers or guidance would be appreciated.

Thanks!

Peter





org.apache.xmlgraphics.image.loader.ImageException: Cannot load image  
(no suitable loader/converter combination available) for file:/lap-pc- 
migration/Downloads/RenderX/inx2fo/mda/./Ostern_DIN Lang_Front.tif  
(image/tiff)
         at  
org 
.apache 
.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:248)
         at  
org 
.apache 
.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:289)
         at  
org 
.apache 
.fop 
.svg 
.PDFImageElementBridge 
.createImageGraphicsNode(PDFImageElementBridge.java:80)
         at  
org 
.apache 
.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(Unknown  
Source)
         at  
org 
.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(Unknown  
Source)
         at  
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown  
Source)
         at  
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown  
Source)
         at  
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown  
Source)
         at  
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown  
Source)
         at  
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown  
Source)
         at  
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown  
Source)
         at  
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
         at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown  
Source)
         at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
         at  
org 
.apache 
.fop.render.pdf.PDFSVGHandler.renderSVGDocument(PDFSVGHandler.java:188)
         at  
org 
.apache 
.fop 
.render 
.AbstractGenericSVGHandler.handleXML(AbstractGenericSVGHandler.java:57)
         at  
org.apache.fop.render.AbstractRenderer.renderXML(AbstractRenderer.java: 
799)
         at  
org.apache.fop.render.PrintRenderer.renderDocument(PrintRenderer.java: 
169)
         at  
org 
.apache 
.fop 
.render 
.AbstractPathOrientedRenderer 
.renderForeignObject(AbstractPathOrientedRenderer.java:717)
         at  
org 
.apache 
.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:738)
         at  
org 
.apache 
.fop 
.render 
.AbstractPathOrientedRenderer 
.renderViewport(AbstractPathOrientedRenderer.java:557)
         at  
org 
.apache 
.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:617)
         at  
org 
.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java: 
1345)
         at  
org 
.apache 
.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:592)
         at  
org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java: 
1336)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 
529)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 
564)
         at  
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 
519)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 
564)
         at  
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 
519)
         at  
org 
.apache 
.fop 
.render 
.AbstractPathOrientedRenderer 
.renderBlockViewport(AbstractPathOrientedRenderer.java:478)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 
546)
         at  
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 
519)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java: 
564)
         at  
org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1329)
         at  
org 
.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java: 
519)
         at  
org 
.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java: 
424)
         at  
org 
.apache 
.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java: 
403)
         at  
org 
.apache 
.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:337)
         at  
org 
.apache 
.fop 
.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:282)
         at  
org 
.apache 
.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:255)
         at  
org 
.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java: 
229)
         at  
org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:801)
         at  
org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:113)
         at org.apach



On 10 Apr 2008, at 16:30, Jeremias Maerki wrote:
> The error message comes from the FOP part, so I don't think that the
> snippet you posted is really the source of the error. The solution  
> here
> is simple: Please install JAI Image I/O Tools in your classpath:
> http://jai-imageio.dev.java.net/
>
> This will add an Image I/O codec for TIFF. The new image loader
> framework used by FOP doesn't have an implementation for the bundled
> TIFF codec so it uses Image I/O for TIFF loading.
>
> HTH
>
> On 10.04.2008 16:06:56 Peter Coppens wrote:
>> Dearest FOP/Batik fans (I am unclear where to post...sorry),
>>
>> With FOP 0.94/Batik 1.6, the fo/svg fragment listed lower worked  
>> ok. I
>> switched to FOP0.95beta (which seems to come with a newer batik
>> version, 1.7) and get
>>
>> SEVERE: SVG ErrorCannot load image (no suitable loader/converter
>> combination available) for file:/lap-pc-migration/Downloads/RenderX/
>> inx2fo/mda/./Ostern_DIN Lang_back.tif (image/tiff)
>> org.apache.xmlgraphics.image.loader.ImageException: Cannot load image
>> (no suitable loader/converter combination available) for file:/lap- 
>> pc-
>> migration/Downloads/RenderX/inx2fo/mda/./Ostern_DIN Lang_back.tif
>> (image/tiff)
>>         at
>> org
>> .apache
>> .xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java: 
>> 248)
>>        ....
>>
>> I am guessing this is all about the new image library, but I am not
>> sure really and I am even less sure how to deal with this.
>>
>> Anyone any thoughts?
>>
>> Tx!
>>
>> Peter
>>
>> FO fragment
>>
>> 				<fo:block-container absolute-position="fixed" left="0pt"
>> 					top="0pt" width="318.6pt" height="884pt">
>> 					<fo:block>
>> 						<fo:instream-foreign-object
>> 							content-width="318.6pt" content-height="884pt">
>> 							<svg:svg width="318.6" height="884"
>> 								viewbox="0, 0, 318.6, 884">
>> 								<svg:g
>> 									transform="translate(159.3, 442)">
>> 									<svg:g
>> 										transform="matrix(1, 0, 0, 1, -0.06, 0.04)">
>> 										<svg:rect x="-159.24"
>> 											y="-441.96000000000004" width="318.48"
>> 											height="883.9200000000001" fill="none" stroke="none" />
>> 										<svg:g
>> 											transform="translate(-159.24, -441.96000000000004)">
>> 											<svg:svg overflow="hidden"
>> 												width="318.48" height="883.9200000000001">
>> 												<svg:g
>> 													transform="translate(159.24, 441.96000000000004)">
>> 													<svg:g
>> 														transform="matrix(1, 0, 0, 1, -159.24,
>> -441.96000000000004)">
>> 														<svg:image
>> 															xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0"
>> 															width="318.48" height="883.9200000000001" fill="none"
>> 															stroke="none"
>> 															xlink:href="Ostern_DIN Lang_back.tif" />
>> 													</svg:g>
>> 												</svg:g>
>> 											</svg:svg>
>> 										</svg:g>
>> 										<svg:rect x="-159.24"
>> 											y="-441.96000000000004" width="318.48"
>> 											height="883.9200000000001" fill="none" stroke- 
>> width="0pt" />
>> 									</svg:g>
>> 								</svg:g>
>> 							</svg:svg>
>> 						</fo:instream-foreign-object>
>> 					</fo:block>
>> 				</fo:block-container>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users- 
>> unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
>
> Jeremias Maerki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


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


Mime
View raw message