mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-09 03:31:41 +00:00
62 lines
1.9 KiB
Bash
Executable File
62 lines
1.9 KiB
Bash
Executable File
#!/bin/zsh
|
|
|
|
set -e
|
|
setopt nullglob
|
|
|
|
mkdir -p ${0:a:h}/assets
|
|
cd ${0:a:h}/assets
|
|
|
|
rm -f *.png
|
|
|
|
src=../../../../share/icons/256x256/mkvtoolnix-gui.png
|
|
|
|
for height in 16 24 32 48 64 256; do
|
|
convert ${src} -scale ${height}x${height} fileicon.targetsize-${height}.png
|
|
done
|
|
|
|
for scale in 100 125 150 200 400; do
|
|
height=$(( ((scale * 10 * 150) / 100 + 5) / 10 ))
|
|
convert ${src} -scale ${height}x${height} Square150x150Logo.scale-${scale}.png
|
|
done
|
|
|
|
for scale in 100 125 150 200 400; do
|
|
height=$(( ((scale * 10 * 310) / 100 + 5) / 10 ))
|
|
convert ${src} -scale ${height}x${height} Square310x310Logo.scale-${scale}.png
|
|
done
|
|
|
|
for scale in 100 125 150 200 400; do
|
|
height=$(( ((scale * 10 * 44) / 100 + 5) / 10 ))
|
|
convert ${src} -scale ${height}x${height} Square44x44Logo.scale-${scale}.png
|
|
done
|
|
|
|
for height in 16 24 32 48 256; do
|
|
convert ${src} -scale ${height}x${height} Square44x44Logo.targetsize-${height}.png
|
|
done
|
|
|
|
for scale in 100 125 150 200 400; do
|
|
height=$(( ((scale * 10 * 71) / 100 + 5) / 10 ))
|
|
convert ${src} -scale ${height}x${height} Square71x71Logo.scale-${scale}.png
|
|
done
|
|
|
|
for scale in 100 125 150 200 400; do
|
|
height=$(( ((scale * 10) / 2 + 5) / 10 ))
|
|
convert ${src} -scale ${height}x${height} StoreLogo.scale-${scale}.png
|
|
done
|
|
|
|
for scale in 100 125 150 200 400; do
|
|
height=$(( ((scale * 10 * 150) / 100 + 5) / 10 ))
|
|
width=$(( ((scale * 10 * 310) / 100 + 5) / 10 ))
|
|
convert ${src} -scale ${height}x${height} -background transparent -gravity center -extent ${width}x${height} Wide310x150Logo.scale-${scale}.png
|
|
done
|
|
|
|
for file in *.scale-100.png; do
|
|
cp ${file} ${file/.scale-100/}
|
|
done
|
|
|
|
# dir=../../../../share/icons/windows/msix
|
|
# for program in mkvmerge mkvinfo mkvextract mkvpropedit bluray_dump; do
|
|
# for size in 44 150; do
|
|
# convert ${dir}/${program}.xcf -background transparent -layers flatten -size ${size}x${size} Square${size}x${size}Logo-${program}.png
|
|
# done
|
|
# done
|