SitePoint Sponsor

User Tag List

Results 1 to 14 of 14
  1. #1
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Is this possible in PHP ?

    Is this possible in PHP ?

    User wants to print some portion of image, for ex. user is having a big picture and then he selects some portion from that image using mouse or some editor and after selection he says Print then the output of print is the only selected portion.
    All this using PHP only

    Thanks

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but how user is going to make selection

  4. #4
    Worship the Krome kromey's Avatar
    Join Date
    Sep 2006
    Location
    Fairbanks, AK
    Posts
    1,621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Making the selection is going to require some client-side code, probably JavaScript; PHP cannot do that part. Once the selection is made, however, imagecopy can do the rest.
    PHP questions? RTFM
    MySQL questions? RTFM

  5. #5
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    any sample code for this will be great helpful for me at this time

  6. #6
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to stick with HTML/PHP, you could use <input type="image"> to send the coordinates where the user clicks, but you'd probably have to show the image once for each corner they need to select.

  7. #7
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try to find some web based image editors, or any webpage that lets you select an arbitrary box of some sort, and look at thier javascript code.

  8. #8
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i tried searching but no luck, any1 having such links

  9. #9
    SitePoint Addict
    Join Date
    Nov 2002
    Location
    Maryland
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.dhtmlgoodies.com/index.html?page=ajax

    Click on the demo for the image cropper. This might be a start for you.

  10. #10
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  11. #11
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    looks good to me , am studying it

  12. #12
    SitePoint Zealot
    Join Date
    Oct 2006
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.hotscripts.com search for "php image manipulation".

    Al

  13. #13
    SitePoint Wizard simplecode's Avatar
    Join Date
    Jun 2006
    Posts
    1,129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks everyone for good links

    clamcrusher i found ur link very intresting also its using ASP but am not sure how to implement it , wht exactly they are using... i think javascript but from where should i start i dont know.
    few tips will be more helpful for me.

    Thanks

  14. #14
    SitePoint Evangelist
    Join Date
    Mar 2006
    Posts
    466
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    simplecode,

    Did you ever find a solution? I'm still researching this.

    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
  •