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?
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.
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.
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.
Sbillard actually explained why sized images are always processed. It is a technical and performance issues.
Zenphoto has three types of images in a standard theme:
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.