Nicer looking image edit in podcast add form

This commit is contained in:
Fergal Moran
2018-04-25 22:18:26 +01:00
parent 210b209b5c
commit 6bd116985f
4 changed files with 46 additions and 31 deletions

View File

@@ -77,6 +77,9 @@ namespace PodNoms.Api.Controllers {
private (string, string) __todo_convert_cache_file(string cacheFile, string prefix) {
// return (cacheFile, "jpg");
var outputFile = Path.Combine(Path.GetTempPath(), $"{prefix}.png");
if (System.IO.File.Exists(outputFile))
System.IO.File.Delete(outputFile);
using (Image<Rgba32> image = Image.Load(cacheFile)) {
image.Mutate(x => x
.Resize(1400, 1400));