![]() |
|
Caching of image occurs, although not needed - 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: Caching of image occurs, although not needed (/thread-9786.html) |
Caching of image occurs, although not needed - jackdaw - 2012-03-19 Not a good description but this is what I get:
Now I can see that although the images are 600px and 50kb in size when uploaded, in the cache folder there appears a cached image of 600px, 140kb in size! Three years ago I had this problem. Have I forgotten something? http://www.zenphoto.org/support/topic.php?id=2985 Caching of image occurs, although not needed - sbillard - 2012-03-19 Sure, so you want us to not cache the image if the size is already the needed size, etc.? In fact once-upon-a-time this was what did happen. But there is a serious problem with that strategy. Caching an image happens only once per "size" and takes some disk space. Testing to see if the image should be cached happens every time the image is referenced for display in any way. So the trade-off is storage space vs. processing overhead. With the cost of disk so low these days the choice is a no-brainer. Caching of image occurs, although not needed - jackdaw - 2012-03-19 Ok, but what happens with the quality? When I upload a 600px 50kb image, and it is cached as a 600px 150kb image, that's no good for speed, is it? And if I set the image size to jpg 70, then my already reduced quality jpegs are again reduced with quality setting 70, making all my photoshop work useless. Caching of image occurs, although not needed - sbillard - 2012-03-19 If you do not like the quality of the GD library processing then you should use Imagick. Caching of image occurs, although not needed - jackdaw - 2012-03-20 The quality is good, when uploading a larger image that has to be brought back to a desired size and set to a jpg quality of 70. No complaints there. But why transforming a perfect image of 600px into another 600px copy of 'lesser' quality? I'm just trying to be logical about this. It's not about disk space. A simple solution would be if there would be an option in the admin panel where users can set the image quality of the uploaded image to 1. using the slider for the desired quality, or 2. don't use the slider and use uploaded image instead. You see, I don't use a 'middle' image. I only use a thumbnail that points to the 600px image. Caching of image occurs, although not needed - acrylian - 2012-03-20 Sbillard actually explained why sized images are always processed. It is a technical and performance issues.
There is no "middle" image actually. So if you don't want the image on image.php without processing and the images have already the correct size you alway can change your theme to call the full image directly instead. Caching of image occurs, although not needed - jackdaw - 2012-03-20 Ah, thanks! Now I only have thumbs in my cache folders . `` |