1 parent ff6e317 commit fcc03f4Copy full SHA for fcc03f4
1 file changed
src/utils.js
@@ -218,7 +218,7 @@ export async function getImageMetadata(inputPath) {
218
// Use ImageMagick identify to get image metadata
219
const args = [
220
'-format',
221
- '%w %h %m %Q %[colorspace] %b',
+ '%w %h %m %Q %[colorspace] %B',
222
inputPath
223
];
224
@@ -252,7 +252,7 @@ export async function getImageMetadata(inputPath) {
252
result.format = {
253
filename: inputPath,
254
formatName: format,
255
- size: parseInt(filesize) || 0
+ size: parseInt(filesize, 10) || 0
256
};
257
258
// Image metadata
0 commit comments