Use ImageMagick to resize and serialize RGB values.