Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A sample photon-core app

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Procfile
Octocat-spinner-32 README.md
Octocat-spinner-32 config.yml
Octocat-spinner-32 pom.xml
README.md

photon-example

An example Dropwizard app that uses photon-core to process Twitter avatars on the fly.


Example transformations

The original image
Original

Resized to a width of 200px (;w=200 added to the original URL)
200px Wide

Rotated 180 degrees (;r=180 added to the original URL)
Rotated 180 degrees

A crop of just the face (;c=130,60,200,200 added to the original URL)
Cropped closer

Cropped to the face, rotated, then resized
Resized, cropped, and rotated


Try it out on your own avatar: https://photon-example.herokuapp.com/{your-twitter-user-name}

Something went wrong with that request. Please try again.