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

how to reintialise jrac zoom and crop #39

Open
psanoop opened this issue Nov 26, 2015 · 1 comment
Open

how to reintialise jrac zoom and crop #39

psanoop opened this issue Nov 26, 2015 · 1 comment

Comments

@psanoop
Copy link

psanoop commented Nov 26, 2015

Hi ,
i am using jrac to resize and crop image using PHP, by using this example
http://www.trepmag.ch/z/jrac/example/
i have used a browse button to load a new image , i failed to reinitialize using jQuery('.pane img').jrac();
and reinitialize the zoom and crop to 0 . please reply back .

@trepmag
Copy link
Owner

trepmag commented Nov 30, 2015

Hi,

Perhaps you can try to, before reinitialize, destroy jrac; e.g.:

$('img').jrac('destroy');

Or by selecting the crop element (class is 'jrac_crop') and then resizing it with jQuery css() method.

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

No branches or pull requests

2 participants