When I try to open the image for preview I get this message: "Windows Photo Viewer can't open this picture because the file appears to be damaged, corrupted, or too large.".
CLI command which I have used:
Code: Select all
magick convert -resize 1024 123_original.jpg 123_resized.jpg
Code: Select all
using (MagickImage image = new MagickImage(destinationImagePath))
{
if (newWidth < image.Width)
{
image.Resize(newWidth, 0);
}
image.Write(destinationImagePath);
}
This is the resized image: https://ufile.io/rlc04