Skip to content

Conversation

@11bit
Copy link
Collaborator

@11bit 11bit commented Dec 17, 2025

Closes #67

Copy link

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 avifo (AVIF options) option, which allows redefining AVIF saving options, specifically controlling when chroma subsampling is applied to AVIF images.

  • Implements the avifo option with support for both string and object notation
  • Adds complete type definitions for AVIF subsample options (auto, on, off)
  • Provides comprehensive test coverage for all use cases including validation and error handling

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
src/types/avifOptions.ts Defines TypeScript types for AVIF options with support for both shorthand string and object notation with subsample property
src/options/avifOptions.ts Implements the test and build functions for the avifo option, including validation logic
tests/optionsBasic/avifOptions.test.ts Comprehensive test suite covering string/object notation, aliases, validation, and error handling
src/types/index.ts Integrates AvifOptionsPartial into the main Options type
src/options/index.ts Exports the avifOptions module
.changeset/small-views-battle.md Documents the new feature for the changelog

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@11bit 11bit merged commit a8fed05 into main Dec 17, 2025
7 checks passed
@11bit 11bit deleted the avifo branch December 17, 2025 07:55
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

2 participants