Playing with thumbnail generation in imagemagick
buffer to string
buffer fix
bad variable name
added error log
Fixed console log message