Skip to content

Require support for BMP files #626

@villagemedia

Description

@villagemedia

We are attempting to move from ImageResizer to ImageFlow. We noticed a lot of errors after switching, and it seems that ImageFlow does not support bitmaps. We have user submitted content that has a .jpg extension, but it's actually a bitmap. These resize just fine in ImageResizer, but fail in ImageFlow.

ImageflowException: ImageMalformed: NoEnabledDecoderFound: No ENABLED decoder found for file starting in [42, 4D, 36, C4, 6D, 1, 0, 0, 0, 0, 36, 0] at
imageflow_core\src\codecs\mod.rs:155:20

return Err(nerror!(ErrorKind::NoEnabledDecoderFound, "No ENABLED decoder found for file starting in {:X?}", bytes))

imageflow_core\src\context.rs:194:103
let codec_value = CodecInstanceContainer::create(self, io, io_id, direction).map_err(|e| e.at(here!()))?;

imageflow_core\src\context.rs:235:66
self.add_io(io, io_id, IoDirection::In).map_err(|e| e.at(here!()))

imageflow_abi\src\lib.rs:703:62
c.add_input_buffer(io_id,bytes).map_err(|e| e.at(here!()))?;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions