From 932e04d91f392f0ce55ddbe3bdabd07b78a68847 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 5 Jun 2017 12:46:50 -0400 Subject: fix curl --- client/src/lib/timeline/timelineFull.js | 1 - lib/awprint/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/lib/timeline/timelineFull.js b/client/src/lib/timeline/timelineFull.js index 7af00a8..1b60575 100644 --- a/client/src/lib/timeline/timelineFull.js +++ b/client/src/lib/timeline/timelineFull.js @@ -54,7 +54,6 @@ export default class TimelineFull extends Component { const originalHeight = Number(item.image.height) let height = originalHeight > imageHeight ? imageHeight : originalHeight let width = originalWidth * height / originalHeight - console.warn(width, imageWidth) if (width > imageWidth) { width = imageWidth height = originalHeight * imageWidth / originalWidth diff --git a/lib/awprint/index.js b/lib/awprint/index.js index c718828..6e0b012 100644 --- a/lib/awprint/index.js +++ b/lib/awprint/index.js @@ -71,7 +71,7 @@ function AWPrint (options) { Print.findOne({ _id: req.body._id }).then( (job) => { job.printed = true - var cmd = 'curl ' + job.url + ' | lpr -P ARMORYHPM553 -o page-top=28' + var cmd = 'curl ' + job.url + ' | lpr -P ARMORYHPM553 -o page-top=28 -o page-left=23 -o page-right=23 -o page-bottom=0 -o media=a4' console.log(cmd) exec(cmd, function(error, stdout, stderr) { console.log('ok') -- cgit v1.2.3-70-g09d2