The manual says that DOpus.LoadImage()
can accept a Blob
object. This can be used to find out if a blob contains a valid image without the need to write it to disk first. However, when trying this out:
var blob = DOpus.FSUtil().OpenFile("F:\\Images\\test.jpg").Read();
DOpus.Output(blob.size);
var imgObj = DOpus.LoadImage(blob);
DOpus.Output(DOpus.TypeOf(imgObj));
if (DOpus.TypeOf(imgObj)=='object.Image')
DOpus.Output(imgObj.height + 'x'+imgObj.width);
else DOpus.Output('not an Image Object');
It seems it's not working at the moment.
Thanks.