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.
| < | May 2012 | |||||
|---|---|---|---|---|---|---|
| S | M | T | W | T | F | S |
| 29 | 30 | 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 | 30 | 31 | 1 | 2 |
Add-ins AJAX ASP.NET MVC Browsers C# Caching CodeDom Compression CORS CSS CV Data Database DependencyResolver Development Dynamic Entity Framework Error Handling Extend 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 Templates Tools Twitter User Interface WCF Web Development WHS WMC XLinq XML
1 hours ago
TheNextWeb
Bing's search API now live on the Windows Azure Marketplace http://t.co/utX8uOuG by @alex
15/05/2012
WindowsAzure
Announcing the MEET Windows Azure Event! Streamed online June 7th. Register at http://t.co/bObzTAuL #MEETAzure #WindowsAzure
One hour ago
commadelimited
Buy the @amazon Kindle version of mine and @cfjedimaster's @jquerymobile book for $10 today: http://t.co/PWRZ2dkd
just now
kamoswin
Microsoft Corporation : Pariveda Solutions Builds Cloud Applications on Windows Azure - 4-traders... http://t.co/M5o5TxdL #cloud #azure
just now
TeChameleon
RT @msPartner: Bob Kelly offers details on Microsoft’s #cloud strategy: http://t.co/GECtwycA via @rcpmag #Azure #mspartner ^NW