More tests of StandardImageMetadataSupport + minor API changes

This commit is contained in:
Harald Kuhr
2022-10-08 14:28:10 +02:00
parent 6458fcdcbd
commit 7ed5663633
10 changed files with 185 additions and 14 deletions
@@ -9,7 +9,7 @@ import static com.twelvemonkeys.lang.Validate.notNull;
final class WebPImageMetadata extends StandardImageMetadataSupport {
WebPImageMetadata(ImageTypeSpecifier type, VP8xChunk header) {
super(builder(type)
.withCompressionName(notNull(header, "header").isLossless ? "VP8L" : "VP8")
.withCompressionTypeName(notNull(header, "header").isLossless ? "VP8L" : "VP8")
.withCompressionLossless(header.isLossless)
.withPixelAspectRatio(1.0)
.withFormatVersion("1.0")