matiasgali / guillotine

jQuery plugin to crop images within an area (fully responsive), allowing to drag (touch support), zoom and rotate.
http://guillotine.js.org
327 stars 100 forks source link

Precise crop area #48

Closed nobutsta closed 9 years ago

nobutsta commented 9 years ago

Hello, I tried cropping the original image with those val sent from your plugin. But the given values seems like it's not work. Here's the spec.

After I use these values to crop the image with php. The position (x,y) is not start on the correct point. I also tried change every values. But no luck. Can you please give an example of precise php to crop the image correctly?

matiasgali commented 9 years ago

Hi @nobutsta, this appears to be a question rather than an actual issue. Please read the guidelines for contributing.

Possibly you're not applying all the transformations (rotation and zoom) before cropping, as it says in the docs:

Important: You should rotate and scale first, and then apply the cropping coordinates to get it right!

If that doesn't solve your problem use any of the resources listed in the CONTRIBUTING file to get help. Let's keep the issue tracker only to report issues or bugs.

neo125874 commented 7 years ago

@matiasgagliano thanks for your plugin & info about "apply before crop" again.