speed up my site (product images)

  • Posts: 490
  • Thank you received: 2
5 years 10 months ago #294288

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.5.38

hi

im trying to speed up my site

can you tell me how i can reduce the quality of the images when im using category list or product list? i mean if the products being displayed are more than 1 and images are only thumbnails, i would like to reduce the quality.

if it is a product page not much compressions is needed.

thank you

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
5 years 10 months ago #294298

Hi,

You can edit the file "listing_img_title" of the view "product" or "category" and change the line:

array('default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'))
to something like that:
array('quality' => 50,'default' => true,'forcesize'=>$this->config->get('image_force_size',true),'scale'=>$this->config->get('image_scale_mode','inside'))
where 50 is the compression percentage.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum