8000 Add Video thumbnail tile option by 11bit · Pull Request #47 · imgproxy/imgproxy-js-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Video thumbnail tile option #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 25, 2025
Merged

Add Video thumbnail tile option #47

merged 2 commits into from
Apr 25, 2025

Conversation

11bit
Copy link
Collaborator
@11bit 11bit commented Apr 25, 2025

Closes #10

@11bit 11bit requested a review from Copilot April 25, 2025 17:37
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the Video Thumbnail Tile option, providing type definitions, build logic, and tests to generate tiled video sprites.

  • Introduces new type definitions and options for video thumbnail tiles.
  • Implements a build function that constructs the option string with configurable flags and focus coordinates.
  • Adds comprehensive tests and updates the Options type for integration.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/optionsBasic/videoThumbnailTile.test.ts New tests validating video thumbnail tile option behavior.
src/types/videoThumbnailTile.ts New type definitions for the video thumbnail tile option.
src/types/index.ts Updates to include the new video thumbnail tile types.
src/options/videoThumbnailTile.ts Implements option detection and string building for video thumbnail tiles.
src/options/index.ts Exports the new video thumbnail tile option module.
.changeset/moody-coins-wink.md Adds a changeset note for the new feature.
Comments suppressed due to low confidence (2)

src/options/videoThumbnailTile.ts:14

  • [nitpick] The error message key 'video_thumbnail_tile' may be misleading when the option is provided via the 'vtt' shorthand. Consider updating the error messaging to dynamically reflect the actual key used.
guardIsUndef(vtt, "video_thumbnail_tile");

src/options/videoThumbnailTile.ts:16

  • [nitpick] Similar to the previous comment, the error message here uses 'video_thumbnail_tile.step' even when the shorthand 'vtt' is used. Consider aligning the error references with the input key to reduce potential confusion.
guardIsNotNum(vtt.step, "video_thumbnail_tile.step");

@11bit 11bit merged commit 1beb7e1 into main Apr 25, 2025
1 check passed
@11bit 11bit deleted the feat/update-video-thumbnail branch April 25, 2025 17:39
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.

Usage docs of imgproxy have been updated
1 participant
0