mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
70050a8ba3
`convert_to_jpeg!` is only called if `convert_png_to_jpeg?` and/or `should_alter_quality?` is true. `convert_png_to_jpeg?` can be disabled by setting `SiteSetting.png_to_jpg_quality` to 100. However, `should_alter_quality?` could be true if `SiteSetting.recompress_original_jpg_quality` was lower than the quality of the uploaded file, regardless of file type. This commits changes `should_alter_quality?` so that uploaded png files will use the `SiteSetting.png_to_jpg_quality` value, rather than ``SiteSetting.recompress_original_jpg_quality` value. |
||
---|---|---|
.. | ||
backups | ||
csv | ||
db | ||
emails | ||
encodings | ||
feed | ||
i18n | ||
images | ||
json | ||
md | ||
media | ||
mmdb | ||
multisite | ||
onebox | ||
plugins | ||
scss | ||
site_settings | ||
theme_settings | ||
themes | ||
woff2 |