paperless-ng
paperless-ng copied to clipboard
[BUG] PNG upload quality
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:
Uploaded:
Relevant information
- Docker
- Edge/Chrome
- Version 1.5.0
Hi,
The original file is also in the database, so, you don't loose anything. By the way, what do you mean by: Uploaded?
- You upload the original
- 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
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.
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?
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
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.