luatex, lualatex, xetex or xelatex, and you have your raster images as PNG and JPEG files, then you don't need sam2p or any other raster image converter, because \includegraphics works on PNG and JPEG files directly. -- If you want to make your JPEG files smaller, there are much bet...