Resized images don't work



  • Pasting the image in ends up with this markupdownleftright:
    ![0_1461280657866_upload-337bdcd6-2cae-4d8c-9a06-85f40bc05633](/uploads/files/1461280666690-upload-337bdcd6-2cae-4d8c-9a06-85f40bc05633-resized)

    which shows as a broken image in preview:
    0_1461280721757_upload-db6393f5-7809-486b-9543-a0086077263c

    and nothing in the post:
    0_1461280657866_upload-337bdcd6-2cae-4d8c-9a06-85f40bc05633

    Removing the -resized:

    0_1461280657866_upload-337bdcd6-2cae-4d8c-9a06-85f40bc05633



  • Ayup. Tried that locally and got:

    error: [plugins] filter:image.resize, Command failed: convert.im6: invalid argument for option `-resize': 760xundefined^ @ error/convert.c/ConvertImageCommand/2382.

    The plugin isn't getting the height. But time for :sleeping_accommodation: for me. Maybe @ben_lubar can figure the rest out tonight...



  • @loopback0 @boomzilla should be fixed now. Added to the PR.



  • 0_1461288608621_df-3dmap.jpg



  • @ben_lubar Yup, seems to be working.



  • @ben_lubar You're still trying to use height:100:

    .crop(data.width, data.height)
    

    ...and I get this:

    error: [plugins] filter:image.resize, Command failed: convert.im6: invalid argument for option `-crop': 760xundefined+0+0 @ error/convert.c/ConvertImageCommand/1093.



  • @boomzilla weird, I wonder why it worked for the image I uploaded.



  • @ben_lubar Dunno. I haven't looked at the generic upload code. Maybe sometimes there's a height and sometimes there isn't?


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.