Giter VIP home page Giter VIP logo

Comments (3)

blackwood avatar blackwood commented on June 30, 2024 8

Hey Daniel, I think I've figured it out.

When using brew to install ImageMagick, it doesn't resolve the dependency ghostscript which provides the binary gs that is necessary for PDF conversion.

Here's the thread I found:

Can't Convert PDF Into Image - Super User

The issue is fixed by running:

brew install ghostscript in addition to brew install imagemagick

from paperless.

mvaragnat avatar mvaragnat commented on June 30, 2024 2

@blackwood Thank you! I had the same issue with MiniMagick

from paperless.

danielquinn avatar danielquinn commented on June 30, 2024

The consumption directory needs to be readable and writeable by the paperless user, and have the disk space to write the files (usually less than a few MB).

Since convert is only invoked in one place, I have to assume that there's something amiss with the arguments being passed to it. In this case, there's only two variables: doc (the path to the original PDF) and png the path to the target PNG. If convert is complaining that no images defined /path/to/image.png that makes me think that in your context, doc is in fact "" and convert is treating the png image as a first argument rather than a second one.

Except that the debug info you posted here sounds like there is in fact a value for doc in your case, so I'm at a loss. Maybe try editing the consumer and adding a print() just before the Popen() line to see just what's about to get executed?

from paperless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.