태그 보관물: jpeg

jpeg

PDF를 이미지로 변환 look-up table

PDF 파일 (책)을 이미지로 변환하려고합니다.

내가 사용하는 경우 변환을 다음과 같이

convert book.pdf book.jpg

또는 이런

convert book.pdf book.png

그런 다음이 경고가 나타납니다.

Warning: Short look-up table in the Indexed color space was padded with 0's

각 페이지마다.

이것을 위해 많은 이미지를 얻기 위해 변환에 사용할 수있는 다른 도구가 있습니까? 아니면 누군가이 문제를 해결하는 다른 방법을 보여줄 수 있습니까?



답변

convert -geometry 1600x1600 -density 200x200 -quality 100 file.pdf file.jpg

jpg로 변환 할 때 -quality 옵션을 사용할 수 있습니다. “최고의”품질은-품질 100입니다.

There is a much simpler way to split multipage pdfs into a jpg:

convert -quality 100 -density 600x600 multipage.pdf single%d.jpg

    The -density option defines the quality the pdf is rendered before the convert > here 600dpi. For high quality prints you can increase that number.
    The %d just before the jpg suffix is for automatic numbering of the output pages 0,1,2...
    The -quality option defines the compression quality of the output jpg (0 min ... 100 max)
    The .jpg suffix defines the output format. You could use .png/.jpg/.pdf

답변

다른 방법은 GhostScript입니다.

gs -dNOPAUSE -dBATCH -sDEVICE=jpeg -r96 -sOutputFile='page-%00d.jpg' input.pdf

-r96원하는 dpi 해상도는 어디 입니까

출력은 여러 JPEG 이미지입니다.

원하는 경우 투명 PNG를 생성 할 수도 있습니다.

gs -dNOPAUSE -dBATCH -sDEVICE=pngalpha -r96 -sOutputFile='page-%00d.png' input.pdf

답변