Open marcelgruber opened 8 years ago
the loaded image always has 1 extra pixel on the top and right. e.g. 199 x 199 image => 200 x 200 image suspect that problem is at canvas and viewport
Any ideas how to fix it? Always have extra top and right borders for big pictures, and left and top borders for small pictures
upd. In my case adding 2 lines after line 188 https://github.com/MattKetmo/darkroomjs/blob/master/lib/js/core/darkroom.js#L189
canvasHeight -= 2;
canvasWidth -= 2;
solve the problem
Right from the official example page itself
Though the edges get clipped off when saving the image, it does become an issue if the save plugin is turned off.