Skip to content

Conversation

@xsynaptic
Copy link
Contributor

Extends the IPX provider with additional operations supported by ipx/sharp. This adds typing for resize/crop (and the associated position/post and fit params) and some effects: rotate, flip/flop, blur/sharpen, grayscape, background/b.

Example URLs:

# Crop a region
/_ipx/crop_100_50_300_200,f_auto/image.jpg

# Resize with fit and position
/_ipx/s_800x600,fit_cover,position_top,f_auto/image.jpg

# Apply effects
/_ipx/w_300,rotate_90,blur_5,grayscale_true,f_auto/image.jpg

These operations pass through to ipx unchanged via operationsGenerator; no mapping is needed. This follows the same pattern as imgix and cloudinary providers which expose provider-specific operations beyond the standard width/height/quality/format.

Test coverage has also expanded to cover some of these new params.

@changeset-bot
Copy link

changeset-bot bot commented Jan 12, 2026

🦋 Changeset detected

Latest commit: aa24c12

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
unpic Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Owner

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

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

Thanks!

@ascorbic ascorbic merged commit b46f693 into ascorbic:main Jan 13, 2026
5 checks passed
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