Hi,
I want to resize an image on my server.
I tried a lot of samples... but all the time it does resize and saves the
images but I can not view the image insize a webbrowser.
With an imageviewer (desktop application) I can view the image. I believe
there is something wrong with the maximum colors...
This is what I have now...
Image originalBitmap = Image.FromFile("C:\temp\image.jpg", true);
Image result = originalBitmap.GetThumbnailImage(150, 100, null,
IntPtr.Zero);
result.Save("C:\temp\resize.jpg");
Hope that someone have a good working sample. I want to read in images...
jpg and then resize (and viewable in browser).
Thanks!
Arjen
Arjen - 21 Aug 2006 13:34 GMT
Hmmm, solves the problem.
result.Save(directory + "resize.jpg",
System.Drawing.Imaging.ImageFormat.Jpeg);
Tnx 2 myself,
Arjen
> Hi,
>
[quoted text clipped - 15 lines]
> Thanks!
> Arjen