As stated in that article:
If the file blueprint also accept non-image files, those will be skipped and their format/extension left untouched.
This is not the case in my experience. As I attempt to upload an mp4 file, it creates a broken .webp file that breaks my website.
Here’s the relevant file blueprint. Am I doing/expecting something wrong here ?
title: Project cover media
create:
width: 1920
height: 1920
format: webp
fields:
alt:
type: text
width: 1/2
default: 'No description available'
A video can unfortunately not be converted to webp. It would be amazing if this worked and it would simply create a thumbnail, but GD lib and Imagemagick are not able to handle that.
Oh you are right. The file shouldn’t be touched at all.
1 Like
Yes exactly, but indeed my point is I’d like to upload mp4 with that file blueprint, without having them converted to webp’s haha.
As a temporary fix, would there be a way to make my video files take a different file blueprint when uploaded to the same filed ? Or anything else that wouldn’t require me to separate video/images in two fields ?
By the way, this is also broken for seemingly all other file types (I tested with .pdf, .mov, .webm).