[Skip to main content](#vessel-content)

#   Product image sizes increase when uploaded

##

- **[boopoo](/forum/user/8365-boopoo "View boopoo's Profile")**
- [![boopoo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8365-boopoo "View boopoo's Profile") Topic Author
- [ Offline](/forum/user/8365-boopoo)

Less More

- Posts: 272
- Thank you received: 7
-
-

13 years 11 months ago [\#79097](#79097) by [boopoo](/forum/user/8365-boopoo "View boopoo's Profile")  *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#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")* was created by *[boopoo](/forum/user/8365-boopoo "View boopoo's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#79140](#79140) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#79140 "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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[boopoo](/forum/user/8365-boopoo "View boopoo's Profile")**
- [![boopoo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8365-boopoo "View boopoo's Profile") Topic Author
- [ Offline](/forum/user/8365-boopoo)

Less More

- Posts: 272
- Thank you received: 7
-
-

13 years 11 months ago [\#79208](#79208) by [boopoo](/forum/user/8365-boopoo "View boopoo's Profile")  Replied by *[boopoo](/forum/user/8365-boopoo "View boopoo's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#79208 "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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 11 months ago -  13 years 11 months ago [\#79210](#79210) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#79210 "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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[boopoo](/forum/user/8365-boopoo "View boopoo's Profile")**
- [![boopoo's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8365-boopoo "View boopoo's Profile") Topic Author
- [ Offline](/forum/user/8365-boopoo)

Less More

- Posts: 272
- Thank you received: 7
-
-

13 years 11 months ago [\#79214](#79214) by [boopoo](/forum/user/8365-boopoo "View boopoo's Profile")  Replied by *[boopoo](/forum/user/8365-boopoo "View boopoo's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#79214 "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")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#79231](#79231) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#79231 "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")*

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](/forum/user/8365-boopoo "View boopoo's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Brunus](/forum/user/9886-brunus "View Brunus's Profile")**
- [![Brunus's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9886-brunus "View Brunus's Profile")
- [ Offline](/forum/user/9886-brunus)

Less More

- Posts: 118
- Thank you received: 3
-
-

13 years 10 months ago -  13 years 10 months ago [\#83331](#83331) by [Brunus](/forum/user/9886-brunus "View Brunus's Profile")  Replied by *[Brunus](/forum/user/9886-brunus "View Brunus's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#83331 "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")*

> 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: 13 years 10 months ago by [Brunus](/forum/user/9886-brunus "View Brunus's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#83420](#83420) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#83420 "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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Brunus](/forum/user/9886-brunus "View Brunus's Profile")**
- [![Brunus's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9886-brunus "View Brunus's Profile")
- [ Offline](/forum/user/9886-brunus)

Less More

- Posts: 118
- Thank you received: 3
-
-

13 years 10 months ago [\#83607](#83607) by [Brunus](/forum/user/9886-brunus "View Brunus's Profile")  Replied by *[Brunus](/forum/user/9886-brunus "View Brunus's Profile")* on topic *[Product image sizes increase when uploaded](/forum/2-general-talk-about-hikashop/76215-product-image-sizes-increase-when-uploaded#83607 "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")*

Nice, thanks Jerome.

Yes ok, I was talking about category thumbnails.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MjE1LXByb2R1Y3QtaW1hZ2Utc2l6ZXMtaW5jcmVhc2Utd2hlbi11cGxvYWRlZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
