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 2 of 2

Thread: GD Image Flip

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Brisbane, Australia
    Posts
    181
    Thanks
    1
    Thanked 0 Times in 0 Posts

    GD Image Flip

    Wow, I've been asking a few questions about GD lately. Here's my newest one ...

    I have an image, and I want to flip it horizontally/vertically. I've looked on PHP.NET and I couldn't find anything that does it. Without having to write a function that goes through every pixel on a picture and inverting it, is there a function that does it with GD/PHP?

    -mR_eGo
    -mR_eGo
    _______________________
    Programming since
    3 years old.

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    I think you are going beyond the limits/scope of GD

    see if you have imagemagick available on your server which has geometry functions and filters you can apply, you can either exec() imagemagick commands or there is a PECL extension available though its unlikely to be installed on most servers
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


  •  

    Posting Permissions

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