Issue Bug Closed

#81826IRRE Thumbnails are not rendered for images with extension written in capital letters

Johannes Schlier 07/10/17, 13:20 updated 10/02/18, 10:58

Description

Since a recent change thumbnails are not generated for images as inline records anymore if their extension name is written in capital letters (e.g. JPG instead of jpg).

The InlineRecordContainer does not correctly get the file extension.
The proper way should be via File->getExtension(), which would always give the lowercase version. At the moment it is fetched through the method File->getProperty(‘extension’), which gives the extension as it is (i.e. in capital letters).

This means that the following check if the file extension is an image file extension fails for the capitalised version.

Reviews 2