neutronX / django-markdownx

Comprehensive Markdown plugin built for Django
https://neutronx.github.io/django-markdownx/
Other
863 stars 153 forks source link

give MARKDOWNX_IMAGE_MAX_SIZE to save() method to ensure quality parameter is used when saving image #274

Open mbruegmann opened 1 month ago

mbruegmann commented 1 month ago

In the current code the quality param from the settings is only set to the meta data of the image, but it is not actually used when saving the image. Due to this the quality param is basically ignored. To make the image be saved with the desired quality the quality param needs to be set on the save method as well.