Ah. I assumed that because the line "if (*.png iswm %m)" the pics would all be in .png format.
No there isn't much you can do in the case of GIFs, except maybe to convert them first with a prog such as the excellent and free Irfanview.


This assumes irfanview is installed to the default 'C:\program files\irfanview\' folder.

alias gif2png {
  • tokenize 32 $remove($1-,")
    if $gettok($1-,-1,46) != gif { return }
    var %a = $ticks,%x = $+(",$1-,"),%y = $+(",$puttok($1-,png,-1,46),")
    .comopen %a wscript.shell
    if !$comerr {
    .comclose %a $com(%a,run,3,bstr,C:\progra~1\irfanv~1\i_view32.exe %x /convert= $+ %y,uint,7,bool,true)
    }
    return %y
}

In your sockclose event, you check the extension for GIF and convert if needed.

on *:sockclose:life.*:{
  • var %f = C:\ $+ $gettok($sock($sockname).mark,1,32)
    if $gettok(%f,-1,46) isin gif" { %f = $gif2png(%f) }
    window -pdof @Comic -1 -1 $pic(%f).width $pic(%f).height
    drawpic -c @comic 0 0 %f
}

Best I can do... smirk