Web based family history software

Question image size for upload

  • mac.alter
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 months 2 weeks ago #1 by mac.alter
image size for upload was created by mac.alter
I posted in the Help for 2.1.18 forum regarding JSON error when uploading an image. Franz Frese says he sets size at 500MB. I use the free PhotoscapeX (Mac) to capture/dowload impages and edit. I resize to 900px height and let it proportion width. I save as PNG. Should I switch to JPEG with quality about 80-90%? My images are mostly docs from Ancestry, headstones, captured images of people/places (with Mac it's very easy to CMD+SHIFT+4 to capture.

Mac.alter [update: 05 Aug 2024]
webtrees 2.1.20 | PHP Version 8.2 | mySQL mysqlnd 8.1.28 | MacOS 14.6 (Sonoma)

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
7 months 2 weeks ago - 7 months 2 weeks ago #2 by bertkoor
Replied by bertkoor on topic image size for upload

I resize to 900px height and let it proportion width. I save as PNG. Should I switch to JPEG with quality about 80-90%?

Do you know its size in kilobyte? Do you know of any upload limit in kilobytes?
If the file size was too large, then using image compression might make it fit.

But: you won't really know what's wrong until you inspect those pesky XHR request/response headers.
So I'd advice to go back to the developer tools of your browser. Use a less favourite one if you must, if that helps.

I mean, you did manage to upload pictures before, or not?

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 7 months 2 weeks ago by bertkoor.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago - 7 months 2 weeks ago #3 by Franz Frese
Replied by Franz Frese on topic image size for upload

...Franz Frese says he sets size at 500MB....
I never said.

I said: The largest image used at my site is 500 KiloByte (not Megabyte).

So even on a slow connection, you won't waste time waiting for a presentation of images and also the calculation of thumbs on the server saves ressources.

And I upload my files with a sftp app (that automatically synchronizes)
Last edit: 7 months 2 weeks ago by Franz Frese.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #4 by fisharebest
Replied by fisharebest on topic image size for upload
Control panel -> Server information

What values do you have for post_max_size and upload_max_filesize?

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • mac.alter
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 months 2 weeks ago #5 by mac.alter
Replied by mac.alter on topic image size for upload
post_max_size    1300M    1300M
upload_max_filesize    1300M    1300M

Mac.alter [update: 05 Aug 2024]
webtrees 2.1.20 | PHP Version 8.2 | mySQL mysqlnd 8.1.28 | MacOS 14.6 (Sonoma)

Please Log in or Create an account to join the conversation.

  • mac.alter
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 months 2 weeks ago #6 by mac.alter
Replied by mac.alter on topic image size for upload
Wasn't intending to misquote you. I took that as a suggested size which was helpful. PhotoscapeX does nave option to see size so am watching to see what mine are. And trying JPG vs PNG and vice versa.

Mac.alter [update: 05 Aug 2024]
webtrees 2.1.20 | PHP Version 8.2 | mySQL mysqlnd 8.1.28 | MacOS 14.6 (Sonoma)

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
7 months 2 weeks ago - 7 months 2 weeks ago #7 by bertkoor
Replied by bertkoor on topic image size for upload
In the Windows File Explorer (MacOs: Finder) you should be able to see the size.
Right-click: properties??
Show folder as list with attributes?

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 7 months 2 weeks ago by bertkoor.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago - 7 months 2 weeks ago #8 by Franz Frese
Replied by Franz Frese on topic image size for upload
see in
www.webtrees.net/index.php/forum/help-fo...reply/103815?quote=1
=
mac.alter post=103815 userid=12994
...
The image is 1.8MB, the lower end of my headstone images, all which upload.

???

So I can imagine the file is not an image - file (only has that extension). Perhaps you can mail the file, to have a look at that to reproduce the error.
or disk limit at provider is reached, ...
Last edit: 7 months 2 weeks ago by Franz Frese.

Please Log in or Create an account to join the conversation.

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
7 months 2 weeks ago - 7 months 2 weeks ago #9 by bertkoor
Replied by bertkoor on topic image size for upload

post_max_size    1300M    1300M
upload_max_filesize    1300M    1300M
One point three gigabyte? That's plenty...
With this ruled out  you definitely need to look at those headers.

Hint: first open the dev tools of the browser. Then get to the dialog. Clear the list of network calls, then hit the submit button. This limits the list of calls to inspect.

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 7 months 2 weeks ago by bertkoor.

Please Log in or Create an account to join the conversation.

  • mac.alter
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 months 2 weeks ago #10 by mac.alter
Replied by mac.alter on topic image size for upload
I just upgraded MacOS to Sonoma which is a very big leap (about 3 generations) so will need to figure out Safari and will try again looking for XHR error. Of note, the FAQ should state what browser the instructions are written in, regardless of OS.

Mac.alter [update: 05 Aug 2024]
webtrees 2.1.20 | PHP Version 8.2 | mySQL mysqlnd 8.1.28 | MacOS 14.6 (Sonoma)

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #11 by Franz Frese
Replied by Franz Frese on topic image size for upload

I just upgraded MacOS to Sonoma which is a very big leap (about 3 generations) so will need to figure out Safari and will try again looking for XHR error. Of note, the FAQ should state what browser the instructions are written in, regardless of OS.
Kritik zurück: Dieser Beitrag bringt dich und uns (nach meiner Meinung) bezüglich der Lösung des Themas kein Stück weiter.

Please Log in or Create an account to join the conversation.

More
6 months 2 weeks ago #12 by nehakakar
Replied by nehakakar on topic image size for upload
You should optimize your images before uploading. Convert them to JPEG with a quality setting of 80-90%. This will significantly reduce file size while maintaining decent image quality and for jpeg compression you can use online application such as jpegcompressor.com/ It compresses images efficiently with maintaining image quality.

Please Log in or Create an account to join the conversation.

More
6 months 2 weeks ago #13 by MartinM
Replied by MartinM on topic image size for upload
I've not had time to try it yet, but I wonder if WebP image files are compatible with web trees?

This is a relatively new image format, that allows users to compress the weight of images, without losing quality. Important if, for example, you are adding the image of a Will or similar, with quite detailed text which can be difficult to read in a jpeg image.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum