QPixmap.loadFromData() fails
-
I'm reading images from a web cam as JPGs.
It was working on devel machine, but it fails on user's pc.If I store the received QByteArray in a *.PNG file is displayed correctly.
Any advice how to approach the issue is welcome.
@gkavrecic It seems that the end user web cam is configured to send PNG not JPG!
So, change web cam configuration or you code the load load as PNG not JPG
-
I'm reading images from a web cam as JPGs.
It was working on devel machine, but it fails on user's pc.If I store the received QByteArray in a *.PNG file is displayed correctly.
Any advice how to approach the issue is welcome.
@gkavrecic
do not let the QImageReader guess, and specify the format duringloadFromData
call -
@gkavrecic
do not let the QImageReader guess, and specify the format duringloadFromData
call -
Hi,
Since it's not working on the user's pc, how do you provide him with the executable ?
Did you forget to bundle the plugins with it ?
From the look of it, you are missing the JPEG image format plugin.
PNG is built-in.
-
Hi,
Since it's not working on the user's pc, how do you provide him with the executable ?
Did you forget to bundle the plugins with it ?
From the look of it, you are missing the JPEG image format plugin.
PNG is built-in.
-
@SGaist, if you mean static or shared libs - shared
It might be that some DLL is missing.
Would you propose one?@gkavrecic @SGaist means JPEG plug-in delivered with Qt (check plugins/imageformats directory in your Qt setup).