1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why wont this picture embed

Discussion in 'Troubleshooting and Problems' started by ChemicalKicks, Nov 14, 2011.

  1. ChemicalKicks

    ChemicalKicks Well-Known Member

    A user has attempted to upload several pictures to my site several have failed, its like xf isn't recognising them as pictures, no thumbnail will display so can't insert the images. Weird.

    Maximum file size is only 2mb so can't upload here unfortunately.

    Here's the thread http://www.the-sps.org/threads/problem-displaying-attachments.23123

    Edit: initially I thought the problem was the file name but this apparently isn't the cause. I allow pictures up to 10mb so strange. The server logs show 2 errors today that would appear to be linked to this but it says in those user account unknown..

    Running latest beta.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    There's something wrong with the file encoding/details.

    I just downloaded them and resaved them as .jpg and they worked fine.
     
    ChemicalKicks likes this.
  3. CyclingTribe

    CyclingTribe Well-Known Member

    In this post there are spaces in the filenames - could that be it?

    In this post the file extension is the full jpeg (four letters) - is that in your list of allowed file extensions?
     
    ChemicalKicks likes this.
  4. ChemicalKicks

    ChemicalKicks Well-Known Member

    Good to know and thank you! X

    I had noticed both yeah all allowed, just don't know how he ended up with the file extensions the way he did. JPEG is allowed too x
     
  5. ChemicalKicks

    ChemicalKicks Well-Known Member

    The user is adamant he's got these same pictures working on another forum and Facebook, just tried a smaller one here. Definitely not working.
     

    Attached Files:

    • d.jpg
      File size:
      348.1 KB
      Views:
      3
    • d.jpg
      File size:
      348.1 KB
      Views:
      2
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I've flagged it up to Mike & Kier on the off chance that something can be done about it.
     
    Brandon Sheley and ChemicalKicks like this.
  7. Mike

    Mike XenForo Developer Staff Member

    This looks like a failing of GD. Imagick thumbnails it properly.
     
    ChemicalKicks likes this.
  8. ChemicalKicks

    ChemicalKicks Well-Known Member

    Why does it fail, what's different about that picture that's causing GD to fallover?
     
  9. Mike

    Mike XenForo Developer Staff Member

    I don't know. GD is a large program and Imagick is completely separate. It's quite possible that image just employs some rare type of JPEG encoding that GD doesn't handle correctly.
     
    ChemicalKicks likes this.
  10. ChemicalKicks

    ChemicalKicks Well-Known Member

  11. rootsxrocks

    rootsxrocks Active Member

    These came from my Android infuse , they successfully uploaded to Facebook but I also tried them on my vb and xenforo and had the same problem that a thumb can't be created. and it fails to display inline but works when you go directly to it with the browser.
    It seems to be unique to my phones camera app pictures but another odd thing pictures taken with google goggles work and even some older I tried several resolution settings the Vb error said failed to re-size or wrong gd version specified .
     

    Attached Files:

    ChemicalKicks likes this.
  12. ChemicalKicks

    ChemicalKicks Well-Known Member

    What happens if you use the native camera app?
     
  13. rootsxrocks

    rootsxrocks Active Member

    that is the native camera App that caused the issue but it hadn't always done it , at least I don't think it has.
     
    ChemicalKicks likes this.

Share This Page