public static byte[] CreateAndResizePhotoFromJpeg(Jpeg photo, int maxDimension, string mimeType) { var stream = photo.SaveResized(maxDimension, 100, mimeType); return(stream.ToArray()); }
public static byte[] CreateAndSquarePhotoFromJpeg(Jpeg photo, int maxDimension) { var stream = photo.SaveSquared(maxDimension, 100); return(stream.ToArray()); }