the problem is this... some of the images the user is supposed to be able to right-click and save-as, however, the resulting dialogue comes up with 'untitled' filename, and bmp as the only availiable file type, when the image itself is a gif or a jpeg. is there any way to get round this? i tried <object> instead but thatdoesnt seem to be compatible with retrieving images via script
any help gratefully recieved.. sorry if this should have gone in a different forum
this is my image display, used after getting details from the db
Code: Select all
<?php
if(stristr($dataa['thumbadd'], '.jpg')&&(strlen(stristr($dataa['thumbadd'], '.jpg'))==4))
{
$im = imagecreatefromjpeg ('./' . $dataa['thumbadd']);
}
elseif(stristr($dataa['thumbadd'], '.gif')&&(strlen(stristr($dataa['thumbadd'], '.gif'))==4))
{
$im = imagecreatefromgif ('./' . $dataa['thumbadd']);
}
imagejpeg($im,'',75);
imagedestroy ($im);
?>