Skip to content

Photo Uploader

Photo uploader allows users to upload and manage an image used as avatar.

Usage

The photo uploader allows users to upload an image via file browser. It optionally provides an edit dialog for cropping the image.

Photo upload

When to use

  • In the user profile so the user can choose/change his avatar.
  • When a user is created.

Best practices

  • The original image is kept (if necessary, a compressed version of it) so the user can undo the cropping.
  • Display the compressed version of the image in the preview if compression is required.
  • Adjust the size according to layout needs.
  • The placeholder can use any of the avatar colors.

Except where otherwise noted, content on this site is licensed under MIT License.