Add raster panel icon family
This commit is contained in:
parent
c81712b781
commit
60cc48a4b7
278 changed files with 1992 additions and 621 deletions
|
|
@ -4,8 +4,6 @@ set -euo pipefail
|
|||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$repo_root"
|
||||
|
||||
ictool="/Applications/Xcode/Xcode.app/Contents/Applications/Icon Composer.app/Contents/Executables/ictool"
|
||||
icon_doc="$repo_root/design/brand/Burrow.icon"
|
||||
output_dir_arg="${1:-design/brand/low-res}"
|
||||
if [[ "$output_dir_arg" = /* ]]; then
|
||||
output_dir="$output_dir_arg"
|
||||
|
|
@ -27,37 +25,15 @@ require_tool() {
|
|||
require_tool magick
|
||||
require_tool awk
|
||||
|
||||
if [[ ! -x "$ictool" ]]; then
|
||||
echo "error: Icon Composer ictool not found at $ictool" >&2
|
||||
exit 127
|
||||
fi
|
||||
|
||||
mkdir -p "$output_dir"
|
||||
|
||||
if [[ "${BURROW_ICON_REFRESH:-0}" == "1" ]]; then
|
||||
if ! "$ictool" "$icon_doc" \
|
||||
--export-image \
|
||||
--output-file "$master" \
|
||||
--platform iOS \
|
||||
--rendition Default \
|
||||
--width 1024 \
|
||||
--height 1024 \
|
||||
--scale 1 >/dev/null; then
|
||||
echo "warning: ictool could not export $icon_doc; falling back to $checked_in_master" >&2
|
||||
magick "$checked_in_master" -colorspace sRGB -strip "PNG24:$master"
|
||||
source_master="$checked_in_master"
|
||||
else
|
||||
source_master="$master"
|
||||
fi
|
||||
else
|
||||
magick "$checked_in_master" -colorspace sRGB -strip "PNG24:$master"
|
||||
fi
|
||||
magick "$checked_in_master" -colorspace sRGB -strip "PNG32:$master"
|
||||
|
||||
printf "size,colors,gray_stddev,status\n" >"$output_dir/report.csv"
|
||||
|
||||
for size in "${sizes[@]}"; do
|
||||
image="$output_dir/burrow-icon-${size}.png"
|
||||
magick "$source_master" -colorspace sRGB -resize "${size}x${size}!" -strip "PNG24:$image"
|
||||
magick "$source_master" -colorspace sRGB -resize "${size}x${size}!" -strip "PNG32:$image"
|
||||
|
||||
actual="$(magick "$image" -format "%wx%h" info:)"
|
||||
if [[ "$actual" != "${size}x${size}" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue