![]() Valid values are between 0 (invisible) and The value from watermark_size is used for the percentage area Its height would appear stretched, because keeping theĪspect ratio in mind it would be resized to 200×150 pixels instead.įor the "area" resize strategy, the watermark is resized (keeping itsĪspect ratio in check) so that it covers "xx%" of the video's surfaceĪrea. Since our video isĨ00×800 pixels, for a watermark size of 25% the watermark would be resized ![]() (meaning, it is resized without keeping its aspect ratio in mind) so thatīoth sides take up 25% of the corresponding video side. Would be resized to 400×300 pixels (so just left at its original size).įor the "stretch" resize strategy, the watermark image is stretched If the watermark_size was set to "50%"", it So with our watermark, the width is the longer side, andĢ5% of the video size would be 200px. Longer side of the watermark takes up 25% of the corresponding video side.Īnd the other side is scaled according to the aspect ratio of the Let'sĪlso assume, the watermark_size parameter is set to "25%".įor the "fit" resize strategy, the watermark is scaled so that the Size is 800×800 pixels and our watermark image is 400×300 pixels. To explain how the resize strategies work, let's assume our target video You can also also pass both the video and the watermark image to an Assembly Step via the use parameter, allowing you to have both be part of the upload, or to use the results of other Assembly Steps as input to your /video/encode Step.įor this to work, you just need to use the as-syntax: "my_video_step": ",Īvailable values are "fit", "stretch" and "area". Supplying the watermark via an Assembly Step Surround a video with a frame if you cut out a transparent center from your image. With watermarking you can add an image to a video. ![]() ![]() The /video/encode Robot encodes, resizes, applies watermarks to videos and animated GIFs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |