Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 22, 2012, 10:49:12 PM

Pages: [1]   Go Down
  Print  
Author Topic: another png question  (Read 676 times)
psykik
Jedi
*****
Offline Offline

Posts: 750



WWW
« on: December 02, 2003, 09:41:48 AM »

Hi all ! been quite a while since I came by...  Rolling Eyes


I'm trying some new signatures images in png with some active information on them from my forum.

Here's the one I made :



it's a png image along with a php code.
Is it possible to use a jpg image with the same php code Huh

The reason I want to do this is because the png image file is a little big.

my php file now says:
Code:
$image = "myphpbb.png";

$im = imagecreatefrompng($image);



when i do
Code:
$image = "myphpbb.jpeg";

$im = imagecreatefromjpeg($image);

 It doesn't work .... is it because It's not done or Am I using a wrong code ?


thanx a lot  Wink
Logged

psykik
Jedi
*****
Offline Offline

Posts: 750



WWW
« Reply #1 on: December 02, 2003, 09:46:57 AM »

mhhhhh I think I fixed it...

how do you like it ?

is there a way to use a better font ? (I'm quite new to php coding....)

maybe I should have posted this in the php section....  Rolling Eyes

 Wink
Logged

Boris
Master Jedi
*****
Offline Offline

Posts: 1082



WWW
« Reply #2 on: December 02, 2003, 11:37:16 AM »

Interesting enough, but yes it might be slightly more appropriate in the php forum Razz


( will definitely check out that php code Smile )
Logged

Questions on graphics? Visit the lunarpages Graphics forum!

Bugging Danielle daily since 2003.

Have a Lunar Day!
MikeBoger
Jabba the Hutt
*****
Offline Offline

Posts: 654



WWW
« Reply #3 on: December 02, 2003, 06:33:47 PM »

Yeah, I have no idea either.  Paging PHP Forum to thread 9410.
Logged

jdj329
Spaceship Navigator
*****
Offline Offline

Posts: 83



WWW
« Reply #4 on: December 02, 2003, 07:36:02 PM »

Here's the answer to your font question:
http://us2.php.net/imagettftext
http://us2.php.net/manual/en/function.imagestring.php
http://us2.php.net/manual/en/function.imageloadfont.php

On the above code you probably came up with:
Code:
$im = ImageCreateJPEG('myphpbb.jpeg');
Logged

James Jackson
President - Nacogdoches Association for Civic Virtue
psykik
Jedi
*****
Offline Offline

Posts: 750



WWW
« Reply #5 on: December 03, 2003, 03:22:06 AM »

thanx for the links  Thumbs Up
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: