- Posts: 213
Question webtrees 2.0.19 thumbnail picture issue
- janth
- Topic Author
- Offline
- Junior Member
signature
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
When you see a file extension like this, it means that webtrees does not know how to display that type of image.
My guess is that you installation of PHP does not have the JPEG library installed.
Control panel -> Server information -> Imagick -> ImageMagick supported formats
Does this have a list of image types, and does it include JPEG?
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
BTW - there is a helpful error message in the HTTP response headers.
If you'd posted the URL, instead of a screenshot, I'd be able to tell you what it said.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
"GET /webtrees/index.php?route=%2Fwebtrees%2Ftree%2Fthomsenfamily%2Fmedia-thumbnail&xref=M381&fact_id=57f28e0f637ef96450ca52f3f2b1709c&w=400&h=520&fit=crop&mark=0&s=4b02055efdc2a3c3ae1cbcd38a81c4e0 HTTP/1.1" 200 739 " xenon.home/webtrees/index.php?route=%2Fw...aniel-Ulrich-Thomsen " "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0"
signature
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Look for a response header called X-Thumbnail-Exception
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
X-Thumbnail-Exception
ImagickException: cache resources exhausted `' @ error/cache.c/OpenPixelCache/4083
signature
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
X-Thumbnail-Exception
Intervention\Image\Exception\NotReadableException: Unable to read image from binary data.
signature
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
<policy domain="resource" name="memory" value="256MiB"/> to
<policy domain="resource" name="memory" value="512MiB"/>
and for now at least the problem have disappeared. Maybe I need to increase further ?
signature
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- bertkoor
- Offline
- Platinum Member
- Greetings from Utrecht, Holland
stamboom.BertKoor.nl runs on webtrees v2.1.20
Please Log in or Create an account to join the conversation.
- janth
- Topic Author
- Offline
- Junior Member
- Posts: 213
signature
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
The compressed since is not important,
All image libraries must uncompress the image first. If I remember correctly, Imagemagick requires approx 10 bytes per pixel. So, 2000 x 3000 x 10 = 60MB.
We could need 60MB for the original image, 60MB for the scaled watermark image, and another 60MB for the combined image...
> I was surprised to see that I ran into resource problems
You said your policy.xml file set a memory limit of 256MB
Looking at the source-code for ImageMagick, there is a 2GB limit - but it has been commented out, implying no limit.
This is what I see on RedHat and OSX.
On my ubuntu server, I see a 256MB.
So, it looks like this limit is specific to Ubuntu builds of ImageMagick.
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.