Setting GD's JPEG compression quality

When uploading cover images, they get downscaled as thumbnails. The quality is rather low causing a lot of artefacts. Is there a way to set the default compression quality?

Hi @dersmon,

Can you please indicate which version of PKP software (e.g. OJS, OMP 3.3.0-8) you’re using?

PKP Team


We are currently running OMP 3.1.2.


Hello @dersmon,

I ran this by our developers, who had this to say:

I’ve just skimmed the code and it’s using the default quality (around 75 in a scale from 0 - 100).
At this moment, there’s no way to change it without updating the code, we could have a generic setting for this. The above applies to jpg files… Other formats might have other defaults or no quality setting at all

Here’s the place in the code that the quality for JPGs can be set:

I should note, however, that this is for version 3.3. The version that you’re using is out of date - and I would highly recommend upgrading.

We also discussed the possibility of this may be a setting within OJS that could be done without having to modify the code. To that end, I’ve flagged this post as a “Feature Request” so our developers can discuss the feasibility of this.

PKP team

1 Like

Thank you for checking with the developers. A setting would be nice indeed, it is most notable with single colour covers that have a fiber material.