unpic icon indicating copy to clipboard operation
unpic copied to clipboard

Working with Cloudinary video thumbnails

Open seancdavis opened this issue 1 year ago • 0 comments

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?

seancdavis avatar Jan 25 '24 11:01 seancdavis