Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Image (drop)shadow on the fly

    Since I have like 50 images, I'd like to use php to create a (drop)shadow effect on the fly...What's an easy way? Thanks

    PS - I need to control the blur...
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    577
    Thanks
    0
    Thanked 0 Times in 0 Posts
    drop shadow is one that I always find awkward. never quite looks as I'd like it to look.

    basically you'd want to create an image some pixels wider + taller than the original then iterate a certain width at each edge and draw a line of a set opacity (though I think perhaps single pixel shading might be a neater algorythm).

    What GD build do you have? I ask that as imagecopymerge has a glitch in 2.0.10 - 2.0.14 (or there abouts - certainly php4.3.2) so you might need to actually set the colour using math.
    Ökii - formerly pootergeist
    teckis - take your time and it'll save you time.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Did you say something?
    Actually, I found a css style I like but I can't get text to wrap around it. The q is in the css forum...

    Halp! I'm a CG artist trapped in a coding forum...Halp!
    Last edited by zoobie; 09-08-2003 at 01:07 AM.
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •