2011-12-28, 02:26:26
dey Wrote:Quote:So resizing the images when defining the gallery won't work,clear!Quote:and resizing all images on page load would take too much time.not clear ?!
On request of the page with the gallery the plugin knows the sizes and could resize all images not yet resized and then output links to these resized images/thumbnails. However, for a gallery of more than a few images this would take to much time and would probably give you a timeout.
dey Wrote:Quote:A second reason is that I want to limit access to the images and show some images only to registered users.I wasn't aware that this is possible and in the meantime I made my own solution.
Is it possible to limit access to different images/ galleries for different user(groups)?
I have a not-yet-finished plugin similar to frontend-users, where you can define user groups based on the tags/keywords of pages and images, e.g. anonymous users see all pages/images tagged with "public", registered users get all pages/images unless tagged "private" and users in the group "friends" get all pages/images.
dey Wrote:Quote:Alternatively outputting caching headers for the images returned by pic.php might work - or not, because there are URL parameters?Häh!??????
Telling the browser to cache images and just returning "Not Changed" instead of the image on a new request would lessen the load on the server and maybe partly solve the problem - if the image is already in the browser cache.