When displaying a file entity with the Image (
file_entity_file_formatter_file_image_view always return an element if the file's scheme is local and if its mime type starts with
image/. When an image style is used, the returned element produces a
<img> tag to the file derivative. But this derivative only works if the file format is supported by the current image toolkit. When no file style is used, a
<img> tag to the original file is produced.
Because of this, it is not possible to use another formatter to display non supported image formats like tiff or bmp.
file_entity_file_formatter_file_image_view, check that the image is loadable using the current image toolkit before returning an element. Otherwise, don't return anything.
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch file_entity_image_formatter_returns_null_for_unsupported_format-1327398-1.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.
[ View ]