On Fri, May 1, 2009 at 8:22 AM,  <span dir="ltr">&lt;<a href="mailto:kakimoto@tpg.com.au">kakimoto@tpg.com.au</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">&gt; Any suggestions for a sane(r) approach? As it&#39;s a plugin I&#39;ve used I<br>
&gt; might be able to find some tuits to experiment with an<br>
&gt; implementation.<br>
<br>
</div>Are there many of us using ImageMAgick in their apps?<br>
<br>
 I&#39;m just tempted to use Catalyst::Request and<br>
Image::Magick::Thumbnail::Fixed or Image::Resize directly (ie not as a<br>
Catalyst plugin).<br>
</blockquote><div><br><br>I wouldn&#39;t touch something like this as a plugin, period.<br><br>My method is to have what essentially amounts as a file type dispatcher which takes incoming uploads passed in, then redirects to whatever is the most appropriate model class.<br>
</div></div><br>I have a Model::Upload, as well as Model::Upload::Image and Model::Upload::Video -- in the controller, I just do:<br>  $c-&gt;model(&#39;Upload&#39;)-&gt;process( $upload );<br><br>Put all the important bits in the model, and let it go from there.  Depending upon how you associate stuff with the users and the DB changes.  My method is to actually allow multiple Models, so I have a User processor that runs after the Image/Video processor -- and that is what stores the associations in the DB.<br>
<br>I am also actively trying to release this set of modules, but ... still some kinks to work out before it is releasable.  However, this strategy has worked very well for me.<br><br>-J<br>