Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Optimize image weight

Started by ledom 9 years ago · 2 replies · 1205 views
9 years ago

Hi,

I am trying to optimize the loading time for my grav website.
On a page I have an image insterted with markdown. This image was optimized with https://tinypng.com/ and is 81kB

When I add the image and save, my page show the same image but 360kB ! Caching is increasing image weith !

I tried disabling image caching, it is good, but not for images with media manipulation (resize).

A solution?

9 years ago

I think Grav should use a better compression and optimisation for image caching, or test if cached image weight is bigger than original image and then use original for cache.

Disabling image caching is a good solution only for images without modification. Images with crop or resize effects are cached even if image caching is disabled.

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 7 days ago
4 152 6 days ago
Support · by nwhitfield, 1 week ago
2 131 1 week ago
Support · by stell, 3 weeks ago
5 366 2 weeks ago
Support · by gravinator, 1 month ago
5 557 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago