MattKetmo / darkroomjs

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

Darkroom handling of devicePixelRatio #77

Open joe-gh opened 8 years ago

joe-gh commented 8 years ago

Right now, I'm having problems getting darkroom to work properly in Firefox and mobile browsers due to the higher pixel density.

I'm attaching two images, one rendered in chrome where devicePixelRatio = 1, and one in Firefox where devicePixelRatio = 2. Is there a way of telling darkroom to scale the canvas appropriately? I was able to get things working in another area of the site that just uses Fabric.js, but so far no luck with Darkroom.

Thanks.

screen shot 2016-01-02 at 14 45 34

screen shot 2016-01-02 at 14 57 33