imagemagick in asp.net via command line
<p>I use Imagemagick in my ASP.NET webproject to generate thumbs via the commandline interface of imagemagick using a System.Diagnostics.Process</p>

<p>When a user visists a site, 20 media items are fetched from the database, and for each an thumb image gets generated, like this:</p>

<pre><code>var thumb = media.GetThumb(100, 100);
</code></pre>

<p>which starts a Process that uses the "convert" command from imagemagick</p>

<p>However, the performance could be better.</p>

<p>I know, caching the thumbs is a good option, and that is exactly what I am going to do.</p>

<p>However, I suspect, that starting a new Process for each image that is not cached is quite expensive. Any better like "reusing" a process or keeping imagemagick in memory and access this instance or what not?</p>
