Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Controlling Images Quality Generated By Imagick Rate Topic   - - - - -

 
  • alaa
  • Member
  • Trial users
  • Join Date: 18-Mar 18
  • 30 posts

Posted 13 July 2018 - 11:39 AM #1

Hi, 

 

On my store, I am using 30 PNG icons. Originally, each file size is almost 2 KB. But when publishing on the storefront, CS-Cart generates new files with more than 10 times larger size. 

 

Is there a way to control the quality of images/thumbs generated by Imagick in CS-Cart? 

 

 

Thank!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17613 posts

Posted 13 July 2018 - 12:52 PM #2

If thumbnails format is set to jpeg, you can use Settings -> Thumbnails -> JPEG format quality (0-100) setting


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • alaa
  • Member
  • Trial users
  • Join Date: 18-Mar 18
  • 30 posts

Posted 13 July 2018 - 02:34 PM #3

Thank you for your reply, eComLabs. 
 

 

If thumbnails format is set to jpeg, you can use Settings -> Thumbnails -> JPEG format quality (0-100) setting

 

 

 
The format is PNG. I mean, both original and generated files are in PNG. Can this be configured? 

 


 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 406 posts

Posted 13 July 2018 - 03:57 PM #4

 

Thank you for your reply, eComLabs. 
 

 

 
The format is PNG. I mean, both original and generated files are in PNG. Can this be configured? 

 

 

 

Hello,

 

Edit /app/functions/fn.images.php line ~782. Here you will see an option called 'png_compression_level'.

 

Kind regards,


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • alaa
  • Member
  • Trial users
  • Join Date: 18-Mar 18
  • 30 posts

Posted 14 July 2018 - 04:29 PM #5

Hello,

 

Edit /app/functions/fn.images.php line ~782. Here you will see an option called 'png_compression_level'.

 

Kind regards,

 

Thank you, poppedweb. That works perfectly. I was exactly looking for this settings. The option is in the same file but line 755. 

 

Again, thank you very much!