Skip to content

Commit

Permalink
Fix pipelines
Browse files Browse the repository at this point in the history
Follow on to correct #549
  • Loading branch information
sbs20 committed Oct 16, 2023
1 parent fbd4897 commit b777ae5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app-server/src/classes/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ module.exports = class Config {
extension: 'pdf',
description: 'PDF (TIF | @:pipeline.lzw-compressed)',
commands: [
'while read filename ; do convert -compress lzw $filename converted-$(date +%s.%N).tif ; done',
'while read filename ; do convert -compress lzw $filename converted-$(date +%s.%N).tif ; done && ls tmp-*.jpg',
'convert @- scan-0000.pdf',
'ls scan-*.*'
]
Expand All @@ -195,7 +195,7 @@ module.exports = class Config {
extension: 'pdf',
description: 'PDF (JPG | @:pipeline.high-quality)',
commands: [
'while read filename ; do convert -quality 92 $filename converted-$(date +%s.%N).jpg ; done',
'while read filename ; do convert -quality 92 $filename converted-$(date +%s.%N).jpg ; done && ls tmp-*.jpg',
'convert @- scan-0000.pdf',
'ls scan-*.*'
]
Expand All @@ -204,7 +204,7 @@ module.exports = class Config {
extension: 'pdf',
description: 'PDF (JPG | @:pipeline.medium-quality)',
commands: [
'while read filename ; do convert -quality 75 $filename converted-$(date +%s.%N).jpg ; done',
'while read filename ; do convert -quality 75 $filename converted-$(date +%s.%N).jpg ; done && ls tmp-*.jpg',
'convert @- scan-0000.pdf',
'ls scan-*.*'
]
Expand All @@ -213,7 +213,7 @@ module.exports = class Config {
extension: 'pdf',
description: 'PDF (JPG | @:pipeline.low-quality)',
commands: [
'while read filename ; do convert -quality 50 $filename converted-$(date +%s.%N).jpg ; done',
'while read filename ; do convert -quality 50 $filename converted-$(date +%s.%N).jpg ; done && ls tmp-*.jpg',
'convert @- scan-0000.pdf',
'ls scan-*.*'
]
Expand All @@ -223,7 +223,7 @@ module.exports = class Config {
description: '@:pipeline.ocr | PDF (JPG | @:pipeline.high-quality)',
get commands() {
return [
'while read filename ; do convert -quality 92 $filename tmp-$(date +%s.%N).jpg ; done && ls tmp-*.jpg',
'while read filename ; do convert -quality 92 $filename tmp-$(date +%s.%N).jpg ; done && ls tmp-*.jpg',
`${config.tesseract} -l ${config.ocrLanguage} -c stream_filelist=true - - pdf > scan-0001.pdf`,
'ls scan-*.*'
];
Expand Down

0 comments on commit b777ae5

Please sign in to comment.