Re: imagemagick vs GD2?

Christian Stocker <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>

On 19.8.2005 12:25 Uhr, Simon Rönnqvist wrote:
> On Aug 14, 2005, at 13:41, Christian Stocker wrote:
> 
>> On 13.8.2005 16:47 Uhr, Simon Rönnqvist wrote:
>>
>>> I noticed that it's possible to use GD2 instead of imagemagick in the 
>>> newest dev version.
>>> In what ways does using imagemagick differ from using GD2 (exept for 
>>> GD2 being easier to install)?
>>>
>>
>> GD2 instead of imagemagick is used for the dynimages stuff, meaning the
>> automatic resizing of images from for example the gallery.
> 
> 
>   So are you suggesting that both imagemagick and GD2 should be installed?
> Or does this mean that you're abandoning imagemagick for GD2?

We prefer using imagemagick over gd2 and there are no plans to abandon
imagemagick. GD2 Support is only enabled in the dynimages/ part for
resizing pictures. There are other places in the code, where we still
rely on imagemagick

> 
>>>
>>> BTW. How does one compile command-line support for imagemagick? 
>>> Compiling with just --with-imagick won't do...
>>>
>>
>> That's the standard exec()/system() command line support, nothing
>> special has to be done for imagemagick on the php side, nothing has to
>> be compiled in. Although you do have to have imagemagick installed on
>> your server (and being allowed to call command-line functions). You can
>> test that with exec("convert foo.jpg bar.png")
> 
> 
>   Strange... Iv'e got imagemagick installed (and php compiled with
> --with-imagick), still it doesn't seem to work...

Forget about the --with-imagick thingie. That's for the imagick
*extension*, which we don't use. It has nothing to do with the
imagemagick commandline stuff.

> How do I enable the command line support?

That's enabled by default in PHP. Try if

<?php

exec("convert foo.jpg bar.png");

?>

works (just that). If not, try full paths. If still not, there's
something wrong. You can also try if convert works on just the
commandline (without PHP involved).

Also look into the apache errorlog, after you called some pictures via
dynimages/. Usually, there are some reports there, when something went
wrong with imagemagick call.

chregu



-- 
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] |  GPG 0x5CE1DECB
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.