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

Thread: GD Library Help

  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    Oregon, United States of America
    Posts
    882
    Thanks
    1
    Thanked 9 Times in 9 Posts

    GD Library Help

    For whatever reason imagerotate() does not expand the size of the image canvas when working in a GD image. How can I clip off the edges so that the rotated image is square again? The client needs to be able to rotate the image -5 to 5 degrees, and I want to clip all non-square edges.

    Thank you.
    Last edited by Ultragames; 10-30-2007 at 06:33 PM.
    If I'm postin here, I NEED YOUR HELP!!

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Have a look at the user comments in the manual for the function, you may find something that works for you.

  • #3
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    Do you have a working example?
    And is the image a .gif with a transparent background?

    I'm not quite understanding the "square edges" part.


  •  

    Posting Permissions

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