Re: [PHP] Images problem

2004-11-17 Thread Phpu
It's working  Thanks a lot


- Original Message - 
From: "Randy Rinehart" <[EMAIL PROTECTED]>
To: "Phpu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 6:29 PM
Subject: Re: [PHP] Images problem


> I believe you can use imagecopymerged to do this.
> 
> http://us2.php.net/manual/en/function.imagecopymerge.php
> 
> please let me know if that helps.
> 
> Thanks
> 
> -randy rinehart
> 
> - Original Message - 
> From: "Phpu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 17, 2004 10:05 AM
> Subject: [PHP] Images problem
> 
> 
> If i have 2 images:
> 
> $im1 = imagecreate (100, 100);
> $white = ImageColorAllocate ($im1, 255, 255, 255);
> 
> 
> $im2 = imagecreate (50, 50);
> $black = ImageColorAllocate ($im2, 0, 0, 0);
> 
> 
> How can i put $im2 over $im1 and result one single image? Is there a
> function to do this?
> 
> Thank You
> 
> 

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



RE: [PHP] Images problem

2004-11-17 Thread Mike
If you're looking for a way to merge images, look at imagecopyresized()

If you're going to be doing a lot with images in PHP, it's good to spend a
lot of time reading the images section of the manual - there's a lot in
there and all with somewhat similar names - it can get confusing at first.

-M 

-Original Message-
From: Phpu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 11:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Images problem

If i have 2 images:

$im1 = imagecreate (100, 100); 
$white = ImageColorAllocate ($im1, 255, 255, 255);


$im2 = imagecreate (50, 50); 
$black = ImageColorAllocate ($im2, 0, 0, 0);


How can i put $im2 over $im1 and result one single image? Is there a
function to do this?

Thank You

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



Re: [PHP] Images problem

2004-11-17 Thread Eakin, W
Phpu wrote:
If i have 2 images:
$im1 = imagecreate (100, 100); 
$white = ImageColorAllocate ($im1, 255, 255, 255);

$im2 = imagecreate (50, 50); 
$black = ImageColorAllocate ($im2, 0, 0, 0);

How can i put $im2 over $im1 and result one single image? Is there a 
function to do this?
Thank You
 

this looks like what you need
http://www.php.net/manual/en/function.imagecopymerge.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Images problem

2004-11-17 Thread Randy Rinehart
I believe you can use imagecopymerged to do this.

http://us2.php.net/manual/en/function.imagecopymerge.php

please let me know if that helps.

Thanks

-randy rinehart

- Original Message - 
From: "Phpu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 10:05 AM
Subject: [PHP] Images problem


If i have 2 images:

$im1 = imagecreate (100, 100);
$white = ImageColorAllocate ($im1, 255, 255, 255);


$im2 = imagecreate (50, 50);
$black = ImageColorAllocate ($im2, 0, 0, 0);


How can i put $im2 over $im1 and result one single image? Is there a
function to do this?

Thank You

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



[PHP] Images problem

2004-11-17 Thread Phpu
If i have 2 images:

$im1 = imagecreate (100, 100); 
$white = ImageColorAllocate ($im1, 255, 255, 255);


$im2 = imagecreate (50, 50); 
$black = ImageColorAllocate ($im2, 0, 0, 0);


How can i put $im2 over $im1 and result one single image? Is there a function 
to do this?

Thank You

[PHP] Images problem

2002-10-02 Thread Mihaela Ratri

Hi, 


I know that is old problem, but I could'n solved until
now. Sorry for any inconvenience. 

I've installed gd-2.0.1 (in /my/home) and php-4.2.3 
with the following options: 
./configure --with-mysql
--with-apache=../apache_1.3.26
--with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local
--with-freetype-dir=/usr --enable-gd-native-ttf
--enable-gd-imgstrttf --with-jpeg-dir=/usr
--with-png-dir=/usr -with-zlib --enable-track-vars

The OS is Solaris 2.8. 

Everything went ok, but when I try to create "on fly"
a png image, it doesn't create a image on my web
browser. I don't see any errors in apache error_log. 

The source of the my script is:

 


Any ideea?


P.S Using I.E explorer as web browser get the error: 
 Call to undefined function:  imagejpeg() in
/my/home/usr/local/apache_1.3.26/htdocs/test1.php
on line 8




Thank you in advance,
Mihaela
 


__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

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




[PHP] Images problem

2002-10-02 Thread Mihaela Ratri

Hi, 


I know that is old problem, but I could'n solved until
now. Sorry for any inconvenience. 

I've installed gd-2.0.1 (in /my/home) and php-4.2.3 
with the following options: 
./configure --with-mysql
--with-apache=../apache_1.3.26
--with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local
--with-freetype-dir=/usr --enable-gd-native-ttf
--enable-gd-imgstrttf --with-jpeg-dir=/usr
--with-png-dir=/usr -with-zlib --enable-track-vars

The OS is Solaris 2.8. 

Everything went fine, but when I try to create "on
fly" a png image, it doesn't create a image on my web
browser. I don't see any errors in apache error_log. 

The source of the my script is:

 


Any ideea where I should look for errors, etc? 


Thank you in advance,
Mihaela
 


__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

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




[PHP] Images problem

2002-10-02 Thread Mihaela Ratri

Hi, 


I know that is old problem, but I could'n solved until
now. Sorry for any inconvenience. 

I've installed gd-2.0.1 (in /my/home) and php-4.2.3 
with the following options: 
./configure --with-mysql
--with-apache=../apache_1.3.26
--with-gd=/my/home/gd-2.0.1 --prefix=/my/home/local
--with-freetype-dir=/usr --enable-gd-native-ttf
--enable-gd-imgstrttf --with-jpeg-dir=/usr
--with-png-dir=/usr -with-zlib --enable-track-vars

The OS is Solaris 2.8. 

Everything went ok, but when I try to create "on fly"
a png image, it doesn't create a image on my web
browser. I don't see any errors in apache error_log. 

The source of the my script is:

 


Any ideea where I should look for errors, etc? 


Thank you in advance,
Mihaela
 


__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

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




Re: [PHP] images problem

2001-03-09 Thread Richard Lynch

Maybe strlen($data);

-- 
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message - 
From: John LYC <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Thursday, March 01, 2001 5:19 AM
Subject: [PHP] images problem


> i uses the following method to display an image draw from database..
> 
> 
> set_magic_quotes_runtime(0);
> $query =  "select diagram from $QuestTab where qns_id = '$QnsID'";
> $result = @MYSQL_QUERY($query);
> $data = @MYSQL_RESULT($result,0, "diagram");
> Header("Content-type: image/png");
> print $data;
> set_magic_quotes_runtime(get_magic_quotes_gpc());
> /
> 
> i have problem getting the images size
> dose anyone know?
> i had tried almost all ways i know of.. to using images functions from
> the GD lib..
> 
> john
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] images problem

2001-03-01 Thread John LYC

i uses the following method to display an image draw from database..


set_magic_quotes_runtime(0);
$query =  "select diagram from $QuestTab where qns_id = '$QnsID'";
$result = @MYSQL_QUERY($query);
$data = @MYSQL_RESULT($result,0, "diagram");
Header("Content-type: image/png");
print $data;
set_magic_quotes_runtime(get_magic_quotes_gpc());
/

i have problem getting the images size
dose anyone know?
i had tried almost all ways i know of.. to using images functions from
the GD lib..

john







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]