• I’m migrating from an old tantan using multisite.

    I upgraded to the latest version, but even before – some images can’t be parsed since getimagesize is returning with an error (Warning: getimagesize(): corrupt JPEG data: 104 extraneous bytes before marker).

    I’ve tested 2 different images with/without custom stream wrappers, and just one of them came faulty, but there are more “problematic” images like this one.

    I would very much appreciate any kind of help on this matter.

    screenshot of console while debugging: https://imgur.com/zmdv1Jm

    live text:

    
    @getimagesize( "s3euwest1://images.saloona.co.il/files/2017/08/horoscope3_shutterstock_313179392_featured.jpg" )
    array(7)
    0:321
    1:391
    2:2
    3:"width="321" height="391""
    bits:8
    channels:3
    mime:"image/jpeg"
    @getimagesize( "https://images.saloona.co.il/files/2019/12/eeee_634.png" )
    array(6)
    0:634
    1:423
    2:3
    3:"width="634" height="423""
    bits:8
    mime:"image/png"
    @getimagesize( "https://images.saloona.co.il/files/2019/10/Marlyn3110_feat.jpg")
    array(7)
    0:321
    1:391
    2:2
    3:"width="321" height="391""
    bits:8
    channels:3
    mime:"image/jpeg"
    @getimagesize( "s3euwest1://images.saloona.co.il/files/2019/10/Marlyn3110_feat.jpg" )
    false
    getimagesize( "s3euwest1://images.saloona.co.il/files/2019/10/Marlyn3110_feat.jpg" )
    false
    

The topic ‘Error on getimagesize when path is with custom stream wrapper’ is closed to new replies.