You may be interested to know that we've just published a symfony
plugin called sfDoctrineJcroppablePlugin which probably does what the
original poster was looking for.

It's a behaviour for your models which adds image handling & visual
cropping on the backend and can be used with the admin generator. It
uses the Jcrop javascript library to provide a user interface for
selecting the crop and utilises the sfImageTransformPlugin to create
the crops. You're able to specify multiple sizes of generated images
per crop and it allows easy access to the cropped images for the front
end.

Please check it out here:

http://www.symfony-project.org/plugins/sfDoctrineJCroppablePlugin

We'd be interested to hear any feedback.

Thanks

Rich

On Sep 30, 2:56 pm, david <da...@inspiredthinking.co.uk> wrote:
> There's a couple of jQuery libs for the client side (browser) and this one  
> is pretty decent:  
> http://www.webresourcesdepot.com/jquery-image-crop-plugin-jcrop/
>
> There's a couple of articles about how to use it with PHP:
> 1)http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop-v11/
> 2)http://www.webmotionuk.co.uk/php-jquery-image-upload-and-crop/
>
>
>
> On Wed, 30 Sep 2009 15:48:11 +0200, Tom Boutell <t...@punkave.com> wrote:
>
> > The original poster was looking for a tool to visually decide what
> > part of the image you want to crop, primarily. At least I'm pretty
> > sure that's what they wanted.
>
> > As far as back ends that do the actual image rendering, gd-based and
> > imagemagick-based PHP code are pretty much equally effective as far as
> > simple image cropping goes. They are both written in C. gd's
> > imagecreate(), imagecreatetruecolor(), etc. functions are wrappers for
> > the gd functions. There is no truly "PHP based crop/resize" image
> > rendering code that I'm aware of - that would be INCREDIBLY slow. (:
>
> > netpbm (via pkImageConverter) is a good choice if you are concerned
> > about the PHP memory limit, as it never loads an entire image into
> > memory; simple image conversion, cropping and scaling don't really
> > require that, so it's a waste of memory to use gd or imagemagick for
> > those things.
>
> > As of a week or two ago you can now use pkImageConverter with gd if
> > you don't have netpbm on a particular box (check out the trunk to get
> > this code). A good compromise if you want to develop on Windows and
> > release on Linux.
>
> > On Sep 29, 10:53 pm, Casey <casey.cam...@gmail.com> wrote:
> >> The php imagemagick library is very effective and its a lot faster
> >> than php based crop/resize because it is written c.  You might not
> >> have imagemagick installed, so check with php -i (php -i | grep
> >> imagick).  If you see imagick, its installed.  There is good
> >> documentation at the php.net site.  I have always found imagemagick to
> >> be the fastest and most flexible php extension to manipulate images.
>
> >>http://us.php.net/manual/en/book.imagick.php
>
> >> On Sep 29, 7:26 pm, Sid Bachtiar <sid.bacht...@gmail.com> wrote:
>
> >> > Sorry, didn't realize he asked for all in one cropping rather than a
> >> > library to crop/resize images. eCrop is what I use too.
>
> >> > On Wed, Sep 30, 2009 at 3:15 PM, Jake Barnes <lkrub...@geocities.com>  
> >> wrote:
>
> >> > > On Sep 29, 8:36 pm, Sid Bachtiar <sid.bacht...@gmail.com> wrote:
> >> > >> Linux box only (using netpbm,  
> >> fast):http://www.symfony-project.org/plugins/pkImageConverterPlugin
>
> >> > >> Linux and Windows (using GD,  
> >> slower):http://www.symfony-project.org/plugins/sfThumbnailPlugin
>
> >> > > sfThumbnail facillitates cropping? I did not know that. Somehow I  
> >> read
> >> > > through the docs on sfThumbnail and missed that. I use sfThumbnail  
> >> to
> >> > > resize my images, but I didn't realize it could crop.
>
> >> > > I should say, I just tried the eCrop plugin and it works great. Very
> >> > > simple to use, very straightforward.
>
> >> > >> On Wed, Sep 30, 2009 at 1:26 PM, lawrence <lkrub...@geocities.com>  
> >> wrote:
>
> >> > >> > A client has asked me to build an image gallery. I'm curious  
> >> what code
> >> > >> > or plugins Symfony developers typically use for this (assuming  
> >> there
> >> > >> > is any typical usage).
>
> >> > >> > Have developers here used the eCropPlugin, and do you have an  
> >> opinion
> >> > >> > about it?
>
> >> > >> >http://www.symfony-project.org/plugins/eCropPlugin/prototype
>
> >> > >> --
> >> > >> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>
> >> > --
> >> > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>
> --
> Using Opera's revolutionary e-mail client:http://www.opera.com/mail/

--~--~---------~--~----~------------~-------~--~----~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to