public void ResizePicture(string filename, ImageGeometry geometry) { _processor.Resize( _storage.GetPicturePath(filename), _storage.GetPicturePath(filename, geometry), geometry) .Wait(); }
public async Task<ImageGeometry> Resize(string filename, string target, ImageGeometry newSize) { await ExecuteProcess("convert", String.Format("-resize {0}x{1} \"{2}\" \"{3}\"", newSize.Width, newSize.Height, filename, target)); return await GetGeometry(target); }
public string GetPicturePath(string filename, ImageGeometry geometry) { return GetPicturePath(filename, "_" + geometry.ToString()); }