From ecec23fae41a6dd8195856f99575bd857e1a8cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Mon, 26 Jun 2017 14:21:47 +0200 Subject: [PATCH] FIX: automatic PNG to JPG conversion wasn't working --- lib/upload_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upload_creator.rb b/lib/upload_creator.rb index ddf703f6b92..c2101b32519 100644 --- a/lib/upload_creator.rb +++ b/lib/upload_creator.rb @@ -124,7 +124,7 @@ class UploadCreator def should_convert_to_jpeg? return false if !TYPES_CONVERTED_TO_JPEG.include?(@image_info.type) return true if @opts[:pasted] - return false if SiteSetting.png_to_jpg_quality < 100 + return false if SiteSetting.png_to_jpg_quality == 100 pixels > MIN_PIXELS_TO_CONVERT_TO_JPEG end