Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Optimize image weight

Started by ledom 8 years ago · 2 replies · 1088 views
8 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?

8 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 Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago