I've just submitter version 1.2.0 and it's awaiting approval. Until approved, you can download it here.
New: admin-side page to run the optimization on all catalog images
![]()
I've just submitter version 1.2.0 and it's awaiting approval. Until approved, you can download it here.
New: admin-side page to run the optimization on all catalog images
![]()
Hi,
This is great I have a couple of suggestions though.
Can you put an option to not show optimised image if there isnt a file there? So it doesn't slow down the website whilst images are being optimised?
Can you also handle the file not found error as that has tripped a couple of the runs up on our build.
I keep getting timeouts from our server ( Which i know is from our end not the plugin) but it woudl be good if there is some way to handle this so it shows the last record that has been optimised.
Hi there.
Some issues found diring short test :
First - I use more complex directory structure inside image folder, than just flat. I split my images between manufacturers (images/manu-1, images/manu-2, ...) so i can have socks.jpg image in different folders.
Batch compressions from Admin->Tools is using only image name to make new output files, so - in my situation - there will be only one file s/socks-200x200.jpg.
Second - i tried to use this with IH 5.x handler - it generates a lot more file names then just ZX.
As example - after running batch compression from admin i have one s/socks-200x200.jpg file. Than, after going to my product with socks.jpg image, i found additional s/socks-200x200-200x200.jpg image file, which in fact has to be only one. An i see it is generated during product page loading.
Third - ZX makes a subdirs like a, b, c etc ... But there is no umask seting before creating this subfolders. Final effect is, that (on my hosting) subfolders are created with 644 attributes (during product page loading), so ZX cannot write a files after compression - subfolders are empty, no images appears on my website. After manual changing subfolder attributes to 755, everything works fine.
Regards
Marek.
Hi Leonard
The vast majority of images are showing with an orange X. I can't see any explanation in the documentation so could you explain exactly what it signifies please?
Have they have not been sent to remushit?
Have they been sent but can't be optimnised for some reason?
Are they not accessible to the plugin code?
We had a lot of trouble getting this to work on some sites on which we have built our own templates, and it seemed that the module does not like images where no dimension has been set on height and width, and won't accept 0 values in both. It MUST have a positive value in either height or width.
However, further testing still didn't produce the expected results, and we then found that ZX Optimizer DOES NOT serve images if proportional images are switched off.
Hope that may help others.
Thanks
When I go to Tools and to optimize the images I get this message: saveImage: This is not a resource.
https://learnaboutfengshui.com
v1.5.6c
PHP 7.0.33
Here is the error log:
[27-Feb-2020 21:49:27 UTC] Request URI: /2019/zx_optimized_images.php, IP address: 174.247.113.94
#1 imagecreatetruecolor() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:299]
#2 imageLib->resizeImage() called at [/home/learnabo/public_html/2019/includes/functions/extra_functions/zx_optimized_images.php:85]
#3 zx_optimized_images() called at [/home/learnabo/public_html/2019/zx_optimized_images.php:28]
--> PHP Warning: imagecreatetruecolor(): Invalid image dimensions in /home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php on line 299.
[27-Feb-2020 21:49:27 UTC] Request URI: /2019/zx_optimized_images.php, IP address: 174.247.113.94
#1 imagealphablending() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:380]
#2 imageLib->keepTransparancy() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:300]
#3 imageLib->resizeImage() called at [/home/learnabo/public_html/2019/includes/functions/extra_functions/zx_optimized_images.php:85]
#4 zx_optimized_images() called at [/home/learnabo/public_html/2019/zx_optimized_images.php:28]
--> PHP Warning: imagealphablending() expects parameter 1 to be resource, boolean given in /home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php on line 380.
[27-Feb-2020 21:49:27 UTC] Request URI: /2019/zx_optimized_images.php, IP address: 174.247.113.94
#1 imagesavealpha() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:381]
#2 imageLib->keepTransparancy() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:300]
#3 imageLib->resizeImage() called at [/home/learnabo/public_html/2019/includes/functions/extra_functions/zx_optimized_images.php:85]
#4 zx_optimized_images() called at [/home/learnabo/public_html/2019/zx_optimized_images.php:28]
--> PHP Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in /home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php on line 381.
[27-Feb-2020 21:49:27 UTC] Request URI: /2019/zx_optimized_images.php, IP address: 174.247.113.94
#1 imagecolorallocatealpha() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:382]
#2 imageLib->keepTransparancy() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:300]
#3 imageLib->resizeImage() called at [/home/learnabo/public_html/2019/includes/functions/extra_functions/zx_optimized_images.php:85]
#4 zx_optimized_images() called at [/home/learnabo/public_html/2019/zx_optimized_images.php:28]
--> PHP Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php on line 382.
[27-Feb-2020 21:49:27 UTC] Request URI: /2019/zx_optimized_images.php, IP address: 174.247.113.94
#1 imagefilledrectangle() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:383]
#2 imageLib->keepTransparancy() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:300]
#3 imageLib->resizeImage() called at [/home/learnabo/public_html/2019/includes/functions/extra_functions/zx_optimized_images.php:85]
#4 zx_optimized_images() called at [/home/learnabo/public_html/2019/zx_optimized_images.php:28]
--> PHP Warning: imagefilledrectangle() expects parameter 1 to be resource, boolean given in /home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php on line 383.
[27-Feb-2020 21:49:27 UTC] Request URI: /2019/zx_optimized_images.php, IP address: 174.247.113.94
#1 imagecopyresampled() called at [/home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php:301]
#2 imageLib->resizeImage() called at [/home/learnabo/public_html/2019/includes/functions/extra_functions/zx_optimized_images.php:85]
#3 zx_optimized_images() called at [/home/learnabo/public_html/2019/zx_optimized_images.php:28]
--> PHP Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/learnabo/public_html/includes/classes/vendors/imageMagician/php_image_magician.php on line 301.