Composing multi function imagemagick command for resize, adding background, changing greyscale, apply image-kernel, get pixel value mean
I want to resize, add a background, change to grayscale, apply an image-kernel for finding edges, and lastly get the mean value of pixels in the image.