diff --git a/dom-pixels.js b/dom-pixels.js index 97d4b37..afffc05 100644 --- a/dom-pixels.js +++ b/dom-pixels.js @@ -114,7 +114,7 @@ module.exports = function getPixels(url, type, cb) { cb = type type = '' } - var ext = path.extname(url) + var ext = path.extname(url.split('?')[0]) switch(type || ext.toUpperCase()) { case '.GIF': httpGif(url, cb)