facebook

Crop a round shaped image?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #346806 Reply

    rick.gommers
    Member

    Hi all,

    I want to implement something like Facebook has on their new profile picture function. You can select which part of the image must serve as your profile picture.

    Instead of a square shape I’d like a round shape in my app. The selected image object should be returned as a new image I can use in my app.

    I know Facebook does it in PHP, but I don’t know for sure if I can return an image object (after selection) with javacript. Could this be done in pure javascript or jQuery?

    #346808

    support-michael
    Keymaster

    I recall we used css to round the corners on images used in the old Test Center’s homescreen implementation. Do a google search to find snippets for adding round corners and gloss effect to see how it is done. If you need to manually create a new image can you use gimp or photoshop or other image editor to crop and round an image’s corners.

    #346809

    rick.gommers
    Member

    Hi michael,

    I know how to round borders of images with border radius. But with my app the user can take a picture or select an image from gallery and they will put it in a commercial product. The image has to be created in the app and exactly as the user wants to, just like facebook photo picture. That’s why I’ll try to let them create the image themselves with javascript.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Crop a round shaped image?

You must be logged in to post in the forum log in