Keyword

Images at getting bigger during upload

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 7 months ago #157422 by Thomas Thrane
Images at getting bigger during upload was created by Thomas Thrane
Hi

I'm trying to optimize my website and making optimized images all around.
I have set K2 XL image to 1.200 px wide.
When I upload an optimized image, which is also 1.200 pixel wide and a size of 115 kb, then I see the XL-image in the cache folder now is nearly 300 kb!?

How do I fix this?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157425 by Krikor Boghossian
Replied by Krikor Boghossian on topic Images at getting bigger during upload
Hello Thomas,

You need to reduce the quality of the images a bit.
100 is a bit too much and PHP will create large images.
A value of 75 - 80 would be ideal.

PS. In order to recreate the image sizes you need to reupload the image.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 7 months ago #157433 by Thomas Thrane
Replied by Thomas Thrane on topic Images at getting bigger during upload
Thanks, but I don't want 80% of the quality uploaded - I already optimized the big image.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157437 by Krikor Boghossian
Replied by Krikor Boghossian on topic Images at getting bigger during upload
PHP's GD library will increase the size of the images if the quality is set above 80. Sadly, this is how this library works.

To be honest the difference between 80 and 100 is so minimal that the excess size is not worth it imo.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 7 months ago #157462 by Thomas Thrane
Replied by Thomas Thrane on topic Images at getting bigger during upload
Too bad...
I guess I could do this:

//$handle->jpeg_quality = $params->get('imagesQuality');

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157463 by Krikor Boghossian
Replied by Krikor Boghossian on topic Images at getting bigger during upload
Then the default setting will be used which is 75.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Thomas Thrane
  • Thomas Thrane's Avatar Topic Author
  • Offline
  • Premium Member
More
7 years 7 months ago #157466 by Thomas Thrane
Replied by Thomas Thrane on topic Images at getting bigger during upload
Thanks!

Just close this, and thanks for your help!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 7 months ago #157467 by Krikor Boghossian
Replied by Krikor Boghossian on topic Images at getting bigger during upload
You 're welcome :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum