I was receiving this error:
TypeError: Cannot read property 'geometry' of undefined
at null.callback (/home/patison/node_modules/imagemagick/imagemagick.js:155:26)
at Accumulator.finish (/home/patison/node_modules/imagemagick/imagemagick.js:60:55)
at ChildProcess. (/home/patison/node_modules/imagemagick/imagemagick.js:85:11)
at ChildProcess.EventEmitter.emit (events.js:91:17)
at Process._handle.onexit (child_process.js:674:10)
The problem was the spaces in front of the output file that the method was parsing. Fixed now.
added code to remove empty space that was producing an error: Croppin…
…g error (TypeError: Cannot read property geometry of undefined)
+1 for this, needed for me too (Windows, ImageMagick 6.8.6-3 2013-06-25 Q16)
It seems like the maintainers are not really merging pull requests. Maybe I need to contact them to see if I can help.
I added it by hand locally, but "crop" still doesn't work - needed property "geometry" is missing in "identify" data... So i'm going to adapt it for my need.
Huh! I had the same problem with crop but now it works. Check that method and print the output. I am sure that value is coming unless your ImageMagick is too old.
changed the path to convert and identify
removed the relative paths
created a new version of identify - gif issues with huge metadatas