You are here:  » Image Cache Resize


Image Cache Resize

Submitted by fabio on Fri, 2017-03-03 18:27 in

Hi David,

Is it possible to resize only the images that are bigger than $imageCacheResize Value setted in the imageCache.php?

Thanks !

Submitted by support on Sat, 2017-03-04 11:02

Hello Fabio,

Sure - in imageCache.php look for the following code around line 54:

    if ($imageCacheResize)

...and REPLACE with:

    if ($imageCacheResize && ((imagesx($res) > $imageCacheResize) || (imagesy($res) > $imageCacheResize)))

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by fabio on Mon, 2017-03-06 10:02

Super !