What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Fixed Vb3.8 Importer Is Still Failing To Import Png Images

Discussion in 'Bug Reports' started by rogerl, Dec 15, 2013.

  1. rogerl

    rogerl Authorized Member Authorized

    The details get added to the database, but the picture doesn't get written to a data file, as for version 1.

    jpeg, jpg and gif all imported ok and the dates are now correct in version 2.0
     
  2. sonnb

    sonnb Administrator Staff Member

    There is something wrong with those images as I have tested PNGs and it still works.
     
  3. rogerl

    rogerl Authorized Member Authorized

    There is nothing wrong with the images, I can quite happily download them from the vB database (eg as a binary file from phpAdmin) and then reupload the same images to XenGallery without problem, equally they display ok in our old vBulletin test setup.
     
  4. sonnb

    sonnb Administrator Staff Member

    Could you send them to me or upload here? Just for testing.
     
  5. rogerl

    rogerl Authorized Member Authorized

    I have been looking into this a bit further. Not every png file is affected, but all of the imports that failed appear to have a smaller filesize (not dimensions) for the full image than the processed thumbnail image. Although all of the images and thumbnails are correct and display correctly from the vB database.

    png files where the thumbnail filesize is smaller than the original image filesize appear to have uploaded correctly.

    I will email you an extract from our vB "picture" table containing one of the images that failed to process correctly.
     
  6. sonnb

    sonnb Administrator Staff Member

    Thanks. I will look at it.
     
  7. sonnb

    sonnb Administrator Staff Member

    Hello rogerl,

    Sorry for delay reply.

    I have just checked your png file, your file has extension is png but it does not have valid PNG signature in the data. That why PHP function imagecreatefrompng refused to process it.

    This is understandable reason and will not be fixed as the file will be considered as invalid.
     
  8. rogerl

    rogerl Authorized Member Authorized

    You are correct, looking at the example I sent you the header is JFIF (ie Jpeg). Strange how the vB Gallery accepted and processed these.

    I will check the other files and if the same, I will correct the file extensions in the import database and try a fresh import.

    Thanks for your help.
     
  9. sonnb

    sonnb Administrator Staff Member

    But anyway, a small issue that, if we failed to generate the files then must not create that photo. This will be fixed.
     

Share This Page