Cannot render image if the suffix is not correct

An error occured when we rendering an image with incorrect suffix.

Here is an example:

A jpeg file with .jpg suffix:

https://surreal.oss-accelerate.aliyuncs.com/pacific/resource/image/2bd8c64446ee4ddaaa3c2a786c82b296/9e21438118f84475bce7ccb42658d07b.jpg?OSSAccessKeyId=LTAI4FhUZsa1YYumWbTWusLN&Expires=1656039437&Signature=dFmCUhdHjZb8Txwr5QceJrludHQ%3D

Construct test json:

{
    "timeline": {
        "soundtrack": {
            "src": "https://surreal.oss-accelerate.aliyuncs.com/pacific/resource/audio/admin/3f6f021b2b4d4937aee092287870562f.mp3?OSSAccessKeyId=LTAI4FhUZsa1YYumWbTWusLN&Expires=1656039437&Signature=7cQGlWLa9da%2BRgnZrAv8O1e8Id0%3D",
            "volume": 0.5
        },
        "background": "#000000",
        "tracks": [
            {
                "clips": [
                    {
                        "asset": {
                            "type": "image",
                            "src": "https://surreal-public.oss-accelerate-overseas.aliyuncs.com/tmp/9e21438118f84475bce7ccb42658d07b.jpeg"
                        },
                        "start": 0,
                        "length": 1
                    }
                ]
            }
        ]
    },
    "output": {
        "format": "mp4",
        "resolution": "sd"
    }
}

We got an un-readable failed message after rendering:

{... 'status': 'failed', 'error': {'syscall': 'open', 'path': '/mnt/v1/yxm1c7thvf/5287fdcb-16dd-4f9f-8948-870195da1d3b/parts/parts.txt', 'errno': -2, 'code': 'ENOENT'}, ...}

But after correct the file format, the rendering succeeded.

Could we support image rendering with even incorrect suffix?

I wasn’t able to recreate the issue, I tried with the JSON provided (uses jpeg) and the also with the image URL with access key. They both worked.

It should work with jpeg, jpg, png, bmp and svg. It should also be able to distinguish the file type even if the extension is wrong - i.e. a jpg that has a png extension.

Is there something else you did, is this the complete JSON and same images that created the error?