Re: Automatic Thumnail creation doesnt work
Posted: 30 Jul 2008, 16:47
Hello there.
I spend hole day on this issue. Besides that it's important that for the GD library how php is compiled and how it's written. JPEG and JPG format seems to be not to easy. Only when I do a multi add and upload from without phoca gallery DIR and then create the image and thumbnail it functions with a error! Then you have to stop the autamatic thumbnail creation and set it back again to upload the next picture. Altough it gives a error ONE thumnail and picture ar uploaded correctley. The single upload gives the fatal error line and in the multi upload you get a joomla like error screen. I have some printscreens of this phenomenon, may I could sent them to Phoca if you wish to see them. Maybe this will lead to a solution. I have a workaround now, but it is (to) time consuming. I like your product very much, i think it's worth investing some time in it.
Please let me know if this is any help.
Greetings Richard.
Information from the PHP site: http://nl3.php.net/manual/en/image.installation.php
Installation
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
Enhance the capabilities of GD to handle more image formats by speci\ying the --with-XXXX configure switch to your PHP configure line.
Supported image formats Image Format Configure Switch
jpeg-6b To enable support for jpeg-6b add --with-jpeg-dir=DIR.
png To enable support for png add --with-png-dir=DIR. Note, libpng requires the zlib library, therefore add --with-zlib-dir[=DIR] to your configure line.
xpm To enable support for xpm add --with-xpm-dir=DIR. If configure is not able to find the required libraries, you may add the path to your X11 libraries.
Note: When compiling PHP with libpng, you must use the same version that was linked with the GD library.
Enhance the capabilities of GD to deal with different fonts by specifying the --with-XXXX configure switch to your PHP configure line.
Supported font libraries Font library Configure Switch
FreeType 1.x To enable support for FreeType 1.x add --with-ttf[=DIR].
FreeType 2 To enable support for FreeType 2 add --with-freetype-dir=DIR.
T1lib To enable support for T1lib (Postscript Type 1 fonts) add --with-t1lib[=DIR].
Native TrueType string function To enable support for native TrueType string function add --enable-gd-native-ttf.
add a note add a note User Contributed Notes
Installation
mike at clove dot com
18-Apr-2008 06:40
jpeg [jpg] file processing doesn't work unless you build php with '--with-jpeg-dir=<path to jpeg library>'.
It still doesn't work unless <path to jpeg library> points to the directory holding the directory holding the library unless libjpeg.<whatever> is in either /usr/lib or /usr/local/lib. For instance, on a mac with libjpeg.a installed via mac ports, you need '/opt/local' rather than '/opt/local/lib'
I spend hole day on this issue. Besides that it's important that for the GD library how php is compiled and how it's written. JPEG and JPG format seems to be not to easy. Only when I do a multi add and upload from without phoca gallery DIR and then create the image and thumbnail it functions with a error! Then you have to stop the autamatic thumbnail creation and set it back again to upload the next picture. Altough it gives a error ONE thumnail and picture ar uploaded correctley. The single upload gives the fatal error line and in the multi upload you get a joomla like error screen. I have some printscreens of this phenomenon, may I could sent them to Phoca if you wish to see them. Maybe this will lead to a solution. I have a workaround now, but it is (to) time consuming. I like your product very much, i think it's worth investing some time in it.
Please let me know if this is any help.
Greetings Richard.
Information from the PHP site: http://nl3.php.net/manual/en/image.installation.php
Installation
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
Enhance the capabilities of GD to handle more image formats by speci\ying the --with-XXXX configure switch to your PHP configure line.
Supported image formats Image Format Configure Switch
jpeg-6b To enable support for jpeg-6b add --with-jpeg-dir=DIR.
png To enable support for png add --with-png-dir=DIR. Note, libpng requires the zlib library, therefore add --with-zlib-dir[=DIR] to your configure line.
xpm To enable support for xpm add --with-xpm-dir=DIR. If configure is not able to find the required libraries, you may add the path to your X11 libraries.
Note: When compiling PHP with libpng, you must use the same version that was linked with the GD library.
Enhance the capabilities of GD to deal with different fonts by specifying the --with-XXXX configure switch to your PHP configure line.
Supported font libraries Font library Configure Switch
FreeType 1.x To enable support for FreeType 1.x add --with-ttf[=DIR].
FreeType 2 To enable support for FreeType 2 add --with-freetype-dir=DIR.
T1lib To enable support for T1lib (Postscript Type 1 fonts) add --with-t1lib[=DIR].
Native TrueType string function To enable support for native TrueType string function add --enable-gd-native-ttf.
add a note add a note User Contributed Notes
Installation
mike at clove dot com
18-Apr-2008 06:40
jpeg [jpg] file processing doesn't work unless you build php with '--with-jpeg-dir=<path to jpeg library>'.
It still doesn't work unless <path to jpeg library> points to the directory holding the directory holding the library unless libjpeg.<whatever> is in either /usr/lib or /usr/local/lib. For instance, on a mac with libjpeg.a installed via mac ports, you need '/opt/local' rather than '/opt/local/lib'