francisdb / vpxtool

Terminal based frontend and utilities for Visual Pinball
Apache License 2.0
18 stars 5 forks source link

feat: Scaling down all images to make the table lighter for mobile #380

Open francisdb opened 1 month ago

francisdb commented 1 month ago

Anyone with a solution how to start standalone tables and "good" resolution on pf etc. I was thinking of exporting images resize and import again and get better quality. Playing standalone IOS on Iphone 14 and have to stick to Max Texture Dimention 768 on Johnny to make it not crash.

Probably do a percentage scale for everything over a threshold?

LUT images can't be touched. Those are 256x16 in size. See also #381

francisdb commented 1 month ago
➜  images find . -type f | sed -n 's/.*\.//p' | sort -u

exr
hdr
jpg
png
webp

cd "Johnny Mnemonic (Williams 1995) VPW v1.2/images"
for file in *.exr *.webp *.png *.jpg *.hdr; do
  if [[ $(basename "$file") != colorgradelut* ]]; then
    magick "$file" -resize 25% "$file"
  else
    echo "skipping $file"
  fi
done