Fixed typo in function def.
Gave convert -resize a percent instead of abs size
Changed function signature to reflect buffer API