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
I exactly used default config but kept getting this error:
Error: Expected positive integer for height but received 2779.5 of type number
at Object.invalidParameterError (/node_modules/sharp/lib/is.js:135:10)
at Sharp.resize (/node_modules/sharp/lib/resize.js:287:18)
at sharpAddResizeSettings (/node_modules/strapi-plugin-image-optimizer/dist/server/services/image-optimizer-service.js:88:26)
at resizeFileTo (/node_modules/strapi-plugin-image-optimizer/dist/server/services/image-optimizer-service.js:51:21)
at generateImage (/node_modules/strapi-plugin-image-optimizer/dist/server/services/image-optimizer-service.js:42:21)
at /node_modules/strapi-plugin-image-optimizer/dist/server/services/image-optimizer-service.js:29:46
at Array.forEach (<anonymous>)
at /node_modules/strapi-plugin-image-optimizer/dist/server/services/image-optimizer-service.js:28:39
at Array.forEach (<anonymous>)
at /node_modules/strapi-plugin-image-optimizer/dist/server/services/image-optimizer-service.js:25:15
The text was updated successfully, but these errors were encountered:
It appears that you have resized the image and as a result the file specifies a pixel dimension with a decimal point.
Files containing decimal points will result in an error
I exactly used default config but kept getting this error:
The text was updated successfully, but these errors were encountered: