Uploading movies via web UI generates a large .png which slows page load

Hi there,

I noticed that when I upload a .mov file (straight from the macOS Photos app) to my blog, Micro.blog automatically generates a very large .png file (~3.5MB) to use as the poster image for the video.

Is there a way to propose an improvement, maybe submitting a pull request or opening an issue, to either:

• Generate a more web-optimized poster format (like a compressed JPEG), or
• Add a resizing step during the upload process?

Manually creating and replacing poster images for each video is pretty labor-intensive, and a more streamlined solution would really help my site reach a lighter weight.

TIA

You just did (propose an improvement)! :blush:

While parts of Micro.blog are open source, the backend that handles thumbnail generation isn’t. So proposing changes here, on the timeline, or via email is the way to go.

For the record, I’m also tired of manually creating thumbnails for videos, so +1 to this request. Pinging @manton. :wink:

Yeah, 3.5 MB just for a poster image is really too big, I agree. I wonder if we should consider using JPEG instead. JPEGs have the advantage of automatically getting small and medium sizes in Micro.blog too.

Another option is I could cut the resolution of the PNG in half. It usually tries to use the video resolution.