libjpeg-turbo SDK for Visual C++

libjpeg-turbo·libjpeg-turbo.libjpeg-turbo.VC

SIMD-accelerated libjpeg-compatible JPEG codec library

libjpeg-turbo is a JPEG image codec that uses SIMD instructions (MMX, SSE2, NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, ARM, and PowerPC systems. On such systems, libjpeg-turbo is generally 2-6x as fast as libjpeg, all else being equal. On other types of systems, libjpeg-turbo can still outperform libjpeg by a significant amount, by virtue of its highly-optimized Huffman coding routines. In many cases, the performance of libjpeg-turbo rivals that of proprietary high-speed JPEG codecs.

winget install --id libjpeg-turbo.libjpeg-turbo.VC --exact --source winget

Latest 3.2.1·October 27, 2026

Release Notes

Significant changes relative to 3.2.0:

  1. Fixed a regression introduced by 3.2 beta1[9] that broke Un*x builds in which position-independent code (PIC) was not enabled for static libraries. This issue could be worked around by explicitly setting the CMAKE_POSITION_INDEPENDENT_CODE CMake variable or using a toolchain, such as the ones provided by Ubuntu, that automatically enables PIC.
  2. The RISC-V Vector (RVV) forward DCT modules now use strided segment load intrinsics to simultaneously load sample rows from memory and transpose them into columns, as well as multiply-accumulate intrinsics where appropriate. When using the accurate integer DCT algorithm, RGB-to-baseline JPEG compression is approximately 10-17% (avg. 13%) faster (relative to libjpeg-turbo 3.2.0) with GCC 14 and 1-8% (avg. 4%) faster with Clang 20. (Tested on a 1.6 GHz Ky X1 CPU. Actual mileage may vary.)
  3. Symbols from the in-tree zlib and libspng implementations introduced by 3.2 beta1[9] are now hidden, which prevents the symbols from being exposed in downstream shared libraries and applications that link with the static TurboJPEG API library. Symbols from the in-tree zlib implementation are now also renamed, which prevents downstream shared libraries and applications that link with the static TurboJPEG API library from accidentally calling the in-tree zlib implementation when they intend to call the system-supplied zlib implementation.
  4. Fixed an integer overflow and subsequent buffer overrun that occurred when attempting to use tj3LoadImage12() or tj3LoadImage16() from a 32-bit build of libjpeg-turbo to load a packed-pixel image with more than 2^31 components.
  5. Fixed a division-by-zero error (CVE-2026-75466) that occurred when attempting to load a non-grayscale indexed-color PNG image using tj3LoadImage*() if the pixel format of the packed-pixel buffer was unspecified (TJPF_UNKNOWN.)
  6. Fixed an issue whereby tj3DecompressToYUV*() produced incorrect chrominance values when decompressing a 4:2:0, 4:1:0, or 2:4 JPEG image with the "fast" IDCT algorithm and a scaling factor of 1/2. (In other words, TJPARAM_FASTDCT was not ignored as it should be when decompression scaling is enabled.)
  7. Fixed a buffer overrun and subsequent segfault that occurred on certain platforms when attempting to partially decompress a specially-crafted 4:2:0 JPEG image using the merged (non-fancy) upsampling algorithm with the libjpeg-turbo SIMD extensions disabled and a cropping region that would have caused any of the component planes to be cropped to a width of 1 or 2 samples.
  8. Hardened the libjpeg API against hypothetical applications that may erroneously attempt to decompress a full-color 12-bit-per-sample JPEG image with both one-pass color quantization and RGB565 color conversion enabled. This could have caused a buffer overrun in one of the quantizer's color index arrays. The buffer overrun did not likely pose a security risk, since an application that abused the API in the aforementioned manner could never work properly.
  9. Fixed issues in jpeg*_skip_scanlines() whereby, when skipping certain groups of scanlines while using a non-fancy (merged or plain) upsampling algorithm with a vertical sampling factor greater than 1, the wrong number of scanlines were skipped and/or skipped scanlines were returned in subsequent calls to jpeg*_read_scanlines().
  10. Hardened the TurboJPEG API against hypothetical applications that may erroneously pass an invalid image to tj3DecompressHeader(), ignore a fatal error thrown by that function, and attempt to call the function again with a valid image. Under certain circumstances, this could have caused the values of TJPARAM_JPEGWIDTH and TJPARAM_JPEGHEIGHT to reflect the dimensions reported in the invalid image's header rather than the valid image's header, which might have caused the caller to allocate too small of a buffer to hold the decompressed valid image.
  11. tj3DecompressHeader() now always removes the ICC profile (if any) that was previously extracted into the TurboJPEG instance. This addresses an oversight in 3.2 beta1[10] whereby, if the same TurboJPEG instance was used to decompress or transform multiple JPEG images, then tj3GetICCProfile() and tj3TransformBufSize() behaved as if JPEG images with no ICC profile contained the last ICC profile extracted.
  12. tj3TransformBufSize() has been improved in the following ways:
    • The function now accounts for the size of all extra markers (including comments, JFIF thumbnails, and Exif data) that will be copied from the source image to the destination image, given the current value of TJPARAM_SAVEMARKERS and the specified transform options.
    • The function now returns accurate results regardless of the value of TJPARAM_SAVEMARKERS at the time tj3DecompressHeader() was called. This reflects the fact that only the current value of TJPARAM_SAVEMARKERS and the specified transform options affect the marker copying behavior in tj3Transform().
  13. Fixed issues in jpegtran that prevented a grayscale image from being dropped into a subsampled input image or vice versa.
  14. Hardened the TurboJPEG API against hypothetical applications that may erroneously attempt to use the same insufficiently large pre-allocated destination buffer for multiple simultaneous transform operations in tj3Transform(). This caused a use-after-free issue, because the caller-specified destination buffer was no longer valid after the first transform operation reallocated it.
  15. Fixed multiple issues in the standalone (non-merged) RGB565 color converters that occurred when attempting to decompress more than one scanline at a time from a vertically subsampled JPEG image. These issues caused a buffer overrun and subsequent segfault if the output image rows were not 4-byte aligned, the image width was 1, and both the vertical sampling factor and the number of scanlines decompressed at a time were greater than 2. In other cases, the issues caused incorrect dithered output. The issues could not be reproduced using djpeg (which decompresses one scanline at a time) and were not known to exist in any other applications.

Installer type: nullsoft

x86—F29AE467E08CA0FF9447F67E91DCBBB7231C8007A268004C503FB0F3F485B5F4
x64—1F05BC3ED1585E6B12A8B0C24C8C5F07B1F6D90D01B4B709B331BEDC9D6E5838
arm64—A4587F5409B930EE9B5516A897C59C6C68627D96B8F06270D51C0F2A6C68A29C

Details

Homepage
https://libjpeg-turbo.org/
License
IJG license, Modified (3-clause) BSD License and zlib License
Publisher
libjpeg-turbo
Support
https://github.com/libjpeg-turbo/libjpeg-turbo/issues
Copyright
Copyright (C)2009-2026 D. R. Commander. All Rights Reserved.

Tags

jpeglibjpeg

Older versions (11)

3.2.0
x86—86806741D743DBD53A889FF721F2274CD34BC41B4DD40500902DF8D99332153E
x64—662761D8BA8DAE04AEC74023EBAECEB856C2B56B9B59CFD180759D26300DDA42
arm64—269FC323BFCF6E1AD45138AF808F7BD912447E9282DB54635C72F6A889075BBA
3.1.4.1
x86—92562AE82075A91C63371EC18FD7B285E87B775CCBC5ACEA5839BF410CEB175F
x64—2BB347F106473C12635BDD414B1F289DE9F4D6DEA4A496D3F9DD212DB9EDA0DC
arm64—BC5F251FC80C96160AB0EA72EBDBC0CDF203AA7C957B044CBA36DAA4BFAE376C
3.1.4
x86—BB289422BAF8C938373C48485F3B8CA09001DC307160078089F7931AE179ED45
x64—EE7A6A378D9EE4D631F6CCDFFE662BAC39318F618F99270391C747593D5758A4
arm64—DD8E70262F1661B7FC0E1C8AAA241DFAA2F3CCB18687B4E6565D00E0C4CE1990
3.1.3
x86—067F661985F34DB220C22B80FFE0079EACE29A34CA638163FCF77190B4C24EA4
x64—493A007CC73292531E8B186D35A22A483F6865919F936144C7B6C583B3E2FF66
arm64—84C9CE2E3CE452A7C8BB28B94C326D59A8D7D9530FF85B0A5B22B452EFC669AA
3.1.2
x86—600B3EEEEB458AB2705BDC1924E688320006EBAFAAE5BDAFE6E017AE9AEC042B
x64—36EBF787ADF093B12EFE43D4A25F988863FB64D49F69008CBA3DBCB4A3D78E6D
arm64—7E890640B1CC7BDAF9D91402465BC618044182E004043F1D159726A315632313
3.1.1
x86—2BCF502655CADC0B2B20885595D6812218248C2EB9E8010CE389BD511BAE5F09
x64—9CFB73CD587BA721F0B22113079B79CFE0A7CC13768375476A7D45B2F317E81A
arm64—2FF20C520C906D78C54989066E172F15128F872DBE73926A79CC7BE7F60C6544
3.1.0
x86—1EEC2A49E31316F0FA8FF004393B0B33057D1611CD0B4D7FA94E8624D06378AB
x64—49FD0295245CDA636BAE079F0258C751C1ADEC4794DBBA29274C620C1C10A9B0
3.0.4
x86—637ADF5410109B4F10F98E9B35E2C267A989CA3DA64114812EE1677B75A5FDEF
x64—BE83D1C9DF85A843391E6832C077CE18BA025DC895FB79F4AE2442982A2B02EE
3.0.3
x86—C1301A31A9A0ECB8F7EE40A55FF981F522E700E01C99A59E8877FF3901918496
x64—B3E6DDD9633EB963549880F9B439E395CA6DB42FC6474A31F34CBA5CA9E9C19E
3.0.2
x86—A96E27531FED2807FF679E4C854C15D12542C354AF6D2A4D1F5CA1C821E6F0D4
x64—E3FBBB3B0055478CC33F4895C887D36D38A9818B58CDFA9B84E59DDEEC3AB4B3
3.0.1
x86—BF6D09C755AB07E7168BDCBB21BE84E7D119922A9924D76A921DE23956F5A0E1
x64—99F34894B7810F329BAD3F1BB0F354D3FD60B6B99915EA595A6DE0E9EFA29E25