imazen / imageflow

High-performance image manipulation for web servers. Includes imageflow_server, imageflow_tool, and libimageflow
https://docs.imageflow.io/
GNU Affero General Public License v3.0
4.14k stars 141 forks source link

imageflow server returns 500 for some jpegs #535

Closed twirlse closed 3 years ago

twirlse commented 3 years ago

Hi,

We have recently migrated from ImageResizer to ImageFlow server. It's working great so far expect for some older jpegs where we get 500 from imageflow. I'm not sure if you want jpeg attached or stacktrace is enough.

We are running on windows and latest imageflow .net server.

ImageflowException: ImageMalformed: NoEnabledDecoderFound: No ENABLED decoder found for file starting in [42, 4D, 7E, 44, 6, 0, 0, 0, 0, 0, 36, 0] at imageflow_core\src\codecs\mod.rs:153:20 
https://github.com/imazen/imageflow/blob/16873d7816046754c75dc6a0b968f600f7caf6fe/imageflow_core\src\codecs\mod.rs#L153 imageflow_core\src\context.rs:133:103 
https://github.com/imazen/imageflow/blob/16873d7816046754c75dc6a0b968f600f7caf6fe/imageflow_core\src\context.rs#L133 imageflow_core\src\context.rs:174:66 
https://github.com/imazen/imageflow/blob/16873d7816046754c75dc6a0b968f600f7caf6fe/imageflow_core\src\context.rs#L174 imageflow_abi\src\lib.rs:707:62 
https://github.com/imazen/imageflow/blob/16873d7816046754c75dc6a0b968f600f7caf6fe/imageflow_abi\src\lib.rs#L707
kornelski commented 3 years ago

The error message suggests these are BMP files, not JPEGs.

twirlse commented 3 years ago

That's interesting and strange. Both old ImageResizer and built-in windows image viewer can open/process those files.

Thanks for the reply! Keep up with good work! :)