Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
GraphicsMagick: only require when necessary
Browse files Browse the repository at this point in the history
Cause we hardly ever use it anyway.
  • Loading branch information
danielbeardsley committed Jun 28, 2013
1 parent c9b47e6 commit ba4f1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImageMarkupCall.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var ImageMarkupBuilder = require('./ImageMarkupBuilder').Builder;
var GM = require('gm');
var Fabric = require('fabric').fabric;
var argv = require('optimist').argv;

Expand Down Expand Up @@ -77,6 +76,7 @@ function processArgs() {
function convertMarkupToJSON(callback, markup, infile, outfile) {
var json = {};

var GM = require('gm');
GM(infile).size(function (err, size) {
if (err) throw err;

Expand Down

0 comments on commit ba4f1cb

Please sign in to comment.