Hey Christian,
I couldn't find the plugin file on my install,
what's the full name of the plugin?
(I did have image formats on it but only found qjpeg
and libqjpeg)
Usually plugins needs just to be copied on the build directory
so they can be included in the package,
for example:
https://code.qt.io/cgit/pyside/pyside-setup.git/tree/build_scripts/wheel_files.py?h=6.4#n417
where you can see it's just the plugin directory name is added
to the plugins list and then it will be included.
In 6.5.x we have a smarter mechanism, and we rely on the
modules information from a Qt build and get all the plugins
associated to the module:
https://code.qt.io/cgit/pyside/pyside-setup.git/tree/build_scripts/wheel_files.py?h=6.5#n433
so it should be added automatically, as long as the Qt module
where it belongs is built.
For 6.4 I think you'd need to have your own PySide build,
but for 6.5.1+ it should be included. It would be better to open a
ticket on JIRA so we don't forget but I'd try to remember
for this week :)
Cheers!
On 4/29/23 04:18, Christian Gagneraud wrote:
Hi there,
I'm using PySide 6.4 on Linux and I need to process JP2 images.
Qt has a plugin for JP2 on linux, it's called qjp2.
But this plugin is not available in PySide.
What is the best way to add support for this image format?
Can I build the plugin separately? Or do I need to build a full pyside
(and Qt) from scratch?
Neither way is satisfactory as this would require that I distribute
this custom pip package.
Any thoughts or advice?
Thanks,
Chris
--
Dr. Cristián Maureira-Fredes
Senior R&D Manager
The Qt Company GmbH
Erich-Thilo-Str. 10
D-12489 Berlin
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht
Charlottenburg, HRB 144331 B
_______________________________________________
PySide mailing list
PySide@qt-project.org
https://lists.qt-project.org/listinfo/pyside