 exec = require('child_process').exec
 approvedFormats = ["png"]
 
-twoMinsInMs = 2 * (60 * 1000)
+fourMinsInMs = 4 * (60 * 1000)
 
 module.exports =
 

			return callback err
		args = "nice convert -flatten -density 300 #{sourcePath} #{destPath}"
		opts =
			timeout: twoMinsInMs
		exec args, opts, (err, stdout, stderr)->
			timer.done()
			if err?

			height: 849
		args = "nice convert -flatten -background white -resize 548x -density 300 #{sourcePath} #{destPath}"
		opts =
			timeout: fourMinsInMs
		exec args, opts,(err, stdout, stderr)->
			if err?
				logger.err err:err, stderr:stderr, sourcePath:sourcePath, "something went wrong converting file to preview"
