GD netpbm imagemagick what is better?

This is a discussion on GD netpbm imagemagick what is better? within the PHP Language forums, part of the PHP Programming Forums category; for to resize and copy original photos into a new directory and to use for a thumbnail gallery on the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-11-2004
nawfer
 
Posts: n/a
Default GD netpbm imagemagick what is better?

for to resize and copy original photos into a new directory and to use
for a thumbnail gallery on the web;

what is better: GD, Netpbm or imagemagick and why?

very thank
Reply With Quote
  #2 (permalink)  
Old 10-11-2004
Alvaro G. Vicario
 
Posts: n/a
Default Re: GD netpbm imagemagick what is better?

*** nawfer escribió/wrote (Mon, 11 Oct 2004 19:18:19 GMT):
> for to resize and copy original photos into a new directory and to use
> for a thumbnail gallery on the web;
>
> what is better: GD, Netpbm or imagemagick and why?


I particularly like ImageMagick because:

* My PHP version is too old for GD
* It's easy to use: I get thumbs with one line of code

I also suppose that being compiled software rather than interpreted it
should be faster but it's just a guess.

I've never used Netpbm.

--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Reply With Quote
  #3 (permalink)  
Old 10-11-2004
Chris Hope
 
Posts: n/a
Default Re: GD netpbm imagemagick what is better?

Alvaro G. Vicario wrote:

>> for to resize and copy original photos into a new directory and to use
>> for a thumbnail gallery on the web;
>>
>> what is better: GD, Netpbm or imagemagick and why?

>
> I particularly like ImageMagick because:
>
> * My PHP version is too old for GD
> * It's easy to use: I get thumbs with one line of code
>
> I also suppose that being compiled software rather than interpreted it
> should be faster but it's just a guess.


I use a combination of the two for the images I generate on the fly on one
of the sites I manage, as they are made large and then reduced.

I use the GD library to open the source background image and write the text
onto it, and then ImageMagick to scale it down to the correct size (yes,
this may sound inefficient ie "why don't you just make it small to start
with", but there are good reasons for doing it this way).

Initially I had GD resizing the image but then ran a bunch of tests and
ImageMagick is considerably faster at resizing than GD, at least for the
images I was using anyway.

--
Chris Hope - The Electric Toolbox - http://www.electrictoolbox.com/
Reply With Quote
  #4 (permalink)  
Old 10-12-2004
nawfer
 
Posts: n/a
Default Re: GD netpbm imagemagick what is better?

> * My PHP version is too old for GD
> * It's easy to use: I get thumbs with one line of code


Your code, have you take online?
Is there a good link with examples?
Reply With Quote
  #5 (permalink)  
Old 10-12-2004
provaands
 
Posts: n/a
Default Re: GD netpbm imagemagick what is better?

> I use a combination of the two for the images I generate on the fly on one
> of the sites I manage, as they are made large and then reduced.


1- You use solution 'on the fly' only if you have one or few images?
But that's advantage to use gd with imagemagick, respect to use only
the second?

> I use the GD library to open the source background image and write the text
> onto it, and then ImageMagick to scale it down to the correct size (yes,
> this may sound inefficient ie "why don't you just make it small to start
> with", but there are good reasons for doing it this way).
>
> Initially I had GD resizing the image but then ran a bunch of tests and
> ImageMagick is considerably faster at resizing than GD, at least for the
> images I was using anyway.


2- This is another solution for to use both.
Which are the advantages?

3- For only resize images into a new directory to use after for web
gallery, you use only imagemagick?

For all 3 solutions, where have you look codes?
Reply With Quote
  #6 (permalink)  
Old 10-12-2004
Alvaro G. Vicario
 
Posts: n/a
Default Re: GD netpbm imagemagick what is better?

*** nawfer escribió/wrote (Tue, 12 Oct 2004 09:17:52 GMT):
>> * It's easy to use: I get thumbs with one line of code

>
> Your code, have you take online?
> Is there a good link with examples?


Check the "Examples of ImageMagick Usage" link in the official site
http://www.imagemagick.org/

--
-+ Álvaro G. Vicario - Burgos, Spain
+- http://www.demogracia.com (la web de humor barnizada para la intemperie)
++ Las dudas informáticas recibidas por correo irán directas a la papelera
-+ I'm not a free help desk, please don't e-mail me your questions
--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:22 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0