HuubMons / HuMo-genealogy

HuMo-genealogy online genealogical program using PHP and MySQL database.
https://humo-gen.com
GNU General Public License v3.0
15 stars 8 forks source link

Media file size is too small for important old documents scans #48

Open Gawrion opened 1 week ago

Gawrion commented 1 week ago

Hey. It's me again. Today I dug up my ancestor's baptismal and birth certificate from 1901. The certificate is written in cyrillic, in russian, because at that time Poland was under russian rule. I haven't deciphered the entire text yet and the quality of the uloaded document is extremely important for reading. The default limit of 2MB is causing my whole very important document to be very pixelated and not readable.

I recommend raising the limit to 5MB and changing height/width factors - now they are fixed, u should calculate it somehow from size limit to be (proportional) universal to any byte limits. I raised it to 5MB and now my file is ok. Alternatively the program should check the upper limit for media upload (php settings) and allow to set it up to this limit somewhere in settings - but default should not be 2MB (it's to low).

Here is compressed document by default humogen (2MB): Here is original that after raising limit to 5MB is untouched:

HuubMons commented 1 week ago

The reason for a 2MB limit is speed. I just clicked both images, the 5MB version was showed with a delay. If a page contains multiple images of 5MB, the page will be shown quit slow.

We probably need an option to upload larger pictures. Work around: just upload this picture directly into the picture folder using FTP. I didn't test it, but I do think this will work.