Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-17 Thread Ashley Sheridan
On Fri, 2009-01-16 at 20:38 -0500, Al wrote:
 
 port23user wrote:
  I have a site (done in CodeIgniter) where users can upload pictures.  When
  they upload a picture, I want to rotate it (rotating is optional, depending
  on how much cpu/ram I end up needing), resize it, and create a thumbnail. 
  Right now I'm doing it all in that order using GD, but I'm not sure if it's
  as efficient as it could be.  What's the best way to make this process
  faster?
 
 Imagick class.  Has more image manipulating functions than you'll ever use. 
 You 
 name, and there's function to do it.
 
GD is faster than ImageMagik, so if you can do it with that, keep on.
ImageMagick is only useful for the extra functionality it brings to the
table.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-17 Thread Kevin Waterson
This one time, at band camp, Al n...@ridersite.org wrote:

 Imagick class.  Has more image manipulating functions than you'll ever use. 
 You 
 name, and there's function to do it.

http://www.phpro.org/examples/Create-Thumbnail-With-GD.html
http://www.phpro.org/examples/GD-Thumbnail-Based-On-Image-Type.html
http://www.phpro.org/examples/Imagick-Thumbnail-From-Center.html

but _do_ checkout imagick it has all the good toys
http://www.phpro.org/tutorials/Imagick.html

Kevin

http://phpro.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-16 Thread Al



port23user wrote:

I have a site (done in CodeIgniter) where users can upload pictures.  When
they upload a picture, I want to rotate it (rotating is optional, depending
on how much cpu/ram I end up needing), resize it, and create a thumbnail. 
Right now I'm doing it all in that order using GD, but I'm not sure if it's

as efficient as it could be.  What's the best way to make this process
faster?


Imagick class.  Has more image manipulating functions than you'll ever use. You 
name, and there's function to do it.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-16 Thread mike
On Fri, Jan 16, 2009 at 5:38 PM, Al n...@ridersite.org wrote:

 Imagick class.  Has more image manipulating functions than you'll ever use.
 You name, and there's function to do it.

http://pecl.php.net/package/imagick/

it's very cool, although it does coredump often enough to where i had
to switch back to using system(/usr/bin/convert ...) and such. it
was somewhat inconsistent so it was hard to figure out and i had no
time to try to gather any input in hopes to make the package better.

i would -love- if it would work 100% properly. i try to bypass having
to do system() calls wherever possible. this would become an
-extremely- important and useful module to have as image manipulation
is extremely common (hell i would almost suggest php change course
from gd/packaged image stuff to leveraging imagemagick fully and put
more effort on bulletproof integration!) - much like i would recommend
curl over plain old fopen and such.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-15 Thread Nitsan Bin-Nun
Umm I don't think there is any benchmark tests that will suit your case, it
really depends on what you are going to do to the image. I suggest you to
benchmark and measure these things, I also know codeigniter has a built-in
image editing class, and as far as I remember you can choose in your config
files whether to use imagemagick or GD.

HTH,
Nitsan

On Thu, Jan 15, 2009 at 9:27 PM, port23user j...@boogly.net wrote:


 I have a site (done in CodeIgniter) where users can upload pictures.  When
 they upload a picture, I want to rotate it (rotating is optional, depending
 on how much cpu/ram I end up needing), resize it, and create a thumbnail.
 Right now I'm doing it all in that order using GD, but I'm not sure if it's
 as efficient as it could be.  What's the best way to make this process
 faster?
 --
 View this message in context:
 http://www.nabble.com/What%27s-the-best-way-to-rotate%2C-resize%2C-and-thumbnail--tp21485027p21485027.html
 Sent from the PHP - General mailing list archive at Nabble.com.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php