Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Which is better imagemagic or GD?

images php coding issues or problems here.

Moderators: macek, egami, gesf

Which is better imagemagic or GD?

Postby rikutuominen » Fri May 21, 2004 12:42 am

I am wondering which tecnics is better suited for my needs GD library or imagemagic?

I have following requirements:

1. Using ISP server not my own.
I need to install the support if not allready supported for the ISP.

2. Need to do following converting
size:
format: to CMYK or RGB
pic type: using jpg or png (or both)

3. What is the quality difference between GD and imagemagic on manipulated images

EDIT:
Interesting also would to know:
4. Is there mutch speed or processor load difference between the two
rikutuominen
New php-forum User
New php-forum User
 
Posts: 8
Joined: Fri May 21, 2004 12:30 am

Postby Oleg Butuzov » Fri May 21, 2004 9:23 am

1) Actualy almost all Hosting Service Providers have a imagick and GD.
2) GD - suported creation of gif (only hand made or old version), png and jpg files.
ImageMagick
ImageMagick is a robust collection of tools and libraries to read, write, and manipulate an image in many image formats (over 68 major formats) including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF.


3)
Code: Select all
function GDvsImageMagick($task)
   {
        $result =  "result  - ImageMagick won!";
    return $result ;
   }
   

have you understad it?

4) GD - is a bad way to process a big images, imagick dont ask more memory and proccesor power. imagick have own library at http://pecl.php.net, better manipulation result. etc.
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby rikutuominen » Fri May 21, 2004 2:31 pm

function GDvsImageMagick($task)
{
$result = "result - ImageMagick won!";
return $result ;
}



lol ye. what ever the input param is the result is allways the same:
:
result = "ImageMagick won!"; "
***************************************************

Seems that image magic is the way to go.
BUT ye there is alway the BUT ...

I just checked my host provider has GD2 support but not imagemagic.
Can imagemagic be used like exe or something. I dont have any admin rights to the server? :(

I presume the server is using Linux.
rikutuominen
New php-forum User
New php-forum User
 
Posts: 8
Joined: Fri May 21, 2004 12:30 am

Postby Oleg Butuzov » Fri May 21, 2004 11:34 pm

well if your hosting dont have imagemagick you can tri few things.

imagemagick used only in that way that you said.

parth to imagemagick at my RedHat Linux
/usr/X11R6/bin/convert


libs and extensions to work with imagemagick
Image::Transform pear.php.net
imagick peacl.php.net


P.S.
if its paid hosting you can ask admin about setupping image magick extensions and binaries - if its not exists there...
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby rikutuominen » Sun May 23, 2004 7:02 am

Pejone thanks for you responses :)

The last response I did not quite understand what wanted to say?

Example the:
Image::Transform pear.php.net
imagick peacl.php.net

I would rather try to find out a solution to get this to work without hosting company to do the install(if it is possible). I will check some documentations onimagemagic.

EDIT: I found a forum with install instruction. I'll check it out later.
http://s88567960.onlinehome.us/forums/i ... wtopic=222
rikutuominen
New php-forum User
New php-forum User
 
Posts: 8
Joined: Fri May 21, 2004 12:30 am

Postby rikutuominen » Sun May 23, 2004 1:26 pm

Good tutorial the
http://s88567960.onlinehome.us/forums/i ... wtopic=222

It give nice tutorial how to install imagemagic.
According to the thread installation can be done most case even if not having admin rights.

I do it later when I have more time. :)
rikutuominen
New php-forum User
New php-forum User
 
Posts: 8
Joined: Fri May 21, 2004 12:30 am

Postby Oleg Butuzov » Sun May 23, 2004 9:35 pm

rikutuominen wrote:Pejone thanks for you responses :)
Example the:
Image::Transform pear.php.net
imagick peacl.php.net


i mean that this pacages is a good shell for image magick.
first you can find at pear.php.net called Image::Transform.
second imagick you can find at pecl.php.net ? this is a extension for worikg with image magick? like GD in php.
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby rikutuominen » Tue May 25, 2004 2:30 am

Thanks for clarification.

I did even ask ht ehost provider for the imagemagic support but they sayed that it will not be installed.

Still saying it can be run using exec().

The link above shows how I can get it installed so I don't think I will get any problems.

Thank you for your help.
rikutuominen
New php-forum User
New php-forum User
 
Posts: 8
Joined: Fri May 21, 2004 12:30 am


Return to PHP coding => Images

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.