Mar 14, 2010 04:53 AM|DigiMortal|LINK
Be very careful with image processing on server-side. Make sure you clean-up all resources right after you don't need them. And also make sure you handle exceptions correctly. Don't let exceptions break your methods run before you have disposed all disposable
objects and released all unmanaged resources.
As you may have faulty images your current code is open to memory wasting because I can see no exception handling there. You should also use using() blocks for disposable objects so they get disposed automatically.