unpic
unpic copied to clipboard
Working with Cloudinary video thumbnails
There are two different ways to convert a Cloudinary video URL to a thumbnail image of the video:
- Replace the file extension
- Keep the file extension, but use
f_jpg(or similar) transformation
In both cases, the assetType captured by this regex is video, which leads to an unsupported error.
Video thumbnails feel like a valid use case, and I'm happy to do the work to add the support.
But what's the right logic? Is it too opinionated to say if it's a video, then we check for a valid image extension on the URL?