Skip to content

Releases

NuaForma Image Comparison 5.0.0

Choose a tag to compare

@mrhoeve mrhoeve released this 25 Oct 17:30
v5.0.0
a2e999b

First independently maintained NuaForma release, based on upstream image-comparison v4.4.0. Original authorship, Git history and Apache-2.0 licensing are preserved.

Compatibility and migration

  • Java 17 is the minimum supported runtime; Java 8 is unsupported.
  • Replace com.github.romankh3.image.comparison imports with dev.nuaforma.image.comparison and recompile.
  • Java core: dev.nuaforma:image-comparison:5.0.0, with no external runtime dependencies.
  • Optional Kotlin assertions: dev.nuaforma:image-comparison-kotlin:5.0.0. Declaring the adapter alone brings the Java core, Kotlin standard library and required annotations transitively.
dependencies {
    testImplementation("dev.nuaforma:image-comparison-kotlin:5.0.0")
}
assertImagesMatch(expected, actual, "preview") {
    pixelTolerance = 0.1
    excludeRectangle(10, 20, 100, 200)
}

Changes

  • Framework-independent Kotlin comparison/assertion DSL with validated options and inspectable failures.
  • Correct matching for a single differing pixel at the origin and sequential reuse of comparison instances.
  • Report the percentage of non-excluded pixels exceeding tolerance; accepted matches retain their measured percentage. Compare alpha independently. Unequal dimensions remain strict SIZE_MISMATCH results without resizing.
  • Rectangle drawing filters preserve detected differences, classification and percentages.
  • Heap-based region traversal avoids recursive stack exhaustion.
  • Reject undecodable image input, release owned streams/drawing contexts and return independent non-null rectangle collections.
  • Separate Java/Kotlin artifacts with POM, binaries, sources and documentation; signed and independently verified publications. Build migration to the pinned Gradle wrapper, without adding Java-core runtime dependencies.

All 135 library tests pass on Java 17 and 25. Packaged consumers, dependency graphs and reproducible archives are qualified independently.

Known open maintenance

See CHANGELOG.md, the Kotlin guide and Apache attribution.