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

convert crashes with PDF slides on macOS #36

Open
nstanger opened this issue Jul 24, 2019 · 4 comments
Open

convert crashes with PDF slides on macOS #36

nstanger opened this issue Jul 24, 2019 · 4 comments
Assignees

Comments

@nstanger
Copy link
Owner

The current MacPorts version of convert no longer seems to be able to convert a PDF page to a JPEG. For example:

convert "foo.pdf[0]" foo0.jpg

causes a SIGABRT, with the error “Abort” (singularly uninformative).

The output of convert -debug All shows that it’s creating temporary files in /var/folders (which are actually symlinks to the source file), and dies while trying to delete one of them (which fails):

...
2019-07-24T16:22:14+12:00 0:00.180 0.160u 6.9.9 Resource convert[77330]: resource.c/AcquireUniqueFileResource/641/Resource
  Acquire /var/folders/p_/d22ldhnj1n7c6syb0z0c33180000gn/T/magick-77330hrI2NHiWDL0U
2019-07-24T16:22:14+12:00 0:00.180 0.160u 6.9.9 Resource convert[77330]: resource.c/RelinquishUniqueFileResource/1200/Resource
  Relinquish /var/folders/p_/d22ldhnj1n7c6syb0z0c33180000gn/T/magick-77330hrI2NHiWDL0U
2019-07-24T16:22:14+12:00 0:00.190 0.160u 6.9.9 Exception convert[77330]: utility.c/ShredFile/1826/Exception
  Failed to remove: /var/folders/p_/d22ldhnj1n7c6syb0z0c33180000gn/T/magick-77330Idey319SiLcO
Abort

The file it’s attempting to delete doesn’t exist in /var/folders (after the fact, at least).

The problem is definitely within convert — running the corresponding GhostScript command (extracted from convert -verbose) works fine.

@nstanger
Copy link
Owner Author

nstanger commented Jul 24, 2019

  • Report to MacPorts issue tracker.

@nstanger
Copy link
Owner Author

Already open under ticket https://trac.macports.org/ticket/57740.

@nstanger
Copy link
Owner Author

nstanger commented Jul 26, 2019

GraphicsMagick (http://www.graphicsmagick.org/) might be an alternative, but it doesn’t appear to support:

@nstanger
Copy link
Owner Author

nstanger commented Nov 7, 2019

ImageMagick port has been updated to fix this (https://trac.macports.org/ticket/57740#comment:20), need to test that everything is now working correctly, then close this and move on to #32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant