I use GraphicsMagick to prepare images for this website. This is a page where I can keep track of common commands.
gm mogrify -output-directory neocities -resize 500x500 *JPG
gm convert image.JPG -colorspace Gray