Uploaded images size

  • Posts: 59
  • Thank you received: 0
11 years 8 months ago #94429

hello!
i'm upload a jpg item image, for example, 200kb, but after upload this image size more than 400kb, why? how can i fix it?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 8 months ago #94437

It's probably because you configured an "image width/height" in the configuration of HikaShop in order to resize the images when uploaded and that you're uploading JPG files. HikaShop will resize them but with a quality of 100% in order to not degrade them.
Remove these configuration values and you won't have that problem when you upload new images.

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

  • Posts: 59
  • Thank you received: 0
11 years 8 months ago #94670

okay, it's almost work. can hikashop resize images with quality 50-60%? it's will help site work much faster

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 8 months ago #94709

Hi,

For the moment, there is no option to choose the compression quality.
But the new Image Helper functions introduced in HikaShop 2.1 have this feature. We would update our different views in order to use the new functions.

If you want to change the compression level, you have to edit the Image Helper (administrator/com_hikashop/helpers/image.php) and change the line:

$status = imagejpeg($thumb,null,100);
With your compression level (replacing the "100").
Your modification would be a core file modification so, if you update HikaShop, you would loose your modification.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 59
  • Thank you received: 0
11 years 8 months ago #94710

Thank you very much!

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

Time to create page: 0.062 seconds
Powered by Kunena Forum