justsoft / video_thumbnail

This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
MIT License
183 stars 225 forks source link

web implementation #135

Open maRci002 opened 1 year ago

maRci002 commented 1 year ago

closes #14

The scaling functionality behaves similarly to Android's scales. However, I can update the algorithm to use cropping if both maxWidth and maxHeight are present to match the behavior of iOS.

Running example on the web:

https://user-images.githubusercontent.com/8436039/229614851-24258011-d3ca-4594-b236-d622c5c8b11a.mp4

I have tested it with video_editor package:

https://user-images.githubusercontent.com/8436039/229935809-2f146b7e-fe0a-4b50-99bc-a78ee63266a0.mp4

I have updated the plugin to use an endorsed federated plugin. You can find more information on this at https://medium.com/flutter/how-to-write-a-flutter-web-plugin-part-2-afdddb69ece6

As for publishing, here are the steps: