The Arcive of vBulletin Modifications Site. |
|
[release] Filburt's Fun Shadow System Details »»
|
||||||||||||||||||||||||||
Author: filburt1
Description: Given a plethora of parameters, generates a PNG image with shadowed text in it. Demo: http://www.turtletips.com/testing/cr...e&skipshadow=0 (I told you, plethora of parameters )Screenshot: http://www.vbulletintemplates.com/mo...=&postid=15585 . This image was generated by the demo URL above. You need PHP with the GD library for this to work. I think this is standard for Unix and OS X, but it isn't for Windows. If you look at my forums (see sig) there's a universal virtual light coming from 90? (i.e., exact center-top of the screen). Therefore all text and images have shadows accordingly for consistancy. You can make shadowed text via CSS/HTML, but it will look horrible. The first method, just making two layers, produces just too plain a look. The second, a Microsoft DirectX filter, only works in IE5.5+ and looks absolutely horrible in Windows XP with ClearType. So, the attached script generates PNG images with shadowed, antialiased text. It's reasonably well commented too if you want to modify it. Look at the sample URL for how to state parameters. The available parameters are: Code:
// $bgfile as the background // $color as the font color // $shadowcolor as the color of the shadow in HTML hex color format (no leading #) // $fontname as the TTF filename // $fontsize as the font's size (note: shouldn't exceed 100px-y!) // $s as the actual string to display // $skipshadow (optional) as a flag to disable the shadow Quote:
Code:
<img src="createshadowedimage.php?parameters..."> And finally, this is clearly not a release for the weak. Questions will be answered but I have to assume that you have at least some knowledge of what the hell I'm rambling about. ![]() Show Your Support
|
||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Forgot the four (!) most important ones:
Code:
// $textoffsetpxx is the x-offset of the main text in pixels // $textoffsetpxy is the y-offset of the main text in pixels // $shadowoffsetpxx is the x-offset of the shadow relative to the main text // $shadowoffsetpxy is the y-offset of the shadow relative to the main text Quote:
|
|
#3
|
|||
|
|||
|
cool
when I breath life back into my fourms I'll probaly use this |
|
#4
|
||||
|
||||
|
Neat, I will find this again when it's not so late....
|
|
#5
|
||||
|
||||
|
weird...im not gonna use it - but it is crazy!
|
|
#6
|
||||
|
||||
|
Some nice work there filburt.
|
|
#7
|
|||
|
|||
|
looks kinda complicated, i might try it out one of these days, good work man.
|
|
#8
|
|||
|
|||
|
definetly looks sweet! gonna haev to try this one out!
|
|
#9
|
|||
|
|||
|
if i don't have GD, it will just come up blank, right?
i've been told i have GD, but that's what happens.
|
|
#10
|
|||
|
|||
|
If you don't have GD then you'll get PHP errors; if you do and it comes up blank then you screwed up in the arguments or the .png you gave it.
|
![]() |
|
|