paperless-ng icon indicating copy to clipboard operation
paperless-ng copied to clipboard

[BUG] PNG upload quality

Open jake404 opened this issue 3 years ago • 5 comments

Describe the bug I uploaded a PNG file and after the import is complete, there are compression artifacts.

Expected behavior I expected the same quality as the original file.

Screenshots Original: image

Uploaded: image

Relevant information

  • Docker
  • Edge/Chrome
  • Version 1.5.0

jake404 avatar Dec 22 '21 14:12 jake404

Hi,

The original file is also in the database, so, you don't loose anything. By the way, what do you mean by: Uploaded?

  1. You upload the original
  2. Paperless-ng creates an archive version.

Your comment is not precise, at least to me. If you use docker see here: /var/lib/docker/volumes/paperless_media/_data/documents

tido- avatar Jan 09 '22 16:01 tido-

I mean, I go to the dashboard and click on the 'Browse files' button in the 'Upload new documents' section. I select a PNG image and it's uploaded and consumed by Paperless. When I go to the document and click on the eye icon, it opens a tab with a PDF version of the PNG image. That's where I see the degraded image quality. To me, it looks like compression artifacts.

jake404 avatar Jan 09 '22 20:01 jake404

When I upload any PNG to my instance (via the frontend), I get UnsupportedImageFormatError. Docker 1.5.0. Could you maybe link the source file you're trying to upload?

rYR79435 avatar Jan 27 '22 19:01 rYR79435

It will show that error if the PNG has transparency in it. I can't share that particular file, but here are two others:

https://drive.google.com/file/d/1j4onMIB2bci3TauavfbblzpK-z6ZmoMW/view?usp=sharing

https://drive.google.com/file/d/1Bkm8MpHTM1xA7ggTT9V4Ag6Qkan-9Cu8/view?usp=sharing

jake404 avatar Jan 27 '22 20:01 jake404

Thank you for the files. I can confirm this on my machine. If I extract the github image from the generated PDF (as a PNG), it is now 504KiB in size, whereas it was only 154KiB from you gdrive.

rYR79435 avatar Jan 28 '22 10:01 rYR79435