#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    456
    Rep Power
    15

    make a quick buck: php function needed


    I have a script that does some image manipulation with the GD library. It does almost everything I need, but I am stuck on how to crop an image. So... a quick $20 for anyone who can write me a function that does the following:

    Accepts 5 parameters:
    - image identifer
    in this example $im is identifier: $im = imagecreatefromjpeg($logosource)
    - upper left x pos
    - upper left y pos
    - lower right x pos
    - lower right y pos

    Based on that it should crop the image down to the rectangular area bound by the upper left and lower right position specified.

    imagecopyresized() may be the function you'll need. If you can't actually crop $im, rather you have to copy the specified portion of $im to a new image, sized the same as the part being cropped (I think that is a good approach), this is fine.

    Any takers? Please email rmckillen@screamingv.com
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Posts
    452
    Rep Power
    14
    you still need this?

    sent you an email
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Ukraine
    Posts
    16
    Rep Power
    0
    Sent detailed data to me. (see signature)

IMN logo majestic logo threadwatch logo seochat tools logo