This repository was archived by the owner on Feb 16, 2023. It is now read-only.
Replies: 1 comment 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
while trying to automate the issues around
ExifOrientationError: Invalid rotation (0)I am having when uploading jpg images that i take with my Android phone using Open Note Scanner (the dam app assigns incorrect ExifOrientation tag), I though I would try to find a work around by using thePAPERLESS_PRE_CONSUME_SCRIPT.So I added the following to
paperless.conf:PAPERLESS_PRE_CONSUME_SCRIPT="/opt/paperless-ng/pre-cosume-script.sh"The
/opt/paperless-ng/pre-cosume-script.shfile looks like this:The above script works correctly when I run it in bash. In fact when I drop the resulting files on the dashboard, they are consumed. However, if I drop the non corrected files on the dashboard, I get the
ExifOrientationError: Invalid rotation (0)error reported elsewhere on this forum.The paperless log file suggests that the
PAPERLESS_PRE_CONSUME_SCRIPTis not even being invoked. Note, I did restart the paperless-webserver and paperless-consumer services.Any thoughts on why Paperless seems to be ignoring the PRE_CONSUME script?
Beta Was this translation helpful? Give feedback.
All reactions