static public ImagerService Create(byte[] data)
        {
            var result = new ImagerService();

            result.Load(data);
            return(result);
        }
        static public ImagerService Create(string filename)
        {
            var result = new ImagerService();

            result.Image = Image.FromFile(filename);
            return(result);
        }
        static public ImagerService Create(Image img)
        {
            var result = new ImagerService();

            result.Image = img;
            return(result);
        }
        static public byte[] ResizeImage(byte[] image, int maxSize, int quality = 90, string mime_type = "image/png")
        {
            if (image == null || image.Length <= 0)
            {
                return(null);
            }

            return(ImagerService.Create(image).Resize(maxSize).Save(quality, mime_type));
        }