thanks Eros
typo "bmHeight: " & $TAB & BI.bmWidth & $CRLF & _
I had a play and heres a quick stab at it with the jpeg.dll only one issue and thats the way bitmap files are constructed the bytes are in BGR rather than RGB its not difficult to fix its just slow.