Database Reference
In-Depth Information
The GD2 library
phpMyAdmin uses some internal functions to create the thumbnails. These
functions need the GD2 library to be present on our PHP server.
phpMyAdmin can detect the presence of the correct GD2 library, but this detection
takes some time. It also takes place not once per session, but almost every time an
action is taken in phpMyAdmin.
Setting the
$cfg['GD2Available']
parameter in
config.inc.php
to its default
value
'auto'
indicates that the detection of the library's presence and version
is needed.
If we know that the GD2 library is available, setting
$cfg['GD2Available']
to
yes
will make execution quicker. If the GD2 library is not available, you are
recommended to set this parameter to
no
.
To find out which GD2 library we have on the server, we can go to phpMyAdmin's
homepage and click
Show PHP information
. If this link is not present, we have to
set the
$cfg['ShowPhpInfo']
parameter to
true
. We then look for a section titled
gd
and verify which version is identified.
The JPEG and PNG libraries
Our PHP server needs to have support for the JPEG and PNG images if we or our
users want to generate thumbnails for those types of images. For more details, please
refer to
http://php.net/manual/en/ref.image.php
.
Memory limits
On some PHP servers, the default value in
php.ini
for
memory_limit
is 8 MB.
This is too low for correct image manipulation because the GD functions used to
produce the final images need some working memory. For example, in one test, a
value of 11 MB in
memory_limit
was needed to generate the thumbnail from a 300
KB JPEG image.
Search WWH ::
Custom Search