Product image sizes increase when uploaded

  • Posts: 272
  • Thank you received: 7
11 years 5 months ago #79097

Hi there,

I just noticed that when I upload a PNG image to my shop, it increases from 230 kb to 505kb (the image is not being resized from the original I uploaded). At over half a magabyte, this really is creating slow page loads.

Can you please tell me why my image is more than doubling in size when it is uploaded even though you are not resizing it. It appears there is something wrong there.

Kind regards

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

  • Posts: 26028
  • Thank you received: 4006
  • MODERATOR
11 years 5 months ago #79140

Hi,

Upload images are not modified by HikaShop. But, generated thumbnails could.
If the thumbnail size is higher than the original image size, HikaShop would use the image directly.
But if the image size is the exact size of the thumbnail size, HikaShop would resize the image like if it wants to reduce it.
I would make a patch for the next release of HikaShop.

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: 272
  • Thank you received: 7
11 years 5 months ago #79208

Hi Jerome,

Thank for the reply. Just so you know, when a thumbnail is created from a PNG file, the size of the new thumbnail doubles and sometimes triples in kb size (even if the new thumbnail dimensions stays the same). Hopefully that info helps you with a patch.

Kind regards

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

  • Posts: 26028
  • Thank you received: 4006
  • MODERATOR
11 years 5 months ago #79210

Hi,

Sorry but the file size (kb) does not help us.
We are not responsible of the file size. We use PHP GD for the image generation so... We can't do more than GD
But, if you have information about the image size (width and height) before and after. It could help.

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.
Last edit: 11 years 5 months ago by Jerome.

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

  • Posts: 272
  • Thank you received: 7
11 years 5 months ago #79214

Sorry Jerome I cannot be of more help. The issue I had was the actual KB size increasing (not dimensions)

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #79231

Hi boopoo,

When an image is uploaded, the GB library resize the image.
I suggest you to reupload the files by ftp to replace the first imported. By this way, your product already have the image path and the image is not resized.

The following user(s) said Thank You: boopoo

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

  • Posts: 118
  • Thank you received: 3
11 years 4 months ago #83331

Jerome wrote: Hi,

Upload images are not modified by HikaShop. But, generated thumbnails could.
If the thumbnail size is higher than the original image size, HikaShop would use the image directly.
But if the image size is the exact size of the thumbnail size, HikaShop would resize the image like if it wants to reduce it.
I would make a patch for the next release of HikaShop.

Regards,


Also, there is new images generated in the upload directory and it's not good at all.
Like : Images could be duplicated with an added numeric code in the filename.
This occurs when an images is uploaded once, then deleted, then uploaded again.
I'm usualy batching my images from sources in high resolution and then mass uploading, the it's a painfull issue for me.
I could even deal with it writing shell script to recover first the filename created by hikashop but it's not confortable at all.

I hope those problems will be solved.

Sincerely

PS : I'm on the Business edition.

Last edit: 11 years 4 months ago by Brunus.

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

  • Posts: 26028
  • Thank you received: 4006
  • MODERATOR
11 years 4 months ago #83420

Hi,

There is no generated image in the upload directory. Only thumbnails are generated.
If you have images with the no-duplicate suffix, you can change the image path in the database. It would be possible to change it directly in HikaShop with the next version.
So, if you have such copy images, you would be able to remove the old one by FTP and change the image path in HikaShop (and for the moment, directly in the database, thanks to PhpMyAdmin or other).

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: 118
  • Thank you received: 3
11 years 4 months ago #83607

Nice, thanks Jerome.

Yes ok, I was talking about category thumbnails.

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

Time to create page: 0.087 seconds
Powered by Kunena Forum