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

How do I prevent Grav from "compressing" my page media?

Started by Muut Archive 10 years ago · 2 replies · 527 views
10 years ago

What I mean by this is, when I upload a JPG file to Grav via the page media drag and drop it's then using some really poor compression tool which is converting from a 386kb JPG to a 1.7mb PNG file!!

How to I stop Grav doing this so I can use my optimised JPG images?

10 years ago

Turns out this compression is happening on the actual page, rather than via the admin panel. So what is actually compressing this image and increasing its size?

10 years ago

All the media processing that Grav does is via GD. GD is a built-in PHP library for image manipulation. it does not produce optimally compressed file sizes. If you don't want to have the image manipulated, simply access the image directly and don't perform any media operations on it (resize, colorize, etc).

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2280 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3557 9 years ago
Archive · by Muut Archive, 9 years ago
3 1621 9 years ago