Alternatives to System.Drawing for use with ASP.NET?
After several days of tracking down bizarre GDI+ errors, I’ve stumbled across this little gem on MSDN:
After several days of tracking down bizarre GDI+ errors, I’ve stumbled across this little gem on MSDN:
When outputting an image to the output stream, does it require temporary storage? I get the “generic GDI+” error that is usually associated with folder permission error when saving an image to file.
What is the fastest and more reliable way of generating thumbnails in .NET? I need to get any image, compress it in JPEG and resize it.
Declare these lines of code:
I have a function which first reads an image from disk, resizes it and then saves to another directory.
I have an ASP.NET C# page where i am resizing the images in a folder .I am using GDI+ to do this.I want to resize the images and replace with the old images.So when i am trying to save with the existing name ,Save method is throwing an error .But if i give a different name it is getting saved.But i want to have the same file name for the newly created resized image as i need to overwrite the existing file with the new file which is resized. Any idea how to go ahead.
My code is
I have search a lot to remove the unwanted space but could not found. I only found links which can used to remove black and white background space. But my background images can be anything. So, If I have these images,
Ok, I’m sorry, this is probably a noob question but I’m kinda stuck.
I need to generate an image dynamically, and after I read the tutorial here I realize i can use all the controls and layouts from WPF to generate my rendering, and then save it as a JPG.
The idea is to use this instead of GDI+, which is quite primitive.
Basically I am trying to render a simple image in an ASP.NET handler: