You are here: Re: image manipulation from mysql « PHP Language « IT news, forums, messages
Re: image manipulation from mysql

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация