Web based family history software

Question [SOLVED] Media Limitations

  • dhwtrees
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #1 by dhwtrees
Media Limitations was created by dhwtrees
I have about 200 images out of 2300 which fail to load but were OK for versions up to and including v.1.7.15. Some will show a thumbnail whilst others fail on thumbnail+fullsize.

As an example:
jpeg, compression 1:80, 200*200 ppi, 5213 * 3827 pixel, 989KB fails to load.

I can fix this by any or all changes - image size - compression - resolution. Filesize can decrease with these changes or be fixed whilst changing other parameters. Too extreme a change then image quality/readabilty diminishes. The image is as downloaded with fine/faded handwritten script.

Does anyone know what the media limitations are in webtrees 2.x.x i.e. are any of the above parameters capped?

Thanks

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

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
4 years 4 months ago #2 by fisharebest
Replied by fisharebest on topic Media Limitations
> Does anyone know what the media limitations are in webtrees 2.x.x i.e. are any of the above parameters capped?

The only limitation is server memory. Creating thumbnails takes a lot of memory.

Loading an image file into memory requires approximately 4 bytes per pixel.
So an image 5213 x 3827 will require about 80MB of memory.

Add in another ~20MB to produce the page, etc.

What is your PHP memory limit?

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

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

More
4 years 4 months ago #3 by xmlf
Replied by xmlf on topic Media Limitations
You can wait to upload to a third-party object storage server(ex: aws s3) using flysystem, and there will be no such problems.

Wang Family Website of Suining County, China
www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.

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

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
4 years 4 months ago #4 by fisharebest
Replied by fisharebest on topic Media Limitations
This will not help.

webtrees will still need to create thumbnails, and this will still need PHP memory.

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

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

  • dhwtrees
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #5 by dhwtrees
Replied by dhwtrees on topic Media Limitations
webtrees will still need to create thumbnails, and this will still need PHP memory.

Do you mean website preferences - memory limit? This is the default 128M and I have, sometimes, increased this to 256M when running v.1.x.x. With v.2 there is a problem preventing access to some of the website preferences - the preferences page is scrambled by text display running outside frames and overwriting other options. Some preferences I can access but others are overwritten and cannot be clicked. Is there a file where PHP memory can be edited?

When I have some time I plan to copy problem media - rename - shrink - then form a thumbnail. This thumbnail can then be renamed back to the original filename and I hope that would allow me to view the fullsize file?

I can see in the ExampleServerConfigurationModule.php:
/**
* Modify the PHP.INI settings.
*/
private function phpIni(): void
{
// Set the maximum amount of memory that PHP scripts can use.
// Recommended settings are between 128M and 1024M

//ini_set('memory_limit', '256M');

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

  • dhwtrees
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #6 by dhwtrees
Replied by dhwtrees on topic Media Limitations
v7.3.8 php.ini updated to 256M and MAMP restarted. 256M confirmed via control panel with webtrees 1.7.15. Is it possible to check that v.2 is using 256M without access to a full control panel?

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

  • dhwtrees
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #7 by dhwtrees
Replied by dhwtrees on topic Media Limitations
Solved
The 256M edit in v.7.3.8 php.ini worked. webtrees handles 3MB - 4MB images without protest but has the cooling fans on turbo, for short periods, when building thumbnails.

Possibilities for sorting the Control Panel css so that I can see more of the control fields?

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

  • dhwtrees
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #8 by dhwtrees
Replied by dhwtrees on topic [SOLVED] Media Limitations
Problem solved.

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

Powered by Kunena Forum
}