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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Optimize image weight

Started by ledom 8 years ago · 2 replies · 949 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 Thomas, 1 week ago
2 57 14 hours ago
Support · by Anna, 3 days ago
2 65 17 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago