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
- fit: "contain",
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-r2-video",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Video for Sanity Studio, encoded in the browser and stored in Cloudflare R2 as a ladder of plain MP4s.",
5
5
  "keywords": [
6
6
  "sanity",