Oh, and I would keep the index of images in a database. Just something like a name, description and (logical) physical name. The physical name could be like 'mybeauty' which would then be translated to '/somedir/samples/tumbs-medium/mybeauty.jpg' and 'somedir/samples/full/mybeauty.jpg'.
Eelco
-----Oorspronkelijk bericht-----
Van: Eelco Hillenius namens Eelco Hillenius
Verzonden: vr 19-8-2005 10:13
Aan: [email protected]
CC:
Onderwerp: RE: [Wicket-user] Wicket-based image gallery
Glad you're having fun Gili :)
Why would you serve those images as Package(d) resources? Have you
tried serving them from a database, or - what I should do - just from some fs
location? That would make your distribution way more flexible imo.
As for serving from a database, did you take a look at the cdapp
example? You can upload images in it, and it creates thumbnails on the fly
(which is dynamic image processing too).
I think in your case, as I suspect your desktop images have a pretty
static nature, and it won't be millions of them, I would pre-generate them
(thumbnails and the images with 'SAMPLE') and deploy them to a location where
they can be picked up immediately by a webserver (either as part of your webapp
in your webapp root dir, or another virtual directory that can be served by
e.g. Apache directly for optimal performance).
Just my 2c,
Eelco
-----Oorspronkelijk bericht-----
Van: Gili [mailto:[EMAIL PROTECTED]
Verzonden: vr 19-8-2005 9:16
Aan: [EMAIL PROTECTED]
CC:
Onderwerp: [Wicket-user] Wicket-based image gallery
You guys get a sneak peek at my unofficial image
gallery (it's far from
complete)..
http://www.desktopbeautifier.com/Main?bookmarkablePage=gallery&theme=71
You can see a couple of things at play here:
- PageableDataView working on top of ColumnedDataProvider (I
haven't
looked at Igor's new Grid component yet)
- Resource timeouts (2 minutes for the cache, 30 minutes for
the resource)
and my favorite little bit: when you click on an image
I dynamically
add "SAMPLE" across it. This was actually much harder to do
than it looks ;)
Now that you're all impressed with the images, you can
go download the
software :) You can find the URL at the bottom of this email.
Gili
--
http://www.desktopbeautifier.com/
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference &
EXPO
September 19-22, 2005 * San Francisco, CA * Development
Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
<<winmail.dat>>
