zippy1978 / ghost4j

Java wrapper for Ghostscript C API + PS/PDF document handling API
http://www.ghost4j.org
GNU Lesser General Public License v3.0
64 stars 38 forks source link

JPEG files compress failed #56

Open Marlysson opened 7 years ago

Marlysson commented 7 years ago

I'm trying compress some files..

In the .pdf and .jpeg formats , I have them in a list, the .pdf files compress normaly just that when ghost script try compress .jpeg format it fail.

Erro : Can't instanciate GhostScript instance. Error -100

Here are my configurations:

-gs
-sDEVICE=jpeg
-dJPEGQ=80
-dQFactor=0.5
-dPDFSETTINGS=/screen
-dNOPAUSE
-dQUIET
-dBATCH
-sOutputFile=my_file.jpeg