-
Notifications
You must be signed in to change notification settings - Fork 5
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
Libjpeg-turbo #71
Comments
Good find! Yes, if it has the same functionality and we are able to integrate it, I see no reason to retain the old version, as the other plugins already are under MIT or compatible licenses. I (also as a non-expert) have recently been told in another context that libjpeg can be completely replaced by libjpeg-turbo featurewise, and that both implement the same standard. And |
Same.
I've looked some more out of curiosity. Seems to me the key is in building the wheels, after that the drop-in should be okay. Given that it look like there will be a fair number of changes, I'll probably create a |
I think you can reuse the existing workflow to build the wheels without problems. I think the key is rewiting the
Yes, I have been thinking along the same lines after thinking about it a bit more, so I completely agree. Go ahead! |
Hmmm ... I started digging into the Cython stuff and all that, then I remembered I had seen And... I was thinking that because pylibjpeg-libjpeg is GPLv3, then we should be careful not to possibly be interpreted as a derived work. As I look a little more, |
Okay, I've created a structure and opened a public repo: https://github.com/pydicom/pylibjpeg-turbo (I went with the shorter name, too much typing). Still very much WIP, of course. |
Yes, this is possible, though in general I prefer the sub-module approach - much less maintenance needed for moving to a new version. But if we need only a small part, it certainly makes sense. |
I agree, I think I didn't write carefully, what I meant was to start with PyTurboJPEG as a dependency, but if we need something a little different we could just add it ourselves, (modeling on their code, and contribute it back to PyTurboJPEG if it might be of general interest). |
Ah ok, I didn't indeed understand you correctly. This make sense, of course! |
Apparently there is now 12-bit support in libjpeg-turbo as of v3.0.x.
Perhaps it can be investigated as a replacement for / in addition to
pylibjpeg-libjpeg
, with a more permissive license (BSD-style).According to the libjpeg-turbo README:
Which sounds to me (non-expert) like it could be almost a drop-in replacement in the existing libjpeg handler code.
The text was updated successfully, but these errors were encountered: