Hi,
How can I fast check is jpg image is valid ?
There isbut I'm not sure is this the fastest way to check is image valid...Qt Code:
To copy to clipboard, switch view to plain text mode
Hi,
How can I fast check is jpg image is valid ?
There isbut I'm not sure is this the fastest way to check is image valid...Qt Code:
To copy to clipboard, switch view to plain text mode
sometimes I have question mark in QWebView when jpg file is not fully downloaded in another thread.
thats why I need fast check if jpg file is valid/correct
It still doesn't explain what you mean by "valid". That it has a valid JPEG header or that it contains valid image data? If the former then you can check the file for the header, if the latter then either load the picture and look at it or analyze it and make sure all data is there (i.e. that the file is not truncated).
Bookmarks