Image upload error when using resizer

I fixed the two problems here:

  1. The image optimization pipeline converted PNGs to JPEGs and then tried to optimize resulted JPEGs using the operations for PNG images.

  2. ImageMagick errors were returned to the user, but were not helpful at all (e.g. convert: improper image header...)

https://github.com/discourse/discourse/pull/9257

8 Likes