Skip to content

Fix ImageMagick metadata size parsing#6

Open
rissrice2105-agent wants to merge 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/imagemagick-size-bytes
Open

Fix ImageMagick metadata size parsing#6
rissrice2105-agent wants to merge 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/imagemagick-size-bytes

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • parse ImageMagick %b/%[b] size values with unit suffixes into bytes
  • use the parser for image metadata format.size
  • add unit tests for byte, KB, MB, and MiB values plus invalid inputs

Testing

  • pnpm exec mocha test/utils.test.js

Note: pnpm test test/utils.test.js runs the entire test glob in this repo; the wider suite fails locally because ffmpeg/ImageMagick binaries are not available on this Windows PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant