Skip to content

fix: drop fetch_format from poster and seek-thumbnail transformations - #1100

Open
tsi wants to merge 1 commit into
masterfrom
fix/VIDEO-21243-sprite-poster-format
Open

tsi wants to merge 1 commit into
masterfrom
fix/VIDEO-21243-sprite-poster-format

Conversation

@tsi

@tsi tsi commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator

Jira: VIDEO-21243

Follow-up to #1097, found while testing #1099.

Why

The source transformation is inherited by derived image URLs (seek-thumbnails sprite, and the poster when posterOptions is set). omitVideoOnlyTransformations strips streaming_profile and video_codec for these URLs, but not fetch_format. With transformation: { fetch_format: 'mp4' }:

  • Seek thumbnails: f_mp4/fl_sprite/....vtt gives 400 (fl_sprite is only supported with 'vtt' or 'jpg' format).
  • Poster with posterOptions: f_mp4/....jpg is delivered as video/mp4.

This predates #1097, but #1097 and #1099 now recommend fetch_format / format, so it is easier to hit.

What changed

  • Added fetch_format and its format alias to VIDEO_ONLY_TRANSFORMATION_KEYS in src/plugins/cloudinary/common.js.
  • Added unit tests for omitVideoOnlyTransformations (object, array, and chained forms).

Testing

  • npm run test:unit passes (146 tests).
  • Checked on the local docs server with fetch_format: 'mp4' and format: 'mp4': the sprite URL is fl_sprite/....vtt (200), and the posterOptions poster is c_scale,w_600/....jpg.

A source fetch_format (or its format alias) leaked into derived image URLs:
the seek-thumbnails sprite became f_mp4/fl_sprite/...vtt (400), and a
poster built from posterOptions was delivered as a video.

VIDEO-21243
@tsi
tsi requested a review from a team as a code owner October 20, 2026 10:23
@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit df79edc
🔍 Latest deploy log https://app.netlify.com/projects/cld-vp-esm-pages/deploys/6ad74106077f7cccc9557e5f
😎 Deploy Preview https://deploy-preview-1100--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit df79edc
🔍 Latest deploy log https://app.netlify.com/projects/cld-video-player/deploys/6ad741068d2304a53d21ec16
😎 Deploy Preview https://deploy-preview-1100--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant