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

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

Started by Muut Archive 9 years ago · 2 replies · 425 views
9 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?

9 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?

9 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 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2935 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago