fengyuanchen / photo-editor

A simple photo editing application.
https://fengyuanchen.github.io/photo-editor
MIT License
936 stars 238 forks source link

How to set zoom and position (visible extent) at runtime #7

Closed 1Map closed 8 years ago

1Map commented 8 years ago

How would I go about setting the:

1) Zoom 2) Visible Extent (Position) - Even setting the Center Coordinates of the image would be fine here

after the image was loaded?

fengyuanchen commented 8 years ago

You might need to read the documentation of the Cropper.js as this is just an example of Cropper.js.