diff --git a/lib/imgManip.js b/lib/imgManip.js
index <HASH>..<HASH> 100644
--- a/lib/imgManip.js
+++ b/lib/imgManip.js
@@ -54,7 +54,7 @@ exports.effect = function (query, subject, dimensions, out) {
       if (opts.verbose.val) {
         console.log('query', query)
       }
-      if (!query.outType && query.url.slice(-4).toLowerCase() === '.png' && ['mask', 'blur', 'overlayBlur'].indexOf(effect) === -1) {
+      if (!query.outType && query.url && query.url.slice(-4).toLowerCase() === '.png' && ['mask', 'blur', 'overlayBlur'].indexOf(effect) === -1) {
         query.outType = 'png'
       }
       var format = (query.outType)
Update imgManip.js

Check for query.url before slicing