Skip to content

Commit

Permalink
quick bail
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Apr 10, 2012
1 parent 4a5ea58 commit 177423e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 177423e

Please sign in to comment.