You are right Rainer!
At last I ran phpinfo() on my MAMP (default) installation. It shows that
GD is installed:
'./configure' '--with-apxs2=/Applications/MAMP/Library/bin/apxs'
'--with-gd' '--with-jpeg-dir=/Applications/MAMP/Library'
'--with-png-dir=/Applications/MAMP/Library' '--with-zlib'
'--with-zlib-dir=/Applications/MAMP/Library'
'--with-freetype-dir=/Applications/MAMP/Library'
'--prefix=/Applications/MAMP/bin/php/php7.1.32'
'--exec-prefix=/Applications/MAMP/bin/php/php7.1.32'
'--sysconfdir=/Applications/MAMP/bin/php/php7.1.32/conf'
'--with-config-file-path=/Applications/MAMP/bin/php/php7.1.32/conf'
'--enable-ftp' '--enable-gd-native-ttf'
'--with-bz2=/Applications/MAMP/Library' '--with-ldap'
'--with-mysqli=mysqlnd' '--enable-mbstring=all'
'--with-curl=/Applications/MAMP/Library' '--enable-sockets'
'--enable-bcmath'
'--with-imap=shared,/Applications/MAMP/Library/lib/imap-2007f'
'--with-imap-ssl=/Applications/MAMP/Library' '--enable-soap'
'--with-kerberos' '--enable-calendar'
'--with-pgsql=shared,/Applications/MAMP/Library/pg' '--enable-exif'
'--with-libxml-dir=/Applications/MAMP/Library'
'--with-gettext=shared,/Applications/MAMP/Library'
'--with-xsl=/Applications/MAMP/Library' '--with-pdo-mysql=mysqlnd'
'--with-pdo-pgsql=shared,/Applications/MAMP/Library/pg'
'--with-mcrypt=shared,/Applications/MAMP/Library'
'--with-openssl=/Applications/MAMP/Library' '--enable-zip'
'--with-iconv=/Applications/MAMP/Library' '--enable-opcache'
'--enable-intl' '--with-tidy=shared'
'--with-icu-dir=/Applications/MAMP/Library' '--enable-wddx'
'--with-libexpat-dir=/Applications/MAMP/Library' '--with-readline'
'--with-mhash' '--with-iconv-dir=/Applications/MAMP/Library'
'--with-xmlrpc' 'YACC=/Applications/MAMP/Library/bin/bison'
It is difficult to expect that Bol Processor will some day require
features available in ImageMagick and not in GD. My imagination suggests
that the next serious graphic output should be 3D with objects floating
in space, or even 4D including time-travel. ;-)
The argument that we shouldn't oblige users to install a package that is
not supported by a default installation of PHP definitely makes the
decision.
At first I was feeling anxious that GD might be a "depleted" method that
some day will be abandoned, just like QuickDraw with Apple. Should it
happen, let us hope there will be code converters and maybe even
compatibility with current instructions. All we need in the current BP
is to draw (colored) lines, dotted lines, rectangles, filled rectangles,
and write text. We could almost do it on an Apple II :-)
So, I'll make a start with GD and let you know!
GD is also compaible with C, so code translation will become easy. All
you need to do when a graphic comes is send an instruction like
window.open() creating a window with 2 scrollbars, then execute the
graphic procedure. This should be multiplatform like window.open() in
Javascript…
I like to tell Anthony that things will get easy! Because I noticed the
commits he pushed last night: the type of annoying bug fixes that no
user will acknowledge because they don't yield a visible effect! Much
like a car mechanics has spent a day looking for a spare part knowing
that their client is going to complain that they have not "even" cleaned
the windscreen! ;-)
Bernard
Rainer Schuetz wrote on 28/07/2020 18:00:
> The info on that site that IM is somewhat better is likely outdated in terms of image-processing quality, and the fact that IM supports so many file-formats might not be relevant? I am surprised GD is not “just there” in you MAMP-install - have you looked? It came with both of mine installs. The advantage of that would be that no configuration/download etc is required at all (I bet the download functionality is a MAMP-pro function;-)) I wonder how similar the APIs are, many CMSes just support either...
>
> Best
> .r.
>
>> On 28. Jul 2020, at 17:50, Bernard Bel<ber...@gm...> wrote:
>>
>> I started looking for a graphics library using the same instructions in C and PHP. The "GD library" was the first one I had noticed. But MAMP offers a direct installation of ImageMagick = namely "Imagick" under PHP:
>>
>> https://en.wikipedia.org/wiki/ImageMagick
>>
>> Comparing the two options there are probably equivalent for the usage we anticipate: drawing lines and rectangles! There is a comparison on that page dating back to May 2020:
>>
>> https://blog.runcloud.io/imagemagick/
>>
>> So, I am following the path of ImageMagick unless there is a good reason to prefer GD…
>>
>> Bernard
>>
|