It there a way/option to disable the image processing besides the thumbnail generation? All of my pictures have already watermarks and their x/y dimensions are also perfect. The further processing via `i.php` decreases the image quality or leads to larger file sized pictures. Instead of this not needed image processing I would like to have just an ordinary copy into the cache folder. Currently I have to add the suffix "_595.jpg" to each file and copy it into the cache by myself (via ftp), to avoid this negative behavior. This takes a lot of time, since I have hunderts of pictures. It's also very risky, because if I clear the cache in the admin panel by accident all my work would be gone/lost...
TIA
Steffen
Comments
I have just installed the last version (1.4.0.1), and I can not get any more the same behaviour as mentioned above.
Until now (ZP ver. 1.3.1), no image was generated in the cache for image with the correct size. Now I get an image generated in the cache even if the fullsizeimage has the same dimensions than the defaultsize image.
Does someone has more information on this problem ?
Thanks
Erwann
Instead of :
`
if (function_exists('printUserSizeImage') && isImagePhoto()) {
printUserSizeImage(getImageTitle());
} else {
printDefaultSizedImage(getImageTitle());
}
`
I put :
`
?>
" />
<?php<br />
`
But now the problem is that I have some pictures which are rely wide (panoramic pictures). So for those ones I would prefer to get the resized (and cached) version first.
I have try to put a condition in the image.php file, like this :
`
if (zp_imageWidth($fullimage)>800) {
printDefaultSizedImage(getImageTitle());
}
`
But I get an error message :
`Warning: imagesx(): supplied argument is not a valid Image resource in... `
I did not manage to find the correct function to read the width of the image. Can somebody help ?
Thanks,
Erwann
As to your error, a quick look at the function would show
`
/**
* Returns the width of an image resource
*
* @param resource $im
* @return int
*/
function zp_imageWidth($im) {
return imagesx($im);
}
`
So, is $fullimage an image resource? I am guessing not.
Basically what you will be doing when you get this to work is causing the actual image to be loaded into an image resource so that you can check its size.
As mentioned above, this is much overhead for little use.
For the future, I think it would be nice to add a general option in the admin panel, to let the user chose between resized or not resized images.
And not all themes have support for the usersizeimage plugin your apparently does.