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

Conversion from PDF to image #4040

Closed
IanDaly opened this issue Mar 25, 2024 · 2 comments
Closed

Conversion from PDF to image #4040

IanDaly opened this issue Mar 25, 2024 · 2 comments
Labels

Comments

@IanDaly
Copy link

IanDaly commented Mar 25, 2024

Question about an existing feature

When calling Sharp using a path to PDF or a buffer it gives an error. The error thrown is Error: Input buffer contains unsupported image format.

What are you trying to achieve?

To convert a PDF file to an image.

When you searched for similar issues, what did you find that might be related?

Similar issues point to using a globally installed version of Vips. Which I have installed through Homebrew. Conversion works as intended when calling Vips directly from the command line.

@lovell
Copy link
Owner

lovell commented Mar 25, 2024

using a globally installed version of Vips. Which I have installed through Homebrew

Please see https://sharp.pixelplumbing.com/install#building-from-source for the additional dependencies required to build sharp from source against a globally-installed libvips.

@lovell
Copy link
Owner

lovell commented Apr 29, 2024

I hope this information helped. Please feel free to re-open with more details if further assistance is required.

@lovell lovell closed this as completed Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants