Greetings,
I am trying to get jpeg support for my php4 running on a sparc/solaris 2.6 machine.
I have compiled jpeg6b, gd-1.8.3, Php 4 and Apache 1.3.12 in that order. 🙂
All of which seem to have built successfully.
When I do a phpinfo()I get the following info when I search for jpeg:
Configure Command - './configure' '--with-apache=/usr/local/src/apache_1.3.12/' '--with-oracle' '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--enable-track-vars'
HTTP_ACCEPT - image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, /
Accept - image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, /
HTTP_SERVER_VARS["HTTP_ACCEPT"] - image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, /
but when I try to generate a .jpg from this:
<?php
Header("Content-type: image/jpeg");
$string=implode($argv,"Howowo");
$im = imagecreatefromjpeg("button.jpg");
$orange = ImageColorAllocate($im, 00, 00, 00);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImageJpeg($im);
ImageDestroy($im);
?>
I get the following errors:
<br>
<b>Warning</b>: ImageCreateFromJpeg: No JPEG support in this PHP build in <b>/www/apache/htdocs/php/image.php</b> on line <b>4</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>/www/apache/htdocs/php/image.php</b> on line <b>5</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>/www/apache/htdocs/php/image.php</b> on line <b>6</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>/www/apache/htdocs/php/image.php</b> on line <b>7</b><br>
<br>
<b>Warning</b>: ImageJpeg: No JPG support in this PHP build in <b>/www/apache/htdocs/php/image.php</b> on line <b>8</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid Image resource in <b>/www/apache/htdocs/php/image.php</b> on line <b>9</b><br>
Any Ideas?