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

Log identify errors. #226

Merged
merged 1 commit into from Oct 12, 2011
Merged

Log identify errors. #226

merged 1 commit into from Oct 12, 2011

Conversation

kaos
Copy link
Member

@kaos kaos commented Oct 12, 2011

Sample log when identifying a pdf file on windows, when ghostscript is not found. (yes, the ImageMagick error message is really bad).

=INFO REPORT==== 12-Oct-2011::13:22:25 ===
identify of "d:\tmp\zotonic\zp-nonode@nohost-1318.418545.598668[0]" failed:
Magick: %s' (%d) "C:/Program Files/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/Users/ANDREA~1/AppData/Local/Temp/magick-kQzanAKf" "-fC:/Users/ANDREA~1/AppData/Local/Temp/magick-u4J4daeD" "-fC:/Users/ANDREA~1/AppData/Local/Temp/magick-y-REbg3K" @ error/utility.c/SystemCommand/2093. Magick: Postscript delegate failedd:\tmp\zotonic\zp-nonode@nohost-1318.418545.598668': No such file or directory @ error/pdf.c/ReadPDFImage/645.

Sample log when identifying a pdf file on windows, when ghostscript is not found. (yes, the ImageMagick error message is *really* bad).

=INFO REPORT==== 12-Oct-2011::13:22:25 ===
identify of "d:\tmp\zotonic\zp-nonode@nohost-1318.418545.598668[0]" failed:
Magick: `%s' (%d) "C:/Program Files/gs/gs9.04/bin/gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dFirstPage=1 -dLastPage=1 "-sOutputFile=C:/Users/ANDREA~1/AppData/Local/Temp/magick-kQzanAKf" "-fC:/Users/ANDREA~1/AppData/Local/Temp/magick-u4J4daeD" "-fC:/Users/ANDREA~1/AppData/Local/Temp/magick-y-REbg3K" @ error/utility.c/SystemCommand/2093.
Magick: Postscript delegate failed `d:\tmp\zotonic\zp-nonode@nohost-1318.418545.598668': No such file or directory @ error/pdf.c/ReadPDFImage/645.
@kaos
Copy link
Member Author

kaos commented Oct 12, 2011

Oh, to get this to work on windows, I've a patched z_tempfile.erl:31 (not included in pull request)

Filename = "d:/tmp/zotonic/zp-" ++ lists:flatten(io_lib:format("~p-~p.~p.~p",[node(),A,B,C])),

A portable fix is needed for the z_tempfile:new/0 function.

arjan pushed a commit that referenced this pull request Oct 12, 2011
z_media_identify - Log identify error when identify command returns empty output.
@arjan arjan merged commit 61f06ee into zotonic:master Oct 12, 2011
rpip pushed a commit to rpip/zotonic that referenced this pull request Aug 12, 2013
z_media_identify - Log identify error when identify command returns empty output.
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.

None yet

2 participants