Homec4science

When an image is too wide in Pholio, scale it down

Authored by epriestley <git@epriestley.com> on Feb 23 2013, 15:28.

Description

When an image is too wide in Pholio, scale it down

Summary:
Currently, if an image is too wide for the viewport, we freak out. Instead, scale it down.

This means we must also scale down all the rectangles on it, which is why this is tricky. However, all the draw/load separation has made it reasonably straightforward.

We'll possibly need to add some kind of "view full size" thing. I'm planning to add an element which shows "85%" or whatever if it's currently scaled.

Test Plan:
Before:

{F33607}

After:

{F33608}

Reviewers: chad, ljalonen

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D5088

Details

Committed
epriestley <git@epriestley.com>Feb 23 2013, 15:28
Pushed
aubortJan 31 2017, 17:16
Parents
rPH8641ef3948ce: Separate selection editing from selection drawing
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH26f8e76ee291: When an image is too wide in Pholio, scale it down (authored by epriestley <git@epriestley.com>).Feb 23 2013, 15:28