Cedric,

As I mentioned to Tom, you might want to have a look at IMagick (PHP
wrapper for ImageMagick). It's far superior to GD, IMO.

http://www.php.net/imagick

jonathan

On Aug 22, 1:36 am, Cédric Sadai <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I did some similar work recently, I noticed a certain number of
> limitations with sfThumbnailPlugin, for GD at least:
>
> - doesn't handle well the difference between portrait and landscape
> format. If my thumb size is 400*300 and the pic is a portrait, I want
> it to be automatically set to 300*400.
> - doesn't handle well the scale option. It scales anyway, even when
> set to false.
> - doesn't handle well the squarize option, of course because it's
> impossible to squarize well if you scale (other words, you HAVE to
> crop to make a good square).
>
> All these things are more complicated than it seems, it's some good
> math actually. I've rewritten everything, and will certainly propose a
> plugin/patch out of it, for the GD part.
>
> What's your problem exactly?
> cedric
>
> On Aug 21, 2:38 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
>
> > I've just come across this [Prototype JavaScript Image Cropper UI][1].
> > It's quite cool and by all accounts *seems* to be pretty good across
> > multiple browsers.
>
> > My questions is: has anyone written any backend stuff to process the
> > image crop? I've made some (messy) extensions to the sfThumbnail plugin
> > and got it working fine, but I was wondering if anyone had done a better
> > job.
>
> > If not, I'll try and package it all into a separate plugin. I'm happy to
> > do the GD part but I have absolutely no experience of ImageMagik.
>
> > Tom
>
> > [1]http://www.defusion.org.uk/demos/060519/cropper.php
> > --
> > Tom Haskins-Vaughan
> > Temple Street Media: Design and Development for the Web
> > [EMAIL PROTECTED] |www.templestreetmedia.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to