#!/bin/sh
#
# Upscale an image with xbrzscale
# Check output is a valid png file
# Check output file has been upscaled
# Downscale the output, and check against original image
#
#
# Show commands and exit on error
set -e
set -x
#
# Video output not used
export SDL_VIDEODRIVER=dummy
#
#
xbrzscale 6 debian/AE.png AE6.png
pngcheck AE6.png
pngcheck AE6.png | grep 384x288
convert -sample '64x48!'  AE6.png AE1.png
compare -metric AE debian/AE.png AE1.png dif.png
