2 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
17 apngopt "${png}" "${new}"
18 if [[ $(size "${png}") -gt $(size "${new}") ]]; then
30 pngcrush -e .png.new "$@"
40 set -- $(find -name '*.png')
43 if type -P apngopt >/dev/null; then
44 # apngopt likes to corrupt images.
46 elif type -P pngcrush >/dev/null; then
49 echo "error: could not find apngopt or pngcrush"