1
Thumbnailer should take in size parameter defaulted to 0
Idea shared by S K - 7/16/2020 at 4:57 AM
Completed
It would be nice to cut a thumbnail (using the Thumbnailer) with dimensions matching the original video.

If this is possible to implement, the "size" parameter can be defaulted to zero

3 Replies

Reply to Thread
1
Cem Alacayir Replied
Employee Post
Yes, that's a good suggestion, especially passing size parameter as 0 for original size (or there can be another overload for method GenerateThumbnail without size parameter). I will let you know.
0
thanks, please do let us know.
0
Cem Alacayir Replied
Employee Post
FYI, this feature is now available:

Version 2.3.5 - August 6, 2020
  • Improved: Passing maxSize parameter as 0 in VideoThumbnailer.GenerateThumbnail will produce a thumbnail in original width and height of the video.
    Changed fontSize parameter default value to 0. When fontSize is 0, font size will be automatically calculated according to height.
    The duration overlay will render with better opacity and with minimum 12px font size.
  • Added: New method overloads:
    VideoFrameReader.SetFrameSize(int maxSize)
    VideoThumbnailer.GenerateThumbnail(int width, int height, bool overlayDuration = false, float fontSize = 0)
  • Improved: VideoFrameReader.SetFrameSize(int width, int height) will throw for invalid values (negative values, or width and height zero at the same time).
  • Improved: Stability of video processing.

Reply to Thread