Part of the improvements to Cropper was to save a thumbnail of the image in the CropSet file. This meant loading was dramatically improved as it didn't have to load the original and make a thumbnail each time.
However, it seems an image loaded using the FromStream method will keep the stream alive during the life time of the image (see link)
http://support.microsoft.com/Default.aspx?id=814675
So, attempting to save it to another stream will cause the Generic GDI+ error
.
The way around, as suggested by MS, is to create a copy of the image. They have given two ways of doing this, I don't know which is best, but I've chosen the first.
| < | February 2012 | |||||
|---|---|---|---|---|---|---|
| S | M | T | W | T | F | S |
| 29 | 30 | 31 | 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 1 | 2 | 3 |
Add-ins AJAX ASP.NET MVC Browsers C# Caching Compression CORS CSS CV Data Database DependencyResolver Development Entity Framework Error Handling File Upload Forms GDI+ HTML HTML Editor HTTP Interfaces JavaScript JQuery MCE MetadataProvider MSBuild Numbers Objects Patterns Progressive Enhancement Projects Publish Regex Resources Security SEO SMTP Source Control Strings Sub-Collections TDD Tools Twitter User Interface WCF Web Development WHS WMC XLinq XML
11 hours ago
verge
Microsoft teases Windows 8 'Consumer Preview' with Bing betta fish site http://t.co/lcJICazH