Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: ZX Optimized Images [Support Thread]

    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

    Click image for larger version. 

Name:	2020-01-19_155101.jpg 
Views:	114 
Size:	38.3 KB 
ID:	18807

  2. #2
    Join Date
    Feb 2015
    Location
    UK
    Posts
    13
    Plugin Contributions
    0

    Default Re: ZX Optimized Images [Support Thread]

    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.

  3. #3
    Join Date
    Jul 2015
    Location
    Warsaw
    Posts
    16
    Plugin Contributions
    0

    Default Re: ZX Optimized Images [Support Thread]

    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.

  4. #4
    Join Date
    Oct 2004
    Location
    Southport, UK
    Posts
    4,244
    Plugin Contributions
    20

    Default Re: ZX Optimized Images [Support Thread]

    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

  5. #5
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default Re: ZX Optimized Images [Support Thread]

    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.

 

 

Similar Threads

  1. v150 Product Images on Invoice, Email, etc [Support Thread]
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 29
    Last Post: 26 Aug 2022, 05:52 AM
  2. Best Seller's Scrolling Images - support thread
    By chaiavi in forum Addon Sideboxes
    Replies: 32
    Last Post: 25 Jun 2022, 03:23 AM
  3. Shopping Cart Steps Images [Support Thread]
    By Trinity14 in forum Addon Templates
    Replies: 21
    Last Post: 11 Apr 2021, 05:35 AM
  4. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM
  5. Template support thread: Sliding Home Images
    By markz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Jul 2013, 07:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg