I'm using the below in Live 3.0.1
<img width=40px src="{.if|{.filesize|%item-resource%\folder.png.}|%item-url%folder.png
|{.if|{.filesize|%item-resource%\folder.jpg.}|%item-url%folder.jpg
|{.if|{.filesize|/template/{.!theme.}/images/icons/%item-name%.gif.}|/template/{.!theme.}/images/icons/%item-name%.gif
|/template/{.!theme.}/images/icons/folder.gif.}.}.}"/>
How to apply the pop up preview to both jpg and png like them are in the folder and not affecting the gif?
Thanks