Extract images
Save the pictures inside a PDF as the image files they already are, with no re-encoding.
-p1-1.jpg, …
Each image is named for the page it is on. JPEGs come out as they are; other images become PNGs.