adapt_authoring
adapt_authoring copied to clipboard
Re-factor: Use an image file for images which do not have a thumbnail
This is currently a base64 string.
I would recommend to always show an image for assets as it is very tedious to work with assets that have no thumbnail. If there is no thumbnail generated, I would fallback to the original image and use this.
I also recommend that for simple thumbnail creation from uploaded images we should not only depend on ffmpeg as it requires the user to manually install ffmpeg. There are quite some nice npm packages available that could be used under the hood and installed with npm during setup.
https://www.npmjs.com/package/jimp https://www.npmjs.com/package/sharp
I had a look for something like this in the past, but didn't find anything great. Very up for removing the ffmpeg dependency.
Ive split off your comment here into another issue @lc-thomasberger #1860