{"categories":[{"label":"Graphics","url":"https://skillfed.io/packages/category/multimedia-graphics"}],"enrichment":{"capability":"PyTurboJPEG wraps libjpeg-turbo to decode and encode JPEG images efficiently, supporting multiple color formats, scaling, and lossless operations on numpy arrays.","skillfed_tags":["image-compression","numpy-integration"],"use_cases":["Batch convert or re-encode large JPEG collections with custom quality settings or subsampling to reduce file size.","Decode JPEG images directly into numpy arrays for computer vision pipelines without intermediate format conversions.","Extract JPEG header metadata (dimensions, subsampling, colorspace) before deciding whether to decode the full image.","Perform lossless JPEG operations like cropping or Huffman table optimization without re-encoding pixel data.","Decode JPEG to YUV planes for video processing or direct GPU upload without RGB conversion overhead.","Scale JPEG images on-the-fly during decode to reduce memory usage in memory-constrained environments."],"what_it_does":"PyTurboJPEG is a Python binding to libjpeg-turbo that lets you decode JPEG files into numpy arrays and re-encode them with control over quality, color format, and subsampling. The package supports advanced operations like lossless cropping, scaling with quality preservation, YUV planar decoding, and in-place operations to reuse memory buffers. It handles multiple JPEG precisions and can extract header information without full decompression.\n\nThe main constraint is that libjpeg-turbo 3.0 or later must be installed separately as a system library. Once that is in place, the package integrates with numpy and works across Python 3.8 through 3.14. Resource limits are disabled by default to support large-image workflows, but can be configured when processing untrusted JPEGs. The API exposes both high-level convenience methods and lower-level control through flags and parameters.","worth_installing":"Yes. PyTurboJPEG is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers genuine performance benefits for JPEG-heavy workflows through libjpeg-turbo's optimized codec. The main requirement\u2014installing libjpeg-turbo 3.0 or later as a system library\u2014is a one-time setup cost. Install it if you need fast JPEG encoding and decoding, especially in batch or real-time image processing pipelines."},"id":"pyturbojpeg","links":{"html":"https://skillfed.io/packages/pyturbojpeg","md":"https://skillfed.io/packages/pyturbojpeg.md","pypi":"https://pypi.org/project/pyturbojpeg/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-14","license_spdx":null,"license_treatment":"permissive","name":"PyTurboJPEG","python_support":"supports_current","summary":"A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image."},"popularity":{"monthly_downloads":293025,"position":7958,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.5.0"}
