Posted by Stefan Rybacki on 06/27/05 17:57
nemo wrote:
> On Mon, 27 Jun 2005 14:45:31 +0300, "Parastatidis Nikos" <capamaru@quake.gr>
> wrote:
>
> >i have some customers images on blob fields
> >i have an image template that i whan to use it as background and merge the
> >customer image with the template
> >this is what i mean manipulate gernaly handle the image directly as taken
> >from the database and not storeing temporary on a file.
> >is this posible?
> >or do i have fopen and put the stream from the database on a temp file.
> Are you wanting to go something like -
> <img src="$Row[image]">
> as opposed to
> <img src="image_directory/$Row[image_filename]">?
> What have you tried?
> I repeat - it's best to store only the filename.
I guess I wants more like this:
$img1=createFromStream($row['img1']);
$img2=createFromStream($row['img2']);
$newimg=mergeImages($img1,$img1);
and then for example store it
imageJpeg($newimg,'filename.jpg');
print('<img src="filename.jpg">');
but I think he is wants to do something more like this:
header("image/jpeg");
imageJpeg($newimg);
HTML - File somewhere
....
<img src="mergedImages.php?image1=7&image2=9">
The OP should help to know what he wants.
Regards
Stefan
[Back to original message]
|