Programming

Convert EPS to Jpeg Image ghostscript

빠릿베짱이 2017. 10. 31. 13:36
반응형

Ghostscript option information  : https://www.ghostscript.com/doc/current/Use.htm#Options

Ghostscript Install : [link]

  1. You have Ghostscript installed, right? Otherwise sudo apt-get install ghostscript
  2. This is important and installs the headers (iapi.h etc) which are required but don't come with the default Ghostscript package: sudo apt-get install libgs-dev
  3. I also needed sudo apt-get install gs-esp
  4. For me the pre compiled version of ImageMagick never accepted Ghostscript, so let's remove it: sudo apt-get --purge remove imagemagick
  5. Get the source of ImageMagick, untar it, cd ImageMagick-xx
  6. ./configure --with-gslib=yes [and what else you need]
  7. Confirm in the output near the bottom gslib yes yes and not gslib yes no
  8. make
  9. make install
  10. Run convert -list configure | grep DELEGATES => DELEGATES bzlib djvu freetype gs jpeg jng jp2 lcms png tiff x11 xml zlib
  11. See the gs in there? You got it!


convert command example :


gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=myfile.jpg myfile.eps

반응형

'Programming' 카테고리의 다른 글

윈도우10에서 CMD ansi color 적용하기  (1) 2019.04.09
Tesseract 4.0  (0) 2018.07.04
[OpenGL] glcolor3f가 안먹는 이유  (0) 2015.10.27
[코드 최적화]프로그램 속도 향상 방법  (0) 2015.05.25
Git 강좌 및 튜토리얼  (0) 2015.05.15