I'm trying to create a thumbnail from a jpeg file but the script stops when it 
encounters the function 'imagecreatefromjpeg'. I have 5.1.2 php loaded.

Below is the additional testing code and output which help me find the function 
causing the problem. Any input would be helpful!

Thanks
Ted

CODE-----
<?php
echo "start";
$type=false;
echo "<br>line_1";
$type=getimagesize("100.jpg");
echo "<br>line_2";
if($type)
{
    echo "<br>image type=" . $type;
    echo "<br> type[0]=" . $type[0];
    echo "<br> type[1]=" . $type[1];
    echo "<br> type[2]=" . $type[2];
    echo "<br> type[3]=" . $type[3];
}
else
{
    echo "<br>unknown type";
}
$src_img = imagecreatefromjpeg("100.jpg");
echo "<br>finish";
?>

OUTPUT
start
line_1
line_2
image type=Array
type[0]=1280
type[1]=922
type[2]=2
type[3]=width="1280" height="922"



__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to