Ok, I finally got it to work. With one snag, that I have a band-aid for but I really need to figure out how to do it correctly and not hacked like I am.
Here is the code I am using now. I had to set Density AND Resize, but also I had to make the height less than or equal to 6000 or it would do the whole 34768.34 DPI thing.
Code: Select all
exec("convert -density 600 -resize x6000 -units pixelsperinch test.jpg test.pdf");
If I make the actual pixel size taller than that, i.e. the image is actually 6084 pixels and if I set that to x6084 in the conversion it does the gigantic DPI thing. Anyone know why it has to resize smaller than the original or rather smaller than or equal to 6000?
Thanks,
SK