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
Thanks for the feedback! I refactored the directive and made it both easier to read but more importantly fixed this issue. ìmagetools-core@2.7.0, vite-imagetools@3.6.1 or rollup-plugin-imagetools@2.2.1 include this fix.
I encountered errors that sharp not accepted width/height number such like 10.475xxxx. I think this two lines should use
Math.round
too:https://github.com/JonasKruckenberg/imagetools/blob/main/packages/core/src/transforms/resize.ts#L82
https://github.com/JonasKruckenberg/imagetools/blob/main/packages/core/src/transforms/resize.ts#L87
(I intended to contribute but has no time to write tests, sorry).
The text was updated successfully, but these errors were encountered: