Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (FILE_EXT="png"; JP2Q="40";
- find -type f -name "*.$FILE_EXT" -print0 | \
- xargs -0 -P 4 -I {} \
- bash -c 'FILE_BASE="${3%.$1}";
- opj_compress -q "$2" -i "$3" -o "$FILE_BASE.jp2" && \
- img2pdf --pdfa --imgsize 600dpix600dpi --output "$FILE_BASE.pdf" "$FILE_BASE.jp2" && \
- rm -f "$FILE_BASE.jp2"' _ "$FILE_EXT" "$JP2Q" {})
Advertisement
Add Comment
Please, Sign In to add comment