MattKetmo / darkroomjs

Extensible image editing tool in your browser
https://mattketmo.github.io/darkroomjs
MIT License
1.42k stars 405 forks source link

Saving before crop changes are locked in produces unexpected results #66

Open marcelgruber opened 9 years ago

marcelgruber commented 9 years ago

The image will not appear to the user as they desired, and the Base64 image will be even more wrong.

Is there a way we can disable save until the user accepts or denies crop mode?

Venorcis commented 9 years ago

We have the same issue. If you save before you 'accept the crop', you actually save the image with the crop overlay on it. I guess the save button should be gone/disabled whilst cropping.

marcelgruber commented 9 years ago

Exactly. Or conversely, in the save event you could check if the crop plugin is currently in use. The question is how.

ziplizard commented 9 years ago

If I could recommend one enhancement, it would be exactly what has been suggested above. The save icon simply needs to be disabled/hidden while cropping. I'm currently facing a UI challenge where users click #save before clicking #done. This dilemma can be resolved very simply by disabling or hiding the #save button before/during cropping. I would be verify interested in this update. Thanks.