View Single Post
  #2  
Old 07-08-2016, 09:54 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Images - XC5 control of them...

I doubt that resized images will be progressive jpegs.

/var/images directory is used to cache resized images. For example, if X-Cart knows that the active theme displays product images at X*Y, A*B and M*N dimensions, it will resize every uploaded image to these dimensions and store them for future use. Sometimes this happens not at the time when an image is uploaded, but at the time it is displayed in that particular width and height the first time.

Do you have ImageMagick installed on the server? I'm not sure if there is a solution for the GD library for PHP, but I think it can be done for ImageMagick (with a minor tweak) as is described here. So, you are to do the following:
1. Install ImageMagick on the server
2. Edit etc/config.php and specify your image_magick_path
3. From a custom module decorate the "execResize()" method in \XLite\Core\ImageOperator\ImageMagic class so that it calls the imagemagick binary with the extra "-interlace Plane" parameter.

Does this help?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote