sanity-plugin-r2-video 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,7 +45,11 @@ var encodeRendition = async (source, width, height, hasAudio, isNative, options,
|
|
|
45
45
|
video: isNative ? {} : {
|
|
46
46
|
width,
|
|
47
47
|
height,
|
|
48
|
-
|
|
48
|
+
// Cover, not contain: the even-width rounding above means the
|
|
49
|
+
// box rarely matches the source aspect exactly, and contain
|
|
50
|
+
// fills that sub-pixel gap with black bars that survive into
|
|
51
|
+
// the file. Cover crops the under-a-pixel overflow instead
|
|
52
|
+
fit: "cover",
|
|
49
53
|
codec: options.videoCodec,
|
|
50
54
|
quality
|
|
51
55
|
},
|