[打包报错]Expected integer for height but received 597.8 of type number

Build Failed: Error: Error: Expected integer for height but received 597.8 of type number
at Object.invalidParameterError (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/utils/sharp/lib/is.js:101:10)
at Sharp. (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/utils/sharp/lib/resize.js:352:16)
at Array.forEach ()
at Sharp.extract (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/utils/sharp/lib/resize.js:347:38)
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor/page/build/texture-packer/packer.js:1:3171
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:2158:44
at eachOfArrayLike (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:504:13)
at eachOf (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:555:16)
at awaitable(eachOf) (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:208:32)
at Object.eachLimit (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:2220:16)
at EventEmitter. (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/main/ipc.js:1:4952)
at EventEmitter.emit (events.js:194:13)
at EventEmitter.emit (domain.js:469:20)
at WebContents. (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/electron.asar/browser/api/web-contents.js:390:13)
at WebContents.emit (events.js:194:13)
at WebContents.EventEmitter.emit (domain.js:469:20)
at WebContents.topLevelDomainCallback (domain.js:124:23)
--------------------
at Object.invalidParameterError (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/utils/sharp/lib/is.js:101:10)
at Sharp. (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/utils/sharp/lib/resize.js:352:16)
at Array.forEach ()
at Sharp.extract (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/utils/sharp/lib/resize.js:347:38)
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor/page/build/texture-packer/packer.js:1:3171
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:2158:44
at eachOfArrayLike (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:504:13)
at eachOf (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:555:16)
at awaitable(eachOf) (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:208:32)
at Object.eachLimit (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:2220:16)
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor/page/build/build-worker.js:1:5651
at wrapper (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:272:20)
at next (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:4584:24)
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:325:20
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor/page/build/build-worker.js:1:5309
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor/lib/builder/index.js:1:3834
at wrapper (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:272:20)
at next (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:4584:24)
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/node_modules/async/dist/async.js:325:20
at /Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.js:1:5913
at Gulp. (/Applications/CocosCreator/Creator/2.3.3/CocosCreator.app/Contents/Resources/app.asar/editor/core/gulp-build.js:1:23934)
at Object.onceWrapper (events.js:282:20)
at Gulp.emit (events.js:194:13)
at Gulp.EventEmitter.emit (domain.js:469:20)

编译的时候就报这样的错 请问 从哪能看到 相关的错误~~ 是因为 一张图高度不对么… 只能一张一张去找么?

解决了么?

图片的 trim 值不能填小数