# Image Converter
Palette (16x16)
I realized that I can use just ffmpeg. Check the original "TempleO
S Color Palette" post.
``````````````````````````````````````````````````````````````````
#!/usr/local/bin/rc
palette=$HOME/.config/palette.bmp
fn ConvertTempleOS {
ffmpeg -i $1 -i $palette \
-filter_complex 'paletteuse=dither=none' \
-s 640x480 -q:v 1 -c:a copy \
$2
}
fn ConvertOriginal {
ffmpeg -i $1 -s $3 \
-q:v 1 -c:a copy \
$2
}
switch($#*){
case 2 3
input=$1
output=$2
res=640x480
test $3 && res=$3
ConvertTempleOS $input $output
#ConvertOriginal $input $output $res
case *
echo 'res $input $output ($resolution)'
}
``````````````````````````````````````````````````````````````````
You can use this for videos too.