question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to change croppie options after initialization

See original GitHub issue

I first init a croppie by var basic = $('.container').croppie({ viewport: { width: 200, height: 100 }, boundary: { width: 250, height: 150 } }); then bind it to an image. When binding it to a different one later how can I change the viewport and boundary afterwards?

Thanks in advance and great job on croppie!

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:1
  • Comments:29 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bunnyhucommented, Aug 27, 2018

Hi, I just start to use and integrate this one to my admin site. It would be nice to see some feature, I am list it then you can choice you would be like it or not.

  1. Change options after initialization. A setter/getter method for options. For example bound the enableResize to a checkbox, or change the crop size from input box will be useful.
  2. Get information from the uploaded image. I am not a JS pro, but maybe we know the original size, perhaps the file name, exif info, etc. Just give back an array with all info. It would be nice to make the UX better and show information during the editing.
  3. A far more detailed documentation. With example for the methods. Details for the object that I get back from get() / update() … I must check it with console.log because there is simple no information. ( array[orientation int, points array[4], zoom float] )

I hope I can give you some new idea. I am sorry I am not a js pro (I working on server side languages, I am just beginner on js) so I cannot write it for you.

0reactions
Koban2dot0commented, Aug 5, 2022

bump

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Ability to change croppie options after initialization -
Ability to change croppie options after initialization. ... I first init a croppie by var basic = $('.container').croppie({ viewport: { width: 200,
Read more >
Croppie - a simple javascript image cropper - Foliotek
Bind an image to the croppie. Returns a promise to be resolved when the image has been loaded and the croppie has been...
Read more >
setting img src attribute in croppie js call back function
The callback function is not able to set the src attribute of an img tag, after cropping and uploading using croppie.js.
Read more >
Croppie - a simple javascript image cropper - Museum Thailand
Bind an image the croppie. Returns a promise to be resolved when the image has been loaded and the croppie has been initialized....
Read more >
Croppie - a simple javascript image cropper - Food Pantries
Croppie · Croppie is a fast, easy to use image cropping plugin with tons of configuration options! · The Basics · Installation ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found