|
dasman
|
 |
« on: January 21, 2011, 11:49:24 PM » |
|
I have the weather banner set up from http://weather.anolecomputer.com/. In the script config file the font size is selectable in a numeric value of 1 to 5, with 5 beeing the largest size. Is there a way to add larger size to it? I currently have it set to 5, and on my sites Header(right side) to show temp and windchill. I would like to make it 2 to 3 times larger and only show the temp. Any Ideas?
|
|
|
|
|
Logged
|
Dave Sommerfed Peotone Illinois USA CW7762, KILPEOT1 NWS COOP, CoCoRaHS, Spotter Network 
|
|
|
|
SLOweather
|
 |
« Reply #1 on: January 21, 2011, 11:53:21 PM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
dasman
|
 |
« Reply #2 on: January 22, 2011, 12:47:41 AM » |
|
I found a new font file and replaced the one it came with. This allowed me to get the bigger size!
|
|
|
|
|
Logged
|
Dave Sommerfed Peotone Illinois USA CW7762, KILPEOT1 NWS COOP, CoCoRaHS, Spotter Network 
|
|
|
|
xykotik
|
 |
« Reply #3 on: January 22, 2011, 10:01:48 AM » |
|
If you use a true-type (.ttf) font, you can use any size you want. Upload your favorite ttf file into the directory where your wxgraphic.php file lives. In the config.txt file, change the $font_file='none' to $font_file='./thefontname.ttf' there is an example in the config.txt file. Now you can use any size you want. In the imagecenteredtext command, there is a number for the GD font size (1-5) and a different one for the TTF font size, (same as your word processor). It will pick which one to use depending on if the TTF file you called out actually exists. example... imagecenteredtext(75, 135, "$barom$barom_units", 2, 7, $color4, 0); If you want to get really freaky, replace the '0' at the end of the line with a number like '45' and look what it does 
|
|
|
|
|
Logged
|
Facit solem suum oriri super bonos et malos et pluit super iustos et iniustos.Springtime in Seattle... March comes in like a lion and out like a wet lion.
|
|
|
|
dasman
|
 |
« Reply #4 on: January 22, 2011, 10:53:32 AM » |
|
Thank You. That has done the trick.
|
|
|
|
|
Logged
|
Dave Sommerfed Peotone Illinois USA CW7762, KILPEOT1 NWS COOP, CoCoRaHS, Spotter Network 
|
|
|
|
hayskswx
|
 |
« Reply #5 on: June 09, 2012, 03:12:24 PM » |
|
I know this thread is old but how do I make one of these banners?
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #6 on: June 09, 2012, 03:58:29 PM » |
|
I know this thread is old but how do I make one of these banners?
You allready have one.  
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
Axelvold
|
 |
« Reply #7 on: June 10, 2012, 12:40:14 PM » |
|
You could do that in the config.txt file for wxgrapich script.
There you could change color, background image and lots of other things.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #8 on: June 10, 2012, 01:16:02 PM » |
|
Cant figure out how to change the background color on it
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #9 on: June 10, 2012, 01:30:34 PM » |
|
I don't know if you could change the color of the background, but you could use a image for that.
Just re size the image you want to use to 500x80 a name it banner_big.jpeg or what extension you use.
Maybe some one else could say if it's possible to change the background color.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #10 on: June 10, 2012, 01:31:54 PM » |
|
I don't know if you could change the color of the background, but you could use a image for that.
Just re size the image you want to use to 500x80 a name it banner_big.jpeg or what extension you use.
Maybe some one else could say if it's possible to change the background color.
after I get the image where do I put it?
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #11 on: June 10, 2012, 01:40:43 PM » |
|
I made an image. Now where do I put it. I named it banner_big and its a jpeg. Is there something I need to edit in order for it to display the image?
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #12 on: June 10, 2012, 01:55:14 PM » |
|
Put it in the same folder as the wxgrapich.php and to be on the safe side take a copy of the original banner_big.jpeg.
That should do it, you don't have to change something else.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #13 on: June 10, 2012, 02:00:39 PM » |
|
Put it in the same folder as the wxgrapich.php and to be on the safe side take a copy of the original banner_big.jpeg.
That should do it, you don't have to change something else.
I put it in wxgraphic.php and it didnt change?
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #14 on: June 10, 2012, 02:09:36 PM » |
|
I put it in wxgraphic.php and it didnt change?
Is it in the same folder? Make sure that you have set to use jpeg in the config file as well.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #15 on: June 10, 2012, 02:11:20 PM » |
|
Its set to a gif . Thats why it wasnt working
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #16 on: June 10, 2012, 02:20:08 PM » |
|
It's the small things that does it. 
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #17 on: June 10, 2012, 02:21:01 PM » |
|
Lol yep. Thanks
|
|
|
|
|
Logged
|
|
|
|
|
hayskswx
|
 |
« Reply #18 on: June 10, 2012, 02:29:50 PM » |
|
Can I use this as my signature on emails?
|
|
|
|
|
Logged
|
|
|
|
|
Axelvold
|
 |
« Reply #19 on: June 10, 2012, 02:45:41 PM » |
|
I think I have asked the same question once, I cant find that thread right now.
But I think you could use your banner as a signature in your emails.
|
|
|
|
|
Logged
|
Lars Magnusson Axelvold / Sweden 55° 57' 41" N / 13° 6' 1" E WX Station: Davis Vantage Pro2 Plus  
|
|
|
|
hayskswx
|
 |
« Reply #20 on: June 10, 2012, 06:54:41 PM » |
|
Anyone know how this could be done? I tried to add it to my email signature but it just comes through with the code and no image.
|
|
|
|
|
Logged
|
|
|
|
|