Image manipulation package?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Image manipulation package?

John Thornborrow
Hello all,

I'd like to make a gallery, which auto-creates thumbnails for the
pictures upon upload.

Having used PHP's GD library extensively in the past, I was curious to
know which (if any) library is available for squeak, and which is
recommended by other Seasider's. :)

Many thanks,
John


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Image manipulation package?

Adrian Lienhard
Hi John,

We are successfully using ImageMagick. See Stefan's SqueakSource  
project: http://www.squeaksource.com/SqueakAddOns.html

Cheers,
Adrian

On Nov 13, 2007, at 15:36 , John Thornborrow wrote:

> Hello all,
>
> I'd like to make a gallery, which auto-creates thumbnails for the
> pictures upon upload.
>
> Having used PHP's GD library extensively in the past, I was curious to
> know which (if any) library is available for squeak, and which is
> recommended by other Seasider's. :)
>
> Many thanks,
> John
>
>
> Pinesoft Computers are registered in England, Registered number:  
> 2914825. Registered office: 266-268 High Street, Waltham Cross,  
> Herts, EN8 7EA
>
>
>
> This message has been scanned for viruses by BlackSpider  
> MailControl - www.blackspider.com
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Image manipulation package?

Ramon Leon-5
In reply to this post by John Thornborrow
> Hello all,
>
> I'd like to make a gallery, which auto-creates thumbnails for
> the pictures upon upload.
>
> Having used PHP's GD library extensively in the past, I was
> curious to know which (if any) library is available for
> squeak, and which is recommended by other Seasider's. :)
>
> Many thanks,
> John

I just use Squeak for this and keep the thumb in a Magritte
MAMemoryFileModel so it's easy to render, something like...

scaleImage: aFile width: aWidth height: aHeight
        | form |
        form := Form fromBinaryStream: (aFile contents
                                                asMIMEDocumentType: aFile
mimetype) contentStream
                                                binary.
        ^ (MAMemoryFileModel new)
                contents: ((form scaledToSize: aWidth @ aHeight)
                                        asMIMEDocumentType: 'image/jpeg')
contents
                                        asString;
                mimetype: 'image/jpeg';
                yourself

Ramon Leon
http://onsmalltalk.com 

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside