The size of images increases twice after loading!

  • Posts: 126
  • Thank you received: 0
11 years 8 months ago #127620

The size of images increases twice after loading via admin panel :dry:
For example, I uploaded JPG image with size 12,2kb and then received JPG image with 21,22kb
When I uploaded one picture with 12,2kb from computer, on a server this to spend 48,6kb
And when I remove the image from the admin panel, it is not deleted from the server

Last edit: 11 years 8 months ago by neviqimka.

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #127635

Hi,

HikaShop does not touch original files that you uploaded but it creates thumbnails.
After that, you do not precised your HikaShop version so we can't tell more about your problem. The image helper in HikaShop evolved and we added new features into.

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: 126
  • Thank you received: 0
11 years 8 months ago #127651

I have HikaShop Business: 2.2.2

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #127667

Hi,

Okay.
So, in which folder is your file size problem ?

Because like I said previously, HikaShop does not touch the original files you uploaded so, it is just not possible that the original image is modified by 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: 126
  • Thank you received: 0
11 years 8 months ago #127781

So, in which folder is your file size problem ?

This problematics pictures have adress site.com/media/com_hikashop/upload/thumbnail_200x200

HikaShop does not touch the original files you uploaded so, it is just not possible that the original image is modified by HikaShop.

Ok, but when I upload image for example 135x200 13kb JPG, on page this image have parametres 135x200 18kb JPG

Last edit: 11 years 8 months ago by neviqimka.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #127811

Hi,

The PHP GB library is called when managing the images. It's possible that this library edit a little the images.
The indicated folder is a thumbnail one, how are you adding these images in this folder ? Via the interface or via FTP ?

If you upload via FTP, the images will not be touched by anything. So I recommend to use this way, you have o name correctly the files.

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

  • Posts: 126
  • Thank you received: 0
11 years 8 months ago #127836

Hi,
how are you adding these images in this folder ? Via the interface or via FTP ?

Via Hikashop interface, when I add a new products! Then Hikashop or PHP making copies of one image in: root folder, thumbnail_100x100 and thumbnail_200x200, and displayed image on page the size witch is doubled :ohmy:

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #127848

Hi,

The PHP GD library is called when managing the images. It's possible that this library edit a little the images.

HikaShop uses PHP GD library for the creation of the thumbnail, we have not influence of the size of the generated thumbnails.
www.php.net/manual/en/book.image.php

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: 126
  • Thank you received: 0
11 years 7 months ago #130779

For example, I uploaded some 200x200 image.jpg 12,2 kb via hikashop., then hikashop put this original image in "site.com\media\com_hikashop\upload" directory and make copy in "site.com\media\com_hikashop\upload\thumbnail_200x200" directory, but this image have 26,5 kb and it displayed on site. Do you understand, I uploaded 12,2 kb but on site displayed 26,6 kb? Maybe do some check in code - if image has 200x200 hikashop don't make map with trumbals 200x200 and use the original image?

Last edit: 11 years 7 months ago by neviqimka.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 7 months ago #130846

Hi,

This kind of check is actually not present in HikaShop.
Generally the main size is different than the thumbnail size.

What can be done to keep the original file size is to upload them via ftp in the folder "site.com\media\com_hikashop\upload\thumbnail_200x200", by this way they will not be re-generated.

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

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #130983

Thank you, it is also a good solution!

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

Time to create page: 0.087 seconds
Powered by Kunena Forum