SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist NokX's Avatar
    Join Date
    Feb 2003
    Location
    Knoxville, TN
    Posts
    525
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Cropping "with" Javascript

    i'm wanting users to be able to upload an image, but i want the image to be a specific aspect ratio. if you've uploaded a contact picture for your gmail account - you know what i'm talking about.

    here's a screenshot of the cropping ability in gmail...



    i'm assuming the crop lines are somehow determined via javascript and those numbers are passed to something similar to the GD Image Library in PHP where you can crop images.

    any ideas.

  2. #2
    SitePoint Evangelist NokX's Avatar
    Join Date
    Feb 2003
    Location
    Knoxville, TN
    Posts
    525
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i created a php script that will crop the image - the only thing i need is to feed the x and y starting coordinates that are selected by the user.


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
  •