Browse files

quick bail

  • Loading branch information...
1 parent 4a5ea58 commit 177423e5ba68246657b485f9160a3ad149546939 @holman committed Apr 10, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 index.js
View
2 index.js
@@ -71,6 +71,8 @@ server.get(new RegExp("^/(.*)(?:.jpg)?$"), function(request, response, match) {
var output = "/tmp/fuck-" + Math.floor(Math.random(10000000)*10000000) + '.jpg'
download(match, output, function(){
im.identify(output,function(err,features){
+ if (err)
+ return;
var h = features.height < 100 ? features.height : 100
, w = features.width < 500 ? features.width : 500
, args = [

0 comments on commit 177423e

Please sign in to comment.