<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Here's some random code I have from an unfinished project a couple years ago. Not sure how useful it is.<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>" accepts PNGs only "</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(picture isNil not) ifTrue: [</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>aForm := (PNGReadWriter createAFormFrom: picture contents) first.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>" create avatar and save under name avatarBlahblahPng "</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>thumbnail := PNGReadWriter on: (RWBinaryOrTextStream on: '').</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>thumbnail nextPutImage: (aForm scaledToSize: (Point x: 75 y: 75)).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>UGFileLibrary addFileNamed: 'avatar', user username, 'Png' contents: thumbnail contents.</div><div><br></div><div>RS</div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 25 Sep 2012 19:39:27 +0100<br>Subject: Re: [Seaside] image handling (thumbnails)<br>From: ocorrain@gmail.com<br>To: seaside@lists.squeakfoundation.org<br><br>Hi--<div><br></div><div>that sounds very interesting. &nbsp;Could you post some example code, or even a skeleton?</div><div><br></div><div>thanks</div><div><br></div><div>Tiarnán<br><br><div class="ecxgmail_quote">On Tue, Sep 25, 2012 at 6:20 PM, Francois Stephany <span dir="ltr">&lt;<a href="mailto:tulipe.moutarde@gmail.com">tulipe.moutarde@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">Smagick works well but beware that it blocks the VM when processing an image.<br>
<br>
For Wapict (images are sometimes ~50mb), I simply have an external queue with workers using OSProcess to convert images. Not terribly efficient but works well enough.<br>
<br>
To generate thumbnails of, say, profile pictures on a website, I don't really know what I would use. Have you found any pure-smalltalk image manipulation library?<div><div class="h5"><br>
<br>
<br>
<br>
On 25/09/12 08:42, Tiarnán Ó Corráin wrote:<br>
</div></div><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi--<br>
<br>
what's the recommended / popular way of doing basic image handling in<br>
Seaside? &nbsp;My requirements are to take uploaded images and make<br>
thumbnails in a few different sizes. &nbsp;I see some references so SMagick<br>
and to Smalltalk-local image handling around, but I'm wondering what<br>
general practice is among posters on this list.<br>
<br>
thanks<br>
<br>
Tiarnán<br>
<br>
--<br>
The law, in its majestic equality, forbids the rich as well as the poor<br>
to sleep under bridges, to beg in the streets, and to steal bread --<br>
Anatole France<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.<u></u>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>seaside</a><br>
<br><span class="ecxHOEnZb"><font color="#888888">
</font></span></blockquote><span class="ecxHOEnZb"><font color="#888888">
<br>
-- <br>
<a href="http://tulipemoutarde.be" target="_blank">http://tulipemoutarde.be</a><br>
CA: <a target="_blank">+1 778 558 3225</a><br>
BE: <a target="_blank">+32 65 709 131</a><br>
______________________________<u></u>_________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.<u></u>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.<u></u>org/cgi-bin/mailman/listinfo/<u></u>seaside</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>The law, in its majestic equality, forbids the rich as well as the poor to sleep under bridges, to beg in the streets, and to steal bread -- Anatole France<br>

</div>
<br>_______________________________________________
seaside mailing list
seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</div></div>                                               </div></body>
</html>