{"repo":"lilohuang/PyTurboJPEG","free":true,"listed":false,"github":"https://github.com/lilohuang/PyTurboJPEG","clone":"git clone https://github.com/lilohuang/PyTurboJPEG.git","description":"PyTurboJPEG is a high-performance Python wrapper for libjpeg-turbo, offering native support for both x86 and ARM architectures.","language":"Python","stars":305,"topics":["libjpeg","libjpeg-turbo","turbojpeg","image-processing","real-time","embedded-systems","simd-parallelism","simd-optimizations","python","python3"],"license":"MIT","category":"media-processing","readme_excerpt":"PyTurboJPEG A Python wrapper for libjpeg-turbo that enables efficient JPEG image decoding and encoding. Prerequisites - libjpeg-turbo 3.0 or later (required for PyTurboJPEG 2.0+) - numpy - Python 3.8 or later Important: PyTurboJPEG 2.0+ requires libjpeg-turbo 3.0 or later as it uses the new function-based TurboJPEG 3 API. For libjpeg-turbo 2.x compatibility, please use PyTurboJPEG 1.x. Installation macOS Windows 1. Download the official libjpeg-turbo installer 2. Install PyTurboJPEG: Linux 1. Download the official libjpeg-turbo installer 2. Install PyTurboJPEG: Basic Usage Initialization Resource limits are disabled by default ( max pixels=0 , max memory=0 , and scan limit=0 ) so trusted large-image workflows can use libjpeg-turbo's full supported range. Configure finite limits when processing untrusted JPEGs: Native max memory enforcement requires libjpeg-turbo 3.0.2 or later. With 3.0.0 or 3.0.1, requesting a non-zero max memory emits a warning; PyTurboJPEG still enforces a configured max pixels before Python output allocation as well as a configured progressive scan limit. Decoding Decoding Header Information YUV Decoding plane sizes contains the native (height, width) of every YUV plane. These dimensions can be larger than the visible JPEG dimensions when chroma subsampling rounds an odd width or height upward. Each unified-buffer row stride is its plane's width rounded up to pad ; plane offsets are the cumulative stride height values. return metadata=True returns those v","default_branch":null,"files":null,"tree":[],"storefront":"/r/lilohuang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lilohuang/PyTurboJPEG/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}