Skip to content

Commit

Permalink
feat: Always apply top-left correction for new derivatives (DEV-4481) (
Browse files Browse the repository at this point in the history
  • Loading branch information
siers authored Jan 16, 2025
1 parent 6840226 commit 83185e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/swiss/dasch/domain/SipiClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object SipiCommand {
(for {
abs1 <- fileIn.toAbsolutePath
abs2 <- fileOut.toAbsolutePath
} yield List(flag(), outputFormat.toCliString, abs1.toString, abs2.toString)).orDie
} yield List(flag(), "--topleft", outputFormat.toCliString, abs1.toString, abs2.toString)).orDie
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/swiss/dasch/domain/SipiCommandSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ object SipiCommandSpec extends ZIOSpecDefault {
check(Gen.fromIterable(SipiImageFormat.all)) { format =>
for {
cmd <- FormatArgument(format, Path("/tmp/example"), Path("/tmp/example2")).render()
} yield assertTrue(cmd == List("--format", format.toCliString, "/tmp/example", "/tmp/example2"))
} yield assertTrue(cmd == List("--format", "--topleft", format.toCliString, "/tmp/example", "/tmp/example2"))
}
},
test("should assemble query command") {
Expand Down

0 comments on commit 83185e9

Please sign in to comment.