prepare
frames as new rasters. With a background in options, a pixel with alpha under 128 becomes that colour and every other pixel becomes opaque; without one, pixels are unchanged. Each frame is then enlarged through NearestScale, which refuses a result that is too large. frames is not changed.