diff --git a/plugins/removeRasterImages.js b/plugins/removeRasterImages.js index b730b3a1..068b601c 100644 --- a/plugins/removeRasterImages.js +++ b/plugins/removeRasterImages.js @@ -15,7 +15,7 @@ exports.removeRasterImages = function(item) { if ( item.isElem('image') && item.hasAttr('xlink:href') && - /(\.|image\/)(jpg|png)/.test(item.attr('xlink:href').value) + /(\.|image\/)(jpg|png|gif)/.test(item.attr('xlink:href').value) ) { return false; } diff --git a/test/plugins/removeRasterImages.01.orig.svg b/test/plugins/removeRasterImages.01.orig.svg index a16c6a9a..fa6a2e63 100644 --- a/test/plugins/removeRasterImages.01.orig.svg +++ b/test/plugins/removeRasterImages.01.orig.svg @@ -2,6 +2,7 @@ + diff --git a/test/plugins/removeRasterImages.02.orig.svg b/test/plugins/removeRasterImages.02.orig.svg index b896b5af..a89e4da5 100644 --- a/test/plugins/removeRasterImages.02.orig.svg +++ b/test/plugins/removeRasterImages.02.orig.svg @@ -2,6 +2,7 @@ +