Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,158
    Plugin Contributions
    11

    Default ZX Optimized Images [Support Thread]

    Support thread for ZX Optimized Images - a Zen Cart plugin for optimizing images. This plugin will automatically optimize your images, resize it to various dimensions and run it through resmush.it to provide the best possible optimization.

    Product images are usually the weak spot when it comes to page load time. If you have large high quality images, one single image can easily be 200-500 kB. Product listing pages can easily get to a few MBs because of the images which means it's slower to load.

    This plugin will automatically resize your images to the sizes needed by your site, and will then run each of the resized image through one of the most popular image optimization services available.

    Once the images are optimized, all optimized variants are saved to your server and are being loaded automatically based on the size needed. You can easily save several megabytes of data transfer when using optimized images. And, of course, the site will load significantly faster.

    Let's not forget search engines will love it!

    Click image for larger version. 

Name:	zx_optimized_images.jpg 
Views:	16 
Size:	57.9 KB 
ID:	18781 Click image for larger version. 

Name:	zx_optimized_images-1.jpg 
Views:	19 
Size:	29.7 KB 
ID:	18782

    If anyone wants to grab it before mods approve it, you can find it here.

    Plugin was tested on Zen Cart 1.5.6c, but should work with older versions as well. No idea how far back.

    Looking forward to your comments and improvement ideas. I'll do my best to provide support for the module, but can't guarantee anything.
    Zen Cart Point of Sale? Sure: ZX POS
    My site - Pro ZC Help | My portfolio | My plugins

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,158
    Plugin Contributions
    11

    Default Re: ZX Optimized Images [Support Thread]

    Now available for download.
    https://www.zen-cart.com/downloads.php?do=file&id=2266

    An update was already submitted (v1.1.0) and is awaiting approval.
    Zen Cart Point of Sale? Sure: ZX POS
    My site - Pro ZC Help | My portfolio | My plugins

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

    Default Re: ZX Optimized Images [Support Thread]

    A couple of questions...

    1. What makes this better than IH5?
    2. I see from the documentation that only product images are optimised. Are there any plans to incorporate other images - categories, banners etc?

  4. #4
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,158
    Plugin Contributions
    11

    Default Re: ZX Optimized Images [Support Thread]

    Quote Originally Posted by Ryk View Post
    A couple of questions...

    1. What makes this better than IH5?
    IH uses GD library to resize and compress images, and it's compression is inferior to JPEGoptim, PNGQuant and OptiPNG libraries used by resmush.it. You could install those libraries on your server and build a plugin with server-side optimization, but it wouldn't be this simple.
    I have made a comparison using the same product listing page with IH and ZXOI. You can see the results here. 14% improvement is quite a lot, and images are actually better quality because of the optimization libraries.

    2. I see from the documentation that only product images are optimised. Are there any plans to incorporate other images - categories, banners etc?
    Already optimizing. ZXOI basically "hijacks" all images loaded with zen_image() function and runs it through the optimization process. Category and banner images are optimized.

    I'm currently working on an admin-side page to batch-run the optimization process and take the stress out of frontend. Should be done in a few days, depending how much free time I manage to find.

    Ideas for improvements are always welcome.
    Zen Cart Point of Sale? Sure: ZX POS
    My site - Pro ZC Help | My portfolio | My plugins

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

    Default Re: ZX Optimized Images [Support Thread]

    Sounds good. Thanks

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

    Default Re: ZX Optimized Images [Support Thread]

    Hi Leonard

    Fyi Am recieving the following error

    [18-Jan-2020 18:00:52 Europe/London] PHP Fatal error: Call to undefined function finfo_open() in /public_html/includes/classes/vendors/imageMagician/php_image_magician.php on line 2643
    Have tried on both a ZC155e installation running php5.6 and a ZC156c running php7.3

    These seem to be being generated immediately on trying to access any category
    Last edited by Ryk; 18 Jan 2020 at 07:09 PM.

  7. #7
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,158
    Plugin Contributions
    11

    Default Re: ZX Optimized Images [Support Thread]

    Can you check if fileinfo extension is installed on your server? The finfo_open() is a standard php function which is usually enabled, but if it's not, you need to edit your server's config and enable it.
    Zen Cart Point of Sale? Sure: ZX POS
    My site - Pro ZC Help | My portfolio | My plugins

  8. #8
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,158
    Plugin Contributions
    11

    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:	19 
Size:	38.3 KB 
ID:	18807
    Zen Cart Point of Sale? Sure: ZX POS
    My site - Pro ZC Help | My portfolio | My plugins

  9. #9
    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.

  10. #10
    Join Date
    Jul 2015
    Location
    Warsaw
    Posts
    13
    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 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
  2. Shopping Cart Steps Images [Support Thread]
    By Trinity14 in forum Addon Templates
    Replies: 20
    Last Post: 27 Feb 2018, 04:53 PM
  3. v150 Product Images on Invoice, Email, etc [Support Thread]
    By jackie.taferner in forum All Other Contributions/Addons
    Replies: 28
    Last Post: 8 Jan 2018, 03:57 PM
  4. Best Seller's Scrolling Images - support thread
    By chaiavi in forum Addon Sideboxes
    Replies: 29
    Last Post: 9 Feb 2015, 05:02 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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR