Hi,
I know this is slightly off-topic, but I wonder if anyone ever solved
this:
I have a gallery application that takes a directory and reads out all
the images.(Actually I use two directories, one for thumbnails and
one for the hires version).
I use PopupSettings to open a new window with the appropriate size
for the hires image.
As I am coming from PHP I am used to a very quick function-call to
find the size of an image. In Java I have to read the whole image
into memory, which takes very long in terms of request-time.
I tried Jimi/ImageIO and even Swing-ImageIcon.
e.g.
BufferedImage image = null;
try {
image = ImageIO.read(new File(localHiresPath.toString
()));
} catch (IOException exc) {
}
if (image != null) {
ImageModel model = new ImageModel();
model.setHeight(image.getHeight());
model.setWidth(image.getWidth());
....
}
....
Is there any better/fast way to achive this? Maybe some nice wicket
functionality?
Thank you for any help.
Alex
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user