Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide alternate, cropped photo for small displays #9

Open
aaronrudkin opened this issue Aug 11, 2018 · 0 comments
Open

Provide alternate, cropped photo for small displays #9

aaronrudkin opened this issue Aug 11, 2018 · 0 comments
Labels

Comments

@aaronrudkin
Copy link
Member

aaronrudkin commented Aug 11, 2018

From @adamboche on May 27, 2017 23:54

Copied from original issue: voteview/WebVoteView#290

As per Alicia Parlapiano at the NYT, some images sometimes look rough when displayed small because the congressperson's face is too small relative to the overall picture canvas. We should, thus, provide alternate thumbnail versions in these cases which are cropped.

To do this, we would have to:

  1. Use face detection to figure out what percentage of the frame the face takes up
  2. If it is below a threshold, produce a cropped version
  3. Identify images that should be thrown out because they give us nothing to work with.
  4. Potentially offer a second set of photos altogether designed for small icon sized display.
@aaronrudkin aaronrudkin added the AP label Aug 11, 2018
@aaronrudkin aaronrudkin changed the title Crop the member photos in places where they are small, like the vote and party pages. The zoomed out versions look ok on the individual member pages since the size is bigger. Provide alternate, cropped photo for small displays Aug 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant