#!/bin/sh
# Author: Nathan Teodosio <nathan.teodosio@canonical.com>
# Adapted from Christian Ehrhardt's suggestion at LP: 1979121

set -eu

gdk-pixbuf-thumbnailer -s 128 tests/t1.webp test1.png
file -i test1.png | grep -qFw image/png
gdk-pixbuf-thumbnailer -s 128 tests/t1.webp test2.png
cmp -s test1.png test2.png
