Hello, does anybody know this:
The Thumbnails for these Images are black rectangles: <http://stadtteilgeschichten.net/handle/2339.3/395> <http://stadtteilgeschichten.net/handle/2339.3/396> <http://stadtteilgeschichten.net/handle/2339.3/397> <http://stadtteilgeschichten.net/handle/2339.3/399> <http://stadtteilgeschichten.net/handle/2339.3/400> <http://stadtteilgeschichten.net/handle/2339.3/401> There is nothing special with the originals. I have checked and they seem to be scanned with exactly the same software and settings as other images from the same series, such as number 398 or 403. They are all JPEGs produced with Adobe Photoshop Elements 5.0 for Windows and with embedded profile sRGB IEC61966-2.1. The last lines of the sourcecode in /src/org/dspace/app/mediafilter/JPEGFilter.java are: // now render the image into the thumbnail buffer Graphics2D g2d = thumbnail.createGraphics(); g2d.drawImage(buf, 0, 0, (int) xsize, (int) ysize, null); // now create an input stream for the thumbnail buffer and return it ByteArrayOutputStream baos = new ByteArrayOutputStream(); ImageIO.write(thumbnail, "jpeg", baos); // now get the array ByteArrayInputStream bais = new ByteArrayInputStream (baos.toByteArray()); return bais; // hope this gets written out before its garbage collected! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Is it possible that I ran into this? Now do I call the Mediafilter class to manually recreate thumbnails for specific images? Or is there a simpler way to fix the current blackholes? Is there a proven way to avoid this in the future? I could not find a hint, that there was much development in the Graphics2D class of the Abstract Windowing Tookit, but might it be worth to upgrade Java 1.4 to Java 1.5? (Java 1.6 is still experimental for MacOS - believe it or not). I found a guy who describes different issues and work- arounds for creating thumbnails with Graphics2D, but the only thing he reports that might apply here is a performance issue he reports with interpolation on images with embedded profiles: <http://schmidt.devlib.org/java/creating-thumbnails-with- java.html#image-scaling> If this has happened here, then it might be the reason for the garbage collector being faster then my thumbnails. How would it look if the garbage collection was the culprit? (my guess: like a black rectangle?) Is there a log level where the time required for thumbnail creation gets logged? Does it already get logged somewhere? Should I turn on logging on a higher level to track this down? It is not a very serious issue and it is certainly not urgent, but it is annoying and I appreciate every comment. Thanks, Christian ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

