Re: imagemagick vs GD2?
Christian Stocker <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On 20.8.2005 20:13 Uhr, Simon Rönnqvist wrote:
> On Aug 20, 2005, at 13:06, Christian Stocker wrote:
>
>> On 19.8.2005 12:25 Uhr, Simon Rönnqvist wrote:
>>
>>> 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
>
>
> I guess that this also means that GD is not required and probably
> never will be, right?
probably :)
>>> How do I enable the command line support?
>>>
>>
>> That's enabled by default in PHP. Try if
>> <?php
>> exec("convert foo.jpg bar.png");
>> ?>
>
>
> I tried this, well actually it turned out that my version of
> imagemagick didn't have support for jpeg nor png combiled in by default.
> Well, once that was fixed this experiment you suggested worked. But
> still the Flux CMS gallery acts the same...
> If I visit: http://www.strengsong.com/gallery/
ok, you hit a "bug". Since you installed the imagick extension, it tried
to use that, which is not tested since a long time on our side (and no
immediate plans for doing so). So I commented out that code in
inc/bx/php/ResizeImage.php
Can you try again?
chregu
>
> I get this in the Apache error-log:
> [client 80.221.22.17] Warning[2] imagick_iserror() expects parameter 1
> to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 274, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_setcompressionquality() expects
> parameter 1 to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 283, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_scale() expects parameter 1 to
> be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 284, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_failedreason() expects
> parameter 1 to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 286, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_faileddescription() expects
> parameter 1 to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 287, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_iserror() expects parameter 1
> to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 274, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_setcompressionquality() expects
> parameter 1 to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 283, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_scale() expects parameter 1 to
> be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 284, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_failedreason() expects
> parameter 1 to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 286, referer:
> http://www.strengsong.com/gallery/
> [client 80.221.22.17] Warning[2] imagick_faileddescription() expects
> parameter 1 to be resource, boolean given in
> /home/streng/www/inc/bx/php/ResizeImage.php at line 287, referer:
> http://www.strengsong.com/gallery/
>
> The revision I presently use is 5211
> of https://svn.bitflux.org/repos/public/bxcmsdemo (the newest one, but
> the same thing happened with a slightly older too)
> I changed branch for this installation from the stable one to this a
> while ago, hope it doesn't involve any complications.
>
> BTW. From one thing to another, i noticed that entering an URI which
> points a non-existant page within the gallery causes an error.
> Try: http://www.strengsong.com/gallery/whatever/
>
> cheers, Simon
--
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