Skip to content

Handle NYPL Stereogranimator rotation in nypl_recrop.rb #3

@ryanfb

Description

@ryanfb

Some NYPL Stereogranimator images have some amount of rotation applied, exposed in the rotation field in the JSON, e.g. http://stereo.nypl.org/view/89612.json has "rotation":"0.19999999999999998". We should figure out how to take this rotation into account when cropping high-res originals. Presumably we can rotate the thumbnail and original by this amount before applying the rest of the process, but it's a little unclear how the rotation is applied and how it affects the image: What does the value mean (clockwise, counterclockwise, units)? Do we rotate about the center, or a corner? Do the x1,y1,x2,y2 variables still index into a rotated image that has the same dimensions as the original thumbnail image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions