Skip to content

Add pdf and jxl formats#59

Merged
11bit merged 4 commits into
mainfrom
feat/more-formats
Jul 7, 2025
Merged

Add pdf and jxl formats#59
11bit merged 4 commits into
mainfrom
feat/more-formats

Conversation

@11bit

@11bit 11bit commented Jul 7, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@11bit 11bit force-pushed the feat/more-formats branch from 33193c7 to 93e9530 Compare July 7, 2025 09:02
@11bit 11bit requested a review from Copilot July 7, 2025 09:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for two new formats—JPEG XL (jxl) and PDF (pdf)—to imgproxy-js-core.

  • Extended the SkipProcessing and Format type definitions to include jxl and pdf.
  • Updated the options validators in src/options so that jxl and pdf are recognized.
  • Added a changeset entry to document the new formats.

Reviewed Changes

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

Show a summary per file
File Description
src/types/skipProcessing.ts Added "jxl" to the SkipProcessing union
src/types/format.ts Updated doc comments and added "jxl"/"pdf" to Format
src/options/skipProcessing.ts Included "jxl" in the extNames validation array
src/options/format.ts Added jxl and pdf keys to the formatValues map
.changeset/lovely-streets-write.md Documented the addition of pdf and jxl formats
Comments suppressed due to low confidence (2)

src/options/skipProcessing.ts:9

  • Add unit tests to cover the new jxl extension in skipProcessing so that validation and parsing behave as expected.
  "jxl",

src/options/format.ts:16

  • Add or update unit tests for jxl and pdf in the formatValues validation to ensure both formats are correctly accepted and handled.
  pdf: true,

@11bit 11bit merged commit 6bc44e8 into main Jul 7, 2025
1 check passed
@11bit 11bit deleted the feat/more-formats branch July 7, 2025 09:10
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.

2 participants