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
Alexander Lohse schrieb:
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.
You don't have to read the entire image. The dimensions are usually
embedd
Hi Timo,
thank you very much. This was exactly what I needed! :-)
Alex
Alexander Lohse schrieb:
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.
Hello Alexander,
you might want to try Marco Schmidt's ImageInfo class, which not only
gets you the image dimensions, but other information like file format
etc., also without loading or rendering the whole image.
http://schmidt.devlib.org/image-info/index.html
--
greetings from Berlin,
Rüdig