diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-06-05 12:46:50 -0400 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-06-05 12:46:50 -0400 |
| commit | 932e04d91f392f0ce55ddbe3bdabd07b78a68847 (patch) | |
| tree | 3fb64773d4e94470cf9008423db505ce9abb11e3 | |
| parent | 5630dd6b2f90ec36a3e6b0f1d1c0532b36396b4b (diff) | |
fix curl
| -rw-r--r-- | client/src/lib/timeline/timelineFull.js | 1 | ||||
| -rw-r--r-- | lib/awprint/index.js | 2 |
2 files changed, 1 insertions, 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') |
