hi Guys
I have an upload script that uploads and saves images to a folder.
PROBLEM:
I want to add different colour schemes to the images and display to the user in an array or images.
here is my script
using (Image<Rgba32> image = SixLabors.ImageSharp.Image.Load(Path.Combine(path, pic.FileName))) { image.Mutate(ctx => ctx .Resize(image.Width / 2, image.Height / 2) .Polaroid()); //Add colour format image.Save(fileName);// .Save to disk }
.Polaroid() above is a colour format, others abound e.g. .GrayScale() , .Glow() , .OilPaint etc (I want to give up to 10 options to the user)
My question is thus
1. How do I loop through each one, one by one then assign them to a variable ?
2. Or would it be better to save them to disk and then retrieve and display back to the user ? (Bearing in mind option 2 could be resource intensive)
thank you