Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function pdf convert to image #26

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

stealthinu
Copy link

if param 'PDFtoImage' sets true and uploaded file is pdf, convert pdf to image by ImageMagick.
need ImageMagick and some CMYK icc file (ex: JapanColor2001Coated.icc) if need to convert CMYK pdf.

if param 'PDFtoImage' sets true and uploaded file is pdf, convert pdf to image by ImageMagick.
need ImageMagick and some CMYK icc file (ex: JapanColor2001Coated.icc) if need to convert CMYK pdf.
ImageMagick経由でgsを使いPDFを画像変換する場合、CMYK(0,0,0,0)と透明色で色の違いが出て問題だった。
またImageMagick経由のほうがパフォーマンスがだいぶ悪いというレポートもあった。
そのため、ImageMagickは使わずに直接gsコマンドを叩いて変換するようにした。
そのおかげでiccプロファイルを持たなくて良くなった。
Conflicts:
	Model/Behavior/UploadBehavior.php
	View/Helper/UploadHelper.php
@szajbus
Copy link
Owner

szajbus commented Jul 29, 2014

Thanks for contribution and sorry for a late reply. Could you update README as well, please?

…onvert_pdf_to_image

Conflicts:
	Model/Behavior/UploadBehavior.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants