Load BMP failed
#3769
-
I have a 32bit c program use this code.
in2 is NULL, so i call vips_error_buffer.I got error message like magick2vips: libMagick error: MemoryAllocationFailed "a2.bmp" @ error/bmp.c/ReadBMPImage/1001 How can i fix this error? |
Beta Was this translation helpful? Give feedback.
Answered by
jcupitt
Dec 4, 2023
Replies: 1 comment 11 replies
-
Hi @qtbui159, can you share the file that's failing to load? |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Imagemagick needs over 2gb of RAM to load your BMP, so it's just not possible on a 32-bit machine.
You need to either use a 64-bit machine, use smaller BMP images, or use another file format. PNG would be fine, for example.