From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.2.3
PHP Bug Type:     PDF related
Bug description:  ImageCreateTrueColor, ImageCreateFromJPEG can only create 256 color 
images

As reported at
http://www.php.net/manual/en/function.pdf-open-memory-image.php
ImageCreateTrueColor and others does not work correctly when using
pdflib > 4.0.x and PHP > 4.2.x and reading the image from memory (reading
from
file seems to work though).

Excerpt from forum and configuration information below.

WORKS:
$im = ImageCreate(100, 100);
$pim = pdf_open_memory_image($pdf, $im);

DOES NOT WORK:
$im = ImageCreateTrueColor(100, 100);
$pim = pdf_open_memory_image($pdf, $im);

DOES NOT WORK:
$im = ImageCreateFromJPEG("file.jpg");
$pim = pdf_open_memory_image($pdf, $im);

-----------------------
PHP 4.2.3
GD 2.0.8
PDFLib 4.0.3 (compiled with default options)

Configure Options:

./configure \
                      --with-config-file-path=/etc \
                      --with-apxs=/usr/local/apache/bin/apxs \
                      --enable-versioning \
                      --enable-inline-optimization \
                      --enable-magic-quotes \
                      --enable-track-vars \
                      --with-xml --with-dom --with-xmlrpc \
                      --with-mysql=/usr \
                      --enable-sockets \
                      --with-ldap \
                      --with-imap=/usr/local --with-imap-ssl=/usr/local \
                      --with-mm \
                      --enable-memory-limit \
                      --enable-bcmath \
                      --enable-sigchild \
                      --with-zlib=/usr \
                      --with-curl=/usr/local \
                      --with-dom=/usr/include/libxml2/libxml \
                      --enable-exif \
                      --enable-ftp \
                      --with-gettext=/usr/share \
                      --with-gd \
                      --with-ttf \
                     
--with-freetype-dir=/usr/local/include/freetype2/freetype \
                      --enable-gd-imgstrttf \
                      --with-png-dir=/usr \
                      --with-jpeg-dir=/usr \
                      --with-tiff-lib=/usr \
                      --with-mcal=../libmcal \
                      --with-openssl \
                      --with-mcrypt --with-mhash \
                      --with-pspell \
                      --with-ming \
                      --with-pdflib



-- 
Edit bug report at http://bugs.php.net/?id=20785&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20785&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20785&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20785&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20785&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20785&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20785&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20785&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20785&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20785&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20785&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20785&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20785&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20785&r=isapi

Reply via email to