|
|
thumbnail: (sourcePath, callback)->
|
|
thumbnail: (sourcePath, callback)->
|
|
|
command = ["convert", "-flatten", "-background", "white", "-density", "300", "-define", "pdf:fit-page=#{width}", sourcePath, "-resize", width, destPath]
|
|
command = ["convert", "-flatten", "-background", "white", "-density", "300", "-define", "pdf:fit-page=#{width}", sourcePath, "-resize", width, destPath]
|
|
|
safe_exec command, childProcessOpts, (err, stdout, stderr)->
|
|
safe_exec command, childProcessOpts, (err, stdout, stderr)->
|