openpaperwork / paperwork

Personal document manager (Linux/Windows) -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/paperwork
2.43k stars 149 forks source link

PNG support #616

Open ghost opened 7 years ago

ghost commented 7 years ago

I'm a new Paperwork user. It seems scanned documents are stored in JPEG format. Is it possible to use the PNG format instead? I'm using paperwork-1.1.1 on a Gentoo Linux system.

jflesch commented 7 years ago

At the moment, it is not possible.

Is your ticket simply a question, or is it a feature request ?

ghost commented 7 years ago

Well it has become a feature request now :-) The main reason is due to the fact that PNG is a lossless image format while JPEG is lossy; I'd like to preserve all informations for my scanned documents if possible.

jflesch commented 7 years ago

Have you any concrete use case for this feature ?

ghost commented 7 years ago

My use case is similar to that of people downloading FLAC music instead of MP3 files. With PNG/FLAC you can always recompress documents/music later if another better codec/algorithm is developed. With lossy formats like JPEG or MP3 you are going to lose informations. I don't feel comfortable at scanning paper documents in JPEG format and throwing them away after that. I can't go back in that case.

jflesch commented 7 years ago

As is, it is not a concrete use case.

tiramiseb commented 7 years ago

You should not throw your papers away, you need them for legal reasons (at least in France, I guess it is the same everywhere). Paperwork makes them grepable and reprintable, but it does not replace them completely.

Moreover, good quality JPEGs are perfectly fine for such scans. PNGs would take much more space, with insignificant gain.