Ghostscript ps to jpg output without white space
What I am trying to do is convert a ps which is just a image to a jpg using ghostcript here is what I started with gswin32c.exe -sDEVICE=jpeg -sOutputFile="test.png" example.ps however when I run this the jpg comes out with a lot of white space to the right and the bottom Also the picture comes out huge is there any way to crop out the whitespace in ghostscript? I tried this code gswin32c.exe -sDEVICE=jpeg -dBATCH -dNOPAUSE -dSAFER -r72x72 -g200x900 -sOutputFile="test.jpg" example.ps which decrease the width but the height is still huge. Any solutions? Firstly you need to set the 'correct'