SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard PHPycho's Avatar
    Join Date
    Dec 2005
    Posts
    1,200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to crop image using gd ??

    First of all Hi to everybody......
    I am again back with the new problem related to GD....
    I have been given a task of image manipulation like cropping image.....

    The scenario:
    there are 4 input fields like x1,y1 ,x2,y2 for entering the starting point and the end point of croping of image. when the form is submitted then it should make a crop image on the /crop/ directory......

    The problem:
    I didnt got the idea ...of crop ...
    I would be greatful if anybody help me in cropping images using four fields x1,y1,x2,y2..

    Thank you in advance

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could use imagecopy()

    if your looking for a code sample or tutorial, try a search, im sure you will find more than you need.
    php crop image

    or similar terms.

  3. #3
    Worship the Krome kromey's Avatar
    Join Date
    Sep 2006
    Location
    Fairbanks, AK
    Posts
    1,621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A search of this forum would turn up a nearly identical thread discussed earlier this week. Also, the user comments in the PHP manual for imagecopy include an excellent image cropping script (fourth one down).
    PHP questions? RTFM
    MySQL questions? RTFM


Bookmarks

Posting Permissions

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