JFIF files and Nextcloud
JFIF (JPEG File Interchange Format) is a standard for packaging JPEG-compressed image data with additional metadata for compatibility across different platforms and devices. It includes information such as resolution, color space, and image dimensions to ensure proper display. JFIF files typically use the .jfif extension and are commonly used for exchanging images.
JFIF files in the Nextcloud preview
The preview is normally not displayed for JFIF files in Nextcloud.
If you want to display the preview for JFIF files in Nextcloud, an entry must be made in the mimetypemapping.json file.
The syntax is the same as in the file
resources/config/mimetypemapping.dist.json
But you should not make any changes in mimetypemapping.dist.json because they will be overwritten with the next Nextcloud update.
nano config/mimetypemapping.json
{
"jfif": ["image/jpeg"]
}
From now on, the preview of newly added JFIF files will be displayed in Nextcloud.