An imaging script I wrote, please check this out
Page 1 of 3 123 LastLast
Results 1 to 15 of 45

Thread: An imaging script I wrote, please check this out

  1. #1
    NULL Mordecai's Avatar
    Join Date
    Mar 2003
    Location
    Springfield, MO, USA
    Posts
    2,020

    An imaging script I wrote, please check this out

    I have written a script called the Leonardo Image Functions Library, which is a library of image functions (obviously) that lets you do some pretty complex stuff with simple functions. This allows you to edit images easier than you would with the normal GD functions. Please check it out here.
    Also, please give your feedback. You can find ways to contact me in my profile, or send me a mesage.

    If you have ideas for the next version, please contact me. Currently, I am working on a beveling function and a gradient line function.

    Download the code, examples, and documentation here.

    Edit: updated links
    Last edited by Mordecai; 07-10-2003 at 05:39 AM.
    - cai
    caiPHP

  2. #2
    Senior Member
    Join Date
    Sep 2001
    Location
    Malmö (capitol of the world)
    Posts
    203
    Nice work Mordecai :-) Keep the spirit up!

  3. #3
    Capn cranky dar-k's Avatar
    Join Date
    May 2002
    Location
    My house, mostly
    Posts
    206
    Nice stuff u made there.
    Thumbs up!
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
    __________________
    STFW and RTFM before u WMFT!!

  4. #4
    Parse error line -1 Bunkermaster's Avatar
    Join Date
    Sep 2002
    Location
    France
    Posts
    1,769
    what GD version does it use? 1.x or 2.x?

    "Our ASP will blot out the sun!"
    "Then we will PHP in the shade"

  5. #5
    2($infinity) && $beyond BuzzLY's Avatar
    Join Date
    Nov 2002
    Location
    Star Command
    Posts
    2,435
    RTFM, Bunkermaster
    New to the board? Check out the guidelines
    | Color Picker | Blogification |
    ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
    With all its sham, drudgery, and broken dreams, it's still a beautiful world.

  6. #6
    Ancient Member PyroX's Avatar
    Join Date
    Sep 2002
    Location
    Iowa
    Posts
    420
    Now write a function to do masked overlays.

    overlay(imageA, imageB, maskColor, X, Y)
    Last edited by PyroX; 04-14-2003 at 05:37 PM.
    No matter how advanced, artificial intelligence is no match for natural stupidity.

  7. #7
    NULL Mordecai's Avatar
    Join Date
    Mar 2003
    Location
    Springfield, MO, USA
    Posts
    2,020
    Ooh, good Idea, PyroX.
    Bunker, it can use any version of GD. I tested it on GD 1.
    - cai
    caiPHP

  8. #8
    Parse error line -1 Bunkermaster's Avatar
    Join Date
    Sep 2002
    Location
    France
    Posts
    1,769
    Originally posted by BuzzLY
    RTFM, Bunkermaster
    LOL BUSTED

    OK you got me mate

    "Our ASP will blot out the sun!"
    "Then we will PHP in the shade"

  9. #9
    Senior Member
    Join Date
    Mar 2002
    Posts
    338

    Imageing

    Hi,
    Nice work,
    I am also working on some image functions and working on some GUIs for doing the work more intuitive

    Check out this thread,

    http://www.phpbuilder.com/board/show...0#post10344030

    Or go to my site directly here

    regards Thomas A.

  10. #10
    NULL Mordecai's Avatar
    Join Date
    Mar 2003
    Location
    Springfield, MO, USA
    Posts
    2,020
    Yeah, I wrote a GD script that works with that.
    - cai
    caiPHP

  11. #11
    Member
    Join Date
    May 2003
    Posts
    36
    As you guys seem to know about the GD lib. Can anyone show me a working example of using the imageinterlace() function. I have a program the i am trying to output uploaded photo's which i assumed could be displayed fuzzy first before true image appears, (have seen this on sites). I thought to create the image using imageinterlace() would work, bit it appears the same when the browser loads. a small snippet of my code:

    ImageInterlace($img,1); // turn on interlace
    ImageJPEG($img,"$IMG_ROOT/$dest_file_prefix$file_name", $JPG_QUALITY); // create image.

    I would not bother people without trying to find the answers in manuals, but the function is not really documented very well.
    Thanks
    Zeber

  12. #12
    NULL Mordecai's Avatar
    Join Date
    Mar 2003
    Location
    Springfield, MO, USA
    Posts
    2,020
    You can't use imageinterlace() and imagejpeg() together. An interlaced JPEG will not load in the conventional interlaced style, but rather when it's completed. Normally, a JPEG loads from top left to bottom right in horizontal chunks. An interlaced JPEG will not show anything (it will return headers) until it's completely downloaded.
    - cai
    caiPHP

  13. #13
    Member
    Join Date
    May 2003
    Posts
    36
    Thanks for that, u are right. That is what was happening.
    10 points to griffindore.
    Zeber

  14. #14
    Junior Member
    Join Date
    Jun 2003
    Posts
    2
    Great set of functions!

    Is there anyway to change the contrast of an image with GD (and PHP)? I've made a tool to make one of those "Ctrl+A"-images you've probably seen, and to change contrast would make it even better. I know that it's possible with ImageMagick, but I'd preferred to not use an external resource.

    Oh, and the code is avaliable here: http://nopaste.bsdguru.net/nopaste.p...splay=extended

  15. #15
    Senior Member
    Join Date
    May 2003
    Location
    Santander, Spain
    Posts
    155
    Da Vinci would be proud...

    great work
    El veloz murciélago hindú comía feliz cardillo y kiwi at sacapuntas.net
    (The fast hindu bat ate happily golden thistle and kiwi)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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