Closed KBS6 closed 10 years ago
Hm, that would be great for sure...
From looking at the turbojpeg.h
, they have their own slightly different API for lossless transformations: https://github.com/leapmotion/libjpeg-turbo/blob/master/turbojpeg.h#L904
And admittedly, it looks a lot nicer than the libjpeg8 API :smiley:
I'll look into it, either I switch from using libjpeg8 to libjpeg-turbo (seems to be included in most distributions) or I offer it as a fallback through its own lib-turbo.py
backend.
That this project and turbo jpeg.h API. The difference is that the libjpeg-turbo only displaces libjpeg8, but many old programs and libraries using the version 8d. I think the lib-turbo.py backend is a good idea to get as much distribution served by new and old API in your project.
I commited some changes last night that should make the package work with libjpeg-turbo as well! Just make sure you have the turbojpeg.h
headers on your system and it should work as is.
Gentoo, Arch and many other distribution uses default libjpeg-turbo. Attempts to install jpegtran-cffi on Gentoo cause errors.
pip install jpegtran-cffi
Or other method:
easy_install jpegtran-cffi