[go: up one dir, main page]

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

Re-initialize Jcrop when new image uploaded #1034

Open
flibbertigibbet opened this issue Apr 19, 2018 · 1 comment
Open

Re-initialize Jcrop when new image uploaded #1034

flibbertigibbet opened this issue Apr 19, 2018 · 1 comment

Comments

@flibbertigibbet
Copy link
Contributor

Currently the admin interface image cropping tool does not update the cropper view or bounds when a new image is uploaded; the record must be saved first, then revisited to see the new image.

Listen to the hook for image file upload, and update the Jcrop viewer to both use the new image, and to reset the bounds to default to centering.

This may be complicated by the image file not existing yet at a media resources URL, as it is likely uploaded to S3 as part of saving the object.

@flibbertigibbet
Copy link
Contributor Author

See #1026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant