darkroomjs icon indicating copy to clipboard operation
darkroomjs copied to clipboard

Empty canvas, empty crob, no image

Open wimurk opened this issue 5 years ago • 1 comments

Like the title says, only the toolbar is working!

image

The error log is clean. No errors are showen. Don't know where to start.

My code is just copied from the demo page.

new Darkroom('#cropper', {
            // Canvas initialization size
            minWidth: 100,
            minHeight: 100,
            maxWidth: 500,
            maxHeight: 500,

            // Plugins options
            plugins: {
                crop: {
                    minHeight: 50,
                    minWidth: 50,
                    ratio: 1
                },
                save: false // disable plugin
            },

            // Post initialization method
            initialize: function () {
                // Active crop selection
                this.plugins['crop'].requireFocus();

                // Add custom listener
                this.addEventListener('core:transformation', function () { /* ... */
                });
            }
        });

Also the html is copied from the demo page.

wimurk avatar Mar 13 '19 13:03 wimurk

Update: The toolbar works and i can even crop something. Its empty so i don't know what. image

When i click the save button it gives the following error VM21716:1 Uncaught TypeError: Cannot read property 'getTop' of null at child.cropCurrentZone (<anonymous>:1:23284)

wimurk avatar Mar 13 '19 13:03 wimurk