-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Internalize deprecated imghdr packet #646
Conversation
`what` was simplified to only do the required functionality.
Some types detected by imghdr are not supported by native or extended QT. Therefore, they were removed. Some custom types, that were not supported by imghdr have been moved to the other file type tests.
4f38bb4
to
6357765
Compare
Thanks a bunch, this is excellent work! 😊 I love that you removed the files not supported by Qt, that Let me see
|
Glad that you like it. I also think this is a clean way to solve this problem. I know some people who may be experienced with licensing, I will ask them if they can help us out 😊 The question with
At the moment it seems a bit arbitrary which formats required explicit activation via For reference, these formats are supported natively, and these are supported when having the |
Getting licensing experience on board would be great, thanks! I agree, this is currently a bit arbitrary, personally I would favour this split:
What do you think? |
True; I forgot that there are also other QT modules which add support for new files types (beside |
Legal stuff is such a pain. I asked different people, and at different places and no one would give me a concrete answer (well, for obvious reasons...). The thing is that we need to maintain their license, but when we apply modifications/add own stuff, things get bit entangled and less clear. But the procedure should be (according to own research and what I was told):
Anyways, since I rather write code, than "legally significant" docstrings, I decided to create a completely independent implementation of the file type detection, which I pushed to #650 . This should make it much easier for us to maintain the code in the future. Therefore, I close this PR in favour of #650 |
This PR internalizes the code from imghdr into our our code base. The code newly resides in
utils/imghdr
. The process is fairly straightforward and also allows for simplifications inutils/files
, as our own custom types can be moved to the other imghdr code.Steps:
imghdr.py
toimageheader.py
orimagetype.py
orimagedetection.py
or something?imageformats
plugin?implements #579