![]() |
|
Cache folder, full sized images and rotation. - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Cache folder, full sized images and rotation. (/thread-2272.html) |
Cache folder, full sized images and rotation. - williamz - 2008-02-22 First is a security request. I like how the albums folder is relocated somewhere else. It's not accessible via the web because it's outside of the web folder. The cache folder isn't. If the person can figure out the exact string it's quite easy to access it. So make it like the albums and allow a relocation. Besides the cache folder gets huge after a while and I end up making a sym link anyways to offload it from the main web folder. Second is a feature request and I saw someone below with the same request but I thought I'd add it in as well. I'd like to choose the size of the thumbnail, preview and the large size (not full-size). Third is a feature request for auto rotation of images. The images should auto rotate based on the exif info. Fourth is a feature request for an opt-in albums. What I mean is when the photos are automatically uploaded it's not made an album on the web until you turn it on. Now before you go on let me explain beforehand why. I love your program. It's lightweight and fits what I need it for. Here's how I use it. My albums folders are just a link to my photos directory. It houses all my photos I ever have. When I download the photos from my camera it appears on my website. Easy and with no fuss. What I do is I have a custom script that I run, and it automatically resizes the photos, auto rotates them and puts them into a separate website folder as a copy. Zenphoto looks at this folder for any updates. My script does the following, it resizes so that the large size is set, auto rotates and then publishes when I say it is ok. I want to eliminate this step and let zenphoto do that instead. With the feature request it will make it a heck more functional. What do you think? Cache folder, full sized images and rotation. - acrylian - 2008-02-22
Cache folder, full sized images and rotation. - williamz - 2008-02-22
Again great job on zenphoto. It does almost what I need and it's really simple for me to deploy to my friends without them getting frustrated. Cache folder, full sized images and rotation. - acrylian - 2008-02-22 Ok, I understand what you mean. So again, please open a trac ticket for that, too. In general we add the feature requests to our poll to see what is most wanted. Regarding 2.: So this ticket would be something similar?: http://www.zenphoto.org/trac/ticket/37 Cache folder, full sized images and rotation. - sbillard - 2008-02-22 I don't think you really want to have the cache folder outside of the zenphoto folders. Doing this would require zenphoto to process EVERY request for an image. This would add a lot of overhead to your server. For #2, you can take the full-image.php file and modify it to resize your image to whatever size you would like "full images" to be. Again, this will cause overhead everytime a "full image" is accessed, but that happens now if watermarking is set. Anyway, I have always believed you should do any image processing at the earliest point in the process possible. Otherwise you are adding overhead on repeated operations. It really is best if you resize your images to the size you want before they are uploaded so that they don't have to be resized every time someone accesses them. Just makes sense from a conservation of computing resources point of view. Your call, though. It is your site performance that is impacted. Cache folder, full sized images and rotation. - williamz - 2008-02-23 Yes we wouldn't want anything that impacts the speed of the site! Another possiblity is to add a short hash to the filename that is combined to a random number generated in the begining of the install and saved into the zp_options (db or file). So a cache filename of IMG_2333.JPG_595.jpg becomes IMG_2333.JPG_595_3ae32sfa.jpg so it will be extremely difficult to brute force without the key. As for the processing locally or on the server, it has to be done on one of them so it really isn't much of an overhead unless it's constantly being polled. I am assuming once the cache is created it stays available until you force a manual cleanup so essentially it isn't generated anymore. As for the full image we don't have a cache of that so that will mean the file is generated on the fly. But most people are not interested in the full size unless they really want it. I was thinking about modifying the default theme so clicking on the normal photo doesn't automatically open up the full original size. Instead it will be a link below the image so people will have to make a conscious effort to want to open the larger pic. Cache folder, full sized images and rotation. - sbillard - 2008-02-23 Well, whatever you use for the cache file name will be part of the HTML, so if someone wants to find the file all he has to do is view the web page source. Unless you are putting images in the cache file, they would be resized every time they were viewed--that is much more overhead than resizing once before you upload. Cache folder, full sized images and rotation. - trisweb - 2008-02-25 sbillard - is this true? I thought password-protected photos can't be seen without the password even for the thumbnail. Wouldn't that mean the actual image cache filename would be hidden unless the viewer has entered the password? If not, I'm sure we could find some way to implement that. Cache folder, full sized images and rotation. - sbillard - 2008-02-25 It is true and not true. As of the nightly, the thumbnail of a password protected album is replaced with a stand-in image. Version 1.1.4 does not do this. So, I guess that on 1.1.5, the album file name is hidden. In all cases you don't get any image thumbnails shown because you can't get the album open without the password. EDIT: But, I did not take this thread to be a question of password protection. What I thought williamz was talking about was not letting someone get the full sized image while allowing him to view the album/image pages. See his second post, item #2. Cache folder, full sized images and rotation. - trisweb - 2008-02-25 Thanks, I had misunderstood. I think password protection already covers all protections, he is indeed talking about just protecting all full-sized images. Shouldn't moving the /albums folder to an inaccessible location, and disabling the full-image script do the trick (perhaps with an option)? @williamz - One more possibility: Would you like a limit to the maximum size image a user can request? That would be an easy option to allow. |