Skip to content

Conversation

@mindflowgo
Copy link

@mindflowgo mindflowgo commented Dec 21, 2025

Added a backward compatible feature enhancement:

  • viewport resize bars so we adjust it on the image: pass in "resizeBars: true" in the options.
  • added enableRotate option: adds rotate buttons beside zoom bar to rotate 90, 180, 270 degrees.
  • get() method: ability to get crop rectangle & transform/viewport to restore viewport
  • preset parameter on bind(): ability to restore picture to location it was at before in viewport

Scope of changes:

  • core logic kept same, some cleanup of es6, listener cleanup, goal to keep changes intuitive and non-breaking on code base
  • transform logic consolidated into #preserveTransform()
  • built out resize handle bars
  • buit out rotation logic (rotating image canvas to minimize logic changes)
  • adjusted demo code to showcase new abilities.

Thanks for the awesome project!

Added new option 'resizeBars' to show resize handles for viewport adjustment.
Added a note about Croppie Resize handles and updated the installation and usage sections for clarity.
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

Successfully merging this pull request may close these issues.

1 participant