Comparing version 0.7.0 to 0.7.1
@@ -197,2 +197,3 @@ #!/usr/bin/env node | ||
apply: (context, _pipe, background2) => { | ||
background2 = String(background2); | ||
if (!background2.startsWith("#") && (HEX_RE.test(background2) || SHORTHEX_RE.test(background2))) { | ||
@@ -218,3 +219,4 @@ background2 = "#" + background2; | ||
args: [VArg, VArg, VArg], | ||
apply: (context, pipe, width2, height2) => { | ||
apply: (context, pipe, size) => { | ||
const [width2, height2] = String(size).split("x").map((v) => Number(v)); | ||
return pipe.resize(width2, height2, { | ||
@@ -258,4 +260,6 @@ fit: context.fit, | ||
args: [VArg], | ||
apply: (_context, pipe, angel) => { | ||
return pipe.rotate(angel); | ||
apply: (context, pipe, angel) => { | ||
return pipe.rotate(angel, { | ||
background: context.background | ||
}); | ||
} | ||
@@ -262,0 +266,0 @@ }; |
{ | ||
"name": "ipx", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"repository": "unjs/ipx", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -49,5 +49,5 @@ # IPX | ||
Resize to `200px` using `embed` method and change format to `webp`: | ||
Resize to `200x200px` using `embed` method and change format to `webp`: | ||
`http://localhost:3000/embed,f_webp,s_200/static/buffalo.png` | ||
`http://localhost:3000/embed,f_webp,s_200x200/static/buffalo.png` | ||
@@ -54,0 +54,0 @@ ### Modifiers |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51648
1571