Releases: stanio/xbrz-java
xBRZ for Java 1.8.2
Maven Central artifacts
Note
As usual, find the command-line xbrz-tool.jar
along with the xbrz.cmd
(Windows batch) and xbrz.sh
(Linux shell) really executable jar variants attached here.
Highlights
- Important thread-safety fix (a0bf929)
- Few speculative performance optimizations (a652a83, b9bc973)
- A new
XbrzFilter
for the Image Producer/Consumer paradigm - A new
ColorDistance.integerYCbCr()
providing better performance than (the default)ColorDistance.yCbCr()
. While the performance is not better thanColorDistance.bufferedYCbCr()
, it comes at no additional memory cost and possibly providing better quality compared to lower resolution buffer tables
Important
API breaking changes
These may or may not affect your current usage:
-
XbrzImage.mrImage(Image)
is now declared to return an intersection type<M extends Image & MultiResolutionImage>
vs. previouslyAbstractMultiResolutionImage
(c9b1e86) -
MultiResolutionCachedImage
constructor no longer acceptsvariantProducer
function. The class is now abstract and declares an abstractcreateResolutionVariant(width, height) : Image
(bead258)If you haven't subclassed this one but used just the static factory
MultiResolutionCachedImage.of(width, height, variantProducer)
, you shouldn't need any adjustments.
Full changelog: 1.8.1...1.8.2
xBRZ for Java 1.8.1
Artifacts now packaged as Java 8 compatible JPMS modular multi-release JARs:
JAR | JPMS name |
---|---|
io.github.stanio.xbrz.core |
|
io.github.stanio.xbrz.awt |
For Java 9+ users, two new classes have been introduced:
MultiResolutionCachedImage
– general purposeMultiResolutionImage
implementation; andXbrzImage
– utility to obtainMultiResolutionImage
using xBRZ on an original image or directly apply the same on anImageIcon
(that's where this library all started).
Changelog: 1.8.0...1.8.1
xBRZ 1.8 for Java
First official release to Maven Central:
The scaler tool bundles both of xbrz-core
and xbrz-awt
into its own JAR and a compiled binary is downloadable here (not from Maven Central):
xbrz-tool.jar
(executable jar)xbrz.sh
(really executable jar / *nix)xbrz.cmd
(really executable jar / win)
Note, you still need to have java
on the PATH
for xbrz.sh
and xbrz.cmd
to work.