"Error: Input buffer has corrupt header:" for PNG with large XMP metadata
See original GitHub issueWhat is the output of running npx envinfo --binaries --languages --system --utilities
?
npx envinfo --binaries --languages --system --utilities npx: installed 1 in 2.706s
System: OS: macOS Mojave 10.14.5 CPU: (8) x64 Intel® Core™ i7-7920HQ CPU @ 3.10GHz Memory: 1.36 GB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.11.1 - /usr/local/bin/node npm: 6.11.3 - /usr/local/bin/npm Utilities: Make: 3.81 - /usr/bin/make GCC: 10.14. - /usr/bin/gcc Git: 2.20.1 - /usr/bin/git Clang: 1001.0.46.4 - /usr/bin/clang Subversion: 1.10.3 - /usr/bin/svn Languages: Bash: 3.2.57 - /bin/bash Java: 1.8.0_111 - /usr/bin/javac Perl: 5.18.4 - /usr/bin/perl PHP: 7.1.23 - /usr/bin/php Python: 2.7.10 - /usr/bin/python Ruby: 2.3.7 - /usr/bin/ruby
What are the steps to reproduce?
Trying to resize a PNG with large XMP metadata, fails with generic “Input buffer has corrupt header”. If I use imagemagick convert -strip
the file it resizes fine.
What is the expected behaviour?
Resize and ignore/strip the metadata
Are you able to provide a standalone code sample, without other dependencies, that demonstrates this problem?
Are you able to provide a sample image that helps explain the problem?
Not sure if able to provide but the image has ~15MB of XMP metadata and ~4MB of image data. When stripped the 4MB image resizes fine.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
v0.24.0 is now available with a prebuilt libvips v8.9.0. Thanks for reporting this!
awesome, thanks for the feedback. Any idea when that may get released?