Skip to main content

Uploaded images size

More
13 years 6 months ago #94429 by Dodesign
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.

More
13 years 6 months ago #94437 by nicolas
Replied by nicolas on topic Uploaded images size
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.

More
13 years 6 months ago #94670 by Dodesign
Replied by Dodesign on topic Uploaded images size
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.

More
13 years 6 months ago #94709 by Jerome
Replied by Jerome on topic Uploaded images size
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:
Code:
$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.

More
13 years 6 months ago #94710 by Dodesign
Replied by Dodesign on topic Uploaded images size
Thank you very much!

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

Time to create page: 0.174 seconds
Powered by Kunena Forum