diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 160951a..805e78a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v3 - name: Install specific version 2.3 of OpenJPEG library @@ -43,7 +43,7 @@ jobs: publish: if: (github.event_name == 'push' && (contains(github.ref, 'main') || startsWith(github.ref, 'release/'))) || github.event_name == 'release' needs: build - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Check out repository uses: actions/checkout@v3 diff --git a/imageio-turbojpeg/src/test/java/de/digitalcollections/turbojpeg/imageio/TiffJpegImageReaderTest.java b/imageio-turbojpeg/src/test/java/de/digitalcollections/turbojpeg/imageio/TiffJpegImageReaderTest.java index 1516ecf..2945ec3 100644 --- a/imageio-turbojpeg/src/test/java/de/digitalcollections/turbojpeg/imageio/TiffJpegImageReaderTest.java +++ b/imageio-turbojpeg/src/test/java/de/digitalcollections/turbojpeg/imageio/TiffJpegImageReaderTest.java @@ -43,6 +43,25 @@ private static Stream> tiffReaders() { } } + @ParameterizedTest + @MethodSource("tiffReaders") + public void testReadInfo(Class readerClass) throws IOException { + ImageReader reader = getReader(readerClass); + assertThat(reader.getNumImages(true)).isEqualTo(6); + assertThat(reader.getWidth(0)).isEqualTo(2064); + assertThat(reader.getHeight(0)).isEqualTo(2553); + assertThat(reader.getWidth(1)).isEqualTo(1032); + assertThat(reader.getHeight(1)).isEqualTo(1276); + assertThat(reader.getWidth(2)).isEqualTo(516); + assertThat(reader.getHeight(2)).isEqualTo(638); + assertThat(reader.getWidth(3)).isEqualTo(258); + assertThat(reader.getHeight(3)).isEqualTo(319); + assertThat(reader.getWidth(4)).isEqualTo(129); + assertThat(reader.getHeight(4)).isEqualTo(159); + assertThat(reader.getWidth(5)).isEqualTo(64); + assertThat(reader.getHeight(5)).isEqualTo(79); + } + @ParameterizedTest @MethodSource("tiffReaders") public void testReadFull(Class readerClass) throws IOException {