Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Optimize image weight

Started by ledom 9 years ago · 2 replies · 1336 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 TomW, 2 weeks ago
8 225 8 hours ago
Support · by alex, 2 months ago
8 666 23 hours ago
Support · by Supple, 5 days ago
1 97 1 day ago
Support · by TomW, 1 week ago
3 158 3 days ago
Support · by TomW, 6 days ago
2 105 5 days ago