ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19055] - New documentation for <image>
Date Tue, 22 Apr 2003 09:31:54 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19055>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19055

New documentation for <image>





------- Additional Comments From jan@materne.de  2003-04-22 09:31 -------
I used Rational Rose for creating the diagram and its WebPublisher AddIn for 
creating the image.

I created a target, which should create thumbnails of several pictures.
    <target name="createThumbnail">
        <mkdir dir="dest"/>
        <image srcdir="src" destdir="dest" includes="*.png">  <!-- 
bmp,gif,tif,emf,jpg,png -->
            <scale keepproportions="true" width="40%"/>
        </image>
    </target>

But when I call that an error occurs. Output:
createThumbnail:
    [mkdir] Created dir: C:\tmp\anttests\images\dest
    [image] Processing File: C:\tmp\anttests\images\src\image3.png
        Scaling to 0.4% x 0.4%
    [image] Error: IOException occurs when search for propriate codecs.
    [image] Occurs in: com.sun.media.jai.codec.ImageCodec
    [image] java.io.IOException: Bad file descriptor
    [image]     at java.io.RandomAccessFile.seek(Native Method)
    [image]     at com.sun.media.jai.codec.FileSeekableStream.readPage
(FileSeekableStream.java:141)
    [image]     at com.sun.media.jai.codec.FileSeekableStream.read
(FileSeekableStream.java:181)
    [image]     at com.sun.media.jai.codec.SeekableStream.readFully
(SeekableStream.java:327)
    [image]     at com.sun.media.jai.codec.SeekableStream.readFully
(SeekableStream.java:306)
    [image]     at com.sun.media.jai.codec.ImageCodec.getDecoderNames
(ImageCodec.java:274)
    [image]     at com.sun.media.jai.opimage.StreamRIF.create(StreamRIF.java:80)
    [image]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [image]     at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
    [image]     at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
    [image]     at java.lang.reflect.Method.invoke(Method.java:324)
    [image]     at javax.media.jai.FactoryCache.invoke(FactoryCache.java:130)
    [image]     at javax.media.jai.OperationRegistry.invokeFactory
(OperationRegistry.java:1682)
    [image]     at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory
(ThreadSafeOperationRegistry.java:481)
    [image]     at javax.media.jai.registry.RIFRegistry.create
(RIFRegistry.java:340)
    [image]     at javax.media.jai.RenderedOp.createInstance
(RenderedOp.java:830)
    [image]     at javax.media.jai.RenderedOp.createRendering
(RenderedOp.java:878)
    [image]     at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
    [image]     at javax.media.jai.RenderedOp.createInstance
(RenderedOp.java:810)
    [image]     at javax.media.jai.RenderedOp.createRendering
(RenderedOp.java:878)
    [image]     at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
    [image]     at javax.media.jai.RenderedOp.createInstance
(RenderedOp.java:810)
    [image]     at javax.media.jai.RenderedOp.createRendering
(RenderedOp.java:878)
    [image]     at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
    [image]     at javax.media.jai.JAI.createNS(JAI.java:1103)
    [image]     at javax.media.jai.JAI.create(JAI.java:977)
    [image]     at javax.media.jai.JAI.create(JAI.java:1672)
    [image]     at 
org.apache.tools.ant.taskdefs.optional.image.Image.processFile(Image.java:228)
    [image]     at org.apache.tools.ant.taskdefs.optional.image.Image.execute
(Image.java:300)
...


But I hadnīt the time to go deep into that problem - especially because I donīt 
know the JAI.

Mime
View raw message