mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-25 02:39:47 +00:00
Nicer looking image edit in podcast add form
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user