#!/bin/sh

# Build alternate format images for the live intensity buttons.
# Should be usable by most clients and not too expensive.
# WEBP format is used for this.
#
# REMOVE derived (stale) images if the source is not available.
# REMOVE derived (stale) images if the alternate format is not smaller.

# Use script/build_alternate_format_compact_image

# 786 Oct 29 12:21 out/hourly/button/intico1-32.png
#1433 Oct 29 12:21 out/hourly/button/intico1-48.png
#2005 Oct 29 12:21 out/hourly/button/intico1-64.png

# DHD20221213: 48px button deprecated.
#sizes="32 48 64"

sizes="32 64"
for s in $sizes;
    do
	src=out/hourly/button/intico1-$s.png
	dst=$src.webp
        script/build_alternate_format_compact_image $src $dst
    done

exit 0
