Menu

Media Error

Help
Thomas52
2008-05-08
2013-05-30
  • Thomas52

    Thomas52 - 2008-05-08

    I keep getting an error message when attempting to add media: "Thumbnail media/thumbs/BrooksSamuelH_NYT1902.jpg could not be generated automatically.
    Blank name or illegal characters in name"
    Any clues on what I could be doing wrong?  I added another media file just an hour earlier without problems.

     
    • Stephen Arnold

      Stephen Arnold - 2008-05-08

      Thomas
      I've already reported this sporadic error to Gerry, but so far we're stumped. We've tried to recreate and to determine the cause, but so far - I can not determine what has caused these occasional errors.

      Gerry
      Sound familiar? No 'obit' in his file name (and btw, I tried 'obit' and it had no effect).
      Stephen

       
      • Jariev

        Jariev - 2008-08-25

        Hi,

        I have the same problem. I updated to version 4.1.5 today and I'm having problems creating automatically the thumbnails. I just reverted to version 4.1.3 and there everything works. I have a debian etch with php5 and mysql if that helps.

         
    • Anonymous

      Anonymous - 2008-05-08

      Stephen / Thomas, have you confirmed that it is the name, and not the file itself at fault? I've had similar problems (can't remember the exact error) when I tried to load a mal-formed jpeg file. There was something wrong with the compression applied when I reduced it in size. When I went back to the original and recreated the file it uploaded OK.

       
    • Gerry Kroll

      Gerry Kroll - 2008-05-08

      There are many reasons why the function generate_thumbnail(), which is in includes/functions_mediadb.php, will fail. 

      Unfortunately, quite a bit of surgery would be required, not only to this function but also to all the places where it's used, to have PhpGedView produce a meaningful failure message.

      The various reasons for tumbnail creation failure are:
      - "Automatically generated thumbnails" option in the GEDCOM configuration is "No"
      - target thumbnail file already exists
      - media/thumbs directory is not writable
      - support for that image type is missing in the GD library
      - original-sized image does not exist
      - path for the target thumbnail does not exist and could not be created
      - size of original image could not be determined
      - external original image (usually a URL) could not be read
      - not enough memory for the original image plus the thumbnail
      - the GD library function imagecreatefromxxx failed

       
    • Thomas52

      Thomas52 - 2008-05-08

      Well, I deleted the earlier uploads in the media file, checked the thumbs but nothing new, opened the image in Paint, resized, and tried again.  Bingo! (Who knows?)

       
    • Gerry Kroll

      Gerry Kroll - 2008-05-08

      If you resized outside PGV, the image was too big for the amount of memory you limited PGV to.

       
  • matthys

    matthys - 2010-05-03

    Did you solve this? Because I have now a similar problem with PGV 4.2.3 with same error message.
    It also says that the media is already there and when I check on the server it was correct.
    However no link of the media to the the person…

    I would guess it FIRST checks and than uploads to server and link it… or removes it from server when not OK.

     
  • matthys

    matthys - 2010-05-03

    Okay, resize of the image did the trick for me as well.

    But what limits has PGV for this?

    This was a original scan from an archive:
    Orginal -> 2208 x 3384  Pixels, size 597.37 KB = FAILURE
    Modified -> 1024 x 1569 Pixels, size 207.74 KB = OK

     

Log in to post a comment.