ImageMagick
Reduce image to 50%
mogrify -resize 50% image.jpg
Reduce image to maximum edge length of 1000 px
mogrify -resize 1000x1000\> image.jpg
Create pdf with several images and auto-orient them
convert -auto-orient image1.jpg image2.jpg ... image9.jpg result.pdf