SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast appy's Avatar
    Join Date
    Feb 2002
    Location
    UK
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Upload - How would you approach this?

    Hi All,

    Just looking for a bit of direction with what I suspect will be a JS and PHP solution.

    A client has asked for the a web page where the visitor can upload their photo, it is then displayed with another image mask over it (think about those seaside paintings you stick you head thru!) then they can send the 'composite' image to an email address.

    The uploading the image and sending, I'm fine with through PHP. But what about the preview of the image, the mask and building the composite image?

    Any / all thoughts appreciated.

    Pete

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,716
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by appy View Post
    The uploading the image and sending, I'm fine with through PHP. But what about the preview of the image, the mask and building the composite image?
    The simplest solution is for parts of the mask to be partly transparant, as either a gif image or preferably a png image. That way you can place the uploaded image directly underneath the mask, as either a background image on the mask itself, or as a separate image layer.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast appy's Avatar
    Join Date
    Feb 2002
    Location
    UK
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Paul,

    The main problem now is generating the composite image - do you know if this is even possible?

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,716
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by appy View Post
    Thanks Paul,

    The main problem now is generating the composite image - do you know if this is even possible?
    With some clever PHP work, I suspect it might be.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Tags for this Thread

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
  •