• This topic has prefixes assigned

Tags:

Viewing 3 posts - 1 through 3 (of 3 total)
Author
Posts
  • #13136

    I have received the following help request:

    If I do not have made a user defined thumb for pdf files the system gets a failure about zero/boolean (it is a very few pdf files where I do not have a thumb)

    It generates the following error message in your kiwitrees log:

    ERROR 8: Trying to access array offset on value of type bool;
    0 Error occurred on line 147 of file Media.php in function getServerFilename
    1 called from line 421 of file Media.php in function displayImage
    2 called from line 106 of file mediaviewer.php

    This is a php 7.4 fix that I missed.

    The fix is to replace the file kiwitrees/library/KT/Media.php with the new version in the zip folder attached below here.

    Nigel
    My personal kiwitrees site is www.our-families.info
  • #13173

    I noticed problems displaying pdf files a long time ago – all I got was a tiny generic icon. I have since used graphic conversion software to convert pdf to jpg. What I have never tried is adding a movie media file. Any experience?

    Penguins Are  Boss

    https://bootesgowland.kiwitrees.net

    Happy to be hosted by kiwitrees.net

  • #13176

    I noticed problems displaying pdf files a long time ago – all I got was a tiny generic icon. I have since used graphic conversion software to convert pdf to jpg. What I have never tried is adding a movie media file. Any experience?

    Yes, the small icon could be bigger. Just never got round to fixing that! It is there whenever a thumbnail doesn’t exist. That’s usual for any non-image format. PHP can’t easily create an icon for that. It’s why an “upload thumb” option exists wherever you upload media objects.

    As for video’s, yes they can be used. Not many people do, as they are often large file sizes, which can cause uploading problems. Other problems can be caused by browsers not allowing them to be played, necessitating downloading to watch! The issue is the myriad of formats around for video’s. The only one I have successfully used is “.mp4”. You can see an example of that at this link:
    https://demo.kiwitrees.net/individual.php?pid=I5378&ged=ourfamilies

    Go to the “Album” tab. and you will see a video at the bottom. It ‘should’ just play if you click on it. It does for me, anyway.

    It also shows what I do about thumbnails. I create a 100px wide image (must be a .png, with the file name identical to the main image/video/pdf). I then use graphics software to overlay a small icon to show the type of object it is. I takes a few moments to do, but I don’t upload many that need it.

    Like you, I prefer converting pdf’s to image format, unless they are multi-page.

    Nigel
    My personal kiwitrees site is www.our-families.info
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Media bug – pdf without thumbnail’ is closed to new replies.