Closed vladch closed 9 years ago
Hi @vladch, based on the code I'd say you're using an old version of the plugin.
Similar problems were reported on issue #15 and fixed on version 1.3 of Guillotine.
Check out the new code, it uses natural properties and degrades gracefully when not supported.
Thanks Matias, yes I was using the version from December. Will give the new version a shot.
Hi, thanks for your great job with the plugin! I ran into a problem when the plugin canvas element would get 0 size, even is it is created within onload of the image. It was happening in my particular case all the time, it does happen in your live example when it is loaded fresh for the first time, consequent refreshes work fine. This is what I did to fix it:
Original code:
New code:
naturalWidth/naturalHeight are supported by all the browsers, except for IE* and lower. I am not sure if it is an issue for your library, since those browsers have 1.3% market share as of February.