Unverified Commit bf2fb3d4 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

fix formatting error in external kdu_compress command



Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent f61b9c84
Pipeline #13144 passed with stages
in 12 minutes and 50 seconds
......@@ -68,23 +68,9 @@ object Transformations extends Logging {
def imageToJp2(sourceFilePath: String, destFilePath: String): Try[String] = Try {
val intermediaryFile = Files.createTempFile("image-", ".tif")
val imagemagickCommand = s"convert -format tif -compress none $sourceFilePath ${intermediaryFile.toString}"
val kduCompressCommand =
s"""kdu_compress -i ${intermediaryFile.toString} \
| -o $destFilePath \
| -rate 3 \
| -flush_period 1024 \
| -quiet \
| Creversible=no \
| Clevels=6 \
| Clayers=6 \
| Cprecincts={256,256},{256,256},{128,128} \
| Corder=RPCL \
| Cuse_sop=yes \
| Cuse_eph=yes \
| Cblk={64,64} \
| ORGgen_plt=yes \
| ORGtparts=R \
| Stiles={512,512}""".stripMargin
// scalastyle:off
val kduCompressCommand = s"""kdu_compress -i ${intermediaryFile.toString} -o $destFilePath -rate 3 -flush_period 1024 -quiet Creversible=no Clevels=6 Clayers=6 Cprecincts={256,256},{256,256},{128,128} Corder=RPCL Cuse_sop=yes Cuse_eph=yes Cblk={64,64} ORGgen_plt=yes ORGtparts=R Stiles={512,512}"""
// scalastyle:on
try {
executeCommand(imagemagickCommand).get
executeCommand(kduCompressCommand).get
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment