convert -resample 72x72 -compress JPEG -quality 20 a.jpg a.pdf convert -resample 72x72 -compress JPEG -quality 20 a.jpg a.pdf WARNING: convert (imagemagick) often bugs as it uses external tools such as gs and ffmpeg; reinstalling Ghostcript can help.