You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defines how imgproxy will resize the source image. Supported resizing types are:
fit: resizes the image while keeping aspect ratio to fit a given size.
fill: resizes the image while keeping aspect ratio to fill a given size and crops projecting parts.
fill-down: the same as fill, but if the resized image is smaller than the requested size, imgproxy will crop the result to keep the requested aspect ratio.
force: resizes the image without keeping the aspect ratio.
auto: if both source and resulting dimensions have the same orientation (portrait or landscape), imgproxy will use fill. Otherwise, it will use fit.
review all other type definitions and compare with current imgproxy API definition
The text was updated successfully, but these errors were encountered:
tibohei
changed the title
update typescript resizing type to match current imgproxy
update typescript resizing type to match current imgproxy API
Jul 5, 2023
This repo isn't actively maintained anymore, but I just updated it to modernise it a bit (d3bbd16). I'm not a maintainer of the NPM repository, but I've asked for it to be deployed. This would include this change as well.
review all other type definitions and compare with current imgproxy API definition
Didn't have time to do this, but feel free to create a PR.
The typescript type
ResizingType
does not match current imgproxy API definition. This should be corrected.Expected Behavior
Typescript types should align with imgproxy API interface
Current Behavior
This library defines
ResizingType
asThe most recent imageproxy API documentation defines
resizing_type
asPossible Solution
src/types.ts
The text was updated successfully, but these errors were encountered: