-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for AVIF format #191
Comments
AVIF has a very low resolution limit - 8193x4320, as it's made for video. It can be rendered in tiles, but not perfect in that. JPEG-XL, on the other hand, is better in every way. It support resolution up to 1x1 Gp. It's still a little less than 2x2 Gp of PNG and 4x4 Gp of JPEG2000, but still quite a lot. So would make possible to use scale by 16 and 32. It also does lossless encoding better than PNG and WebP. Google is trying to sabotage it though, but hopefully it will make its way. |
You don't need AVIF support, you can do it now! I did a mini (simple) shell script that uses #!/bin/bash
# needs installed: waifu2x-ncnn-vulkan, imagemagick
file1="${1%.*}"
mkdir -p "/tmp/waifu/"
png_in="/tmp/waifu/in.png"
png_out="/tmp/waifu/out.png"
convert "$1" "$png_in"
waifu2x-ncnn-vulkan -i "$png_in" -o "$png_out" -s 2
convert "$png_out" "$file1".avif
rm -rf "/tmp/waifu/"
|
Currently, attempt to upscale image from AVIF fails with error message:
While I do have
libavif
installed in my system.Upscaling into AVIF also doesn't work with a different error:
AVIF uses AV1 codec for compression and achieves excellent results at it.
It is open-source and royalty-free. It would be great if waifu2x supported it natively.
The text was updated successfully, but these errors were encountered: