Notifications
Clear all

[Closed] PySide and jpeg

Hey

I got a issue loading jpeg-Files with my Pythonscript.
Google told me, that PySide in max doesn’t ship with the “qjpeg4.dll”.

So i tried to add the File to the LibraryPath, but that doesn’t work either.

Here´s a test code:

from PySide.QtGui import *
from PySide.QtCore import *
import sys
 
app = QApplication.instance()
app.addLibraryPath("C:/Python/Lib/site-packages/PyQt4/plugins/imageformats")
 
for i in QCoreApplication.libraryPaths():
 print (i)
for j in QImageReader.supportedImageFormats():
 print (j)

This is the output:

C:/Python/Lib/site-packages/PyQt4/plugins/imageformats
C:/Programs/Graphics/Autodesk/3ds Max 2015
bmp
pbm
pgm
png
ppm
xbm
xpm
#success

Anyone can help me here?
Thanks!