Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Optimize image weight

Started by ledom 8 years ago · 2 replies · 1138 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 complanar, 6 days ago
6 140 16 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 52 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago