-easyimage = require("easyimage")
 _ = require("underscore")
 metrics = require("./metrics")
 logger = require("logger-sharelatex")

			dst: destPath
			width: 600
			height: 849
		args = "nice convert -flatten -background white -resize 600x -density 300 #{sourcePath} #{destPath}"
		exec args, (err, stdout, stderr)->
			callback(err, destPath)

			dst: destPath
			width: 424
			height: 300
		args = "nice convert -flatten -background white -resize 260x -density 300 #{sourcePath} #{destPath}"
		exec args, (err, stdout, stderr)->
			callback(err, destPath)	

