SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2006
    Posts
    466
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GUI for GD Library

    Hello,

    I know nothing about javascript at the moment, but I've been hitting php very aggressively the past few months.

    I've came across a challenge and I'm not sure how to go about fixing it.

    Basically, I need to be able to drag an image into a box on my webpage, crop it, and then upload it. I've done basic image uploading and resizing with php. That's no big deal.

    The problem is I may want to crop in different spots. The idea is to have some sort of box tool that is set at a given aspect ratio (like Photoshop does). Then, I could select the part of the image I wanted to keep, hit one button that would then crop, resize, and upload the image (storing the pathway to the MySQL database).

    So does anyone know of any either standalone GUI's that work well for this sort of image manipulation or possibly a javascript that will allow me to select part of the image and spit out some co-ordinates that I could use with php's GD Library.

    Thanks,
    Brandon Drury
    Home Recording Forum -
    Make 60% Commission Pushing my new mega system
    Killer Home Recording

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Someone asked a similar question this week. See this thread:

    http://www.sitepoint.com/forums/showthread.php?t=450336

    I know nothing about javascript at the moment
    That could be problematic. That is advanced javascript.
    Last edited by 7stud; Jan 12, 2007 at 02:41.

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2006
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A problem you will find is, Javascript isn't allowed to handle files. What you will actually have to do is, upload the file to a temporary directory, display it to the user and allow them to adjust it using Javascript, then use PHP to adjust the uploaded file and move it to a permanent directory.

    Check out this page, he seems to be doing what you want to do.

    Dave

  4. #4
    SitePoint Evangelist
    Join Date
    Mar 2006
    Posts
    466
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately that page is very buggy (at least in both Maxthon and Firefox) for me.

    I wonder if there are any other options.

    Brandon
    Home Recording Forum -
    Make 60% Commission Pushing my new mega system
    Killer Home Recording


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
  •