A ImageMagick tool
convert -resize 320x240 FROM_IMAGE_PATH.(png/svg) FINAL_IMAGE_PATH.(png/svg)
convert -resize 50% FROM_IMAGE_PATH.(png/svg) FINAL_IMAGE_PATH.(png/svg)
convert -scale 5% -scale 1500% SOURCE.jpg pixelated.jpg
command line - How to resize an image through the terminal? - Ask Ubuntu
software recommendation - How can I pixelate an image via the command line on Linux - Graphic Design Stack Exchange