All thumbnails are saved in .png format. How can I keep the original image's format on thumbnails? If I edit on a .jpg image, I want the thumbnail also to be a .jpg image.
This is what I have tried with no success:
Roy
This is what I have tried with no success:
protected void RadImageEditor1_ImageSaving(object sender, ImageEditorSavingEventArgs args){ var thumbImage = args.Image.Clone(); var pathToThumbs = "~/Filarkiv/thumb/"; thumbImage.Resize(96, 96); var ms = new MemoryStream(); thumbImage.Image.Save(ms, args.Image.RawFormat); File.WriteAllBytes(String.Format("{0}{1}.{2}", MapPath(pathToThumbs), args.FileName, args.Image.Format), byte[])ms.ToArray());}Roy