-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.sh
executable file
·26 lines (20 loc) · 1011 Bytes
/
demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Demo script:
# - Convert several directory trees from JP2 to TIFF
# - From these TIFFs do a roundtrip conversion back to JP2
# - Verify if JP2s from roundtrip conversion meet KB requirements
# using jprofile (https://github.com/KBNLresearch/jprofile)
# - power off the machine when finished
jp2totiff=~/ownCloud/jp2totiff/jp2totiff.sh
tifftojp2=~/ownCloud/jp2totiff/tifftojp2.sh
# Convert to TIFF
$jp2totiff /media/johan/Elements/MMUBWA03_000000001_1_01 MMUBWA03_000000001_1_01-TIFF
$jp2totiff /media/johan/Elements/MMKB18A_000000001_1_04 MMKB18A_000000001_1_04-TIFF
# Roundtrip conversion to JP2
$tifftojp2 MMUBWA03_000000001_1_01-TIFF MMUBWA03_000000001_1_01-JP2-roundtrip
$tifftojp2 MMKB18A_000000001_1_04-TIFF MMKB18A_000000001_1_04-JP2-roundtrip
# Analyse JP2s
jprofile -p kb_300Colour_2014.xml MMUBWA03_000000001_1_01-JP2-roundtrip MMUBWA03_000000001_1_01
jprofile -p kb_300Colour_2014.xml MMKB18A_000000001_1_04-JP2-roundtrip MMKB18A_000000001_1_04
# Power off the machine
poweroff