Skip to content

Commit cc2bfc1

Browse files
authored
Merge pull request #173 from danoli3/release/3.19.23
FreeImage 3.19.23
2 parents 46c9b4f + e0f8e6d commit cc2bfc1

10 files changed

Lines changed: 44 additions & 34 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
Release notes for this fork, newest first. The 3.19 line starts from upstream FreeImage 3.19.0 on SVN.
44

5-
## Unreleased
5+
## 3.19.23 — Unreleased
66

7-
- Stage file saves and preserve destinations on encoder/write/close failure.
8-
- Support FIT_DOUBLE grayscale in ConvertToRGBF, preserving HDR values and handling non-finite/range limits.
9-
- Add optional HEIF/AVIF writing, raw EXIF import/export, and embedded thumbnail import through system libheif.
10-
- Add optional system-libjxl JPEG XL still-image reading/writing, ICC, 16-bit/float data, and exact lossless round-trip tests.
11-
- Expose linked dependency names, compile/runtime versions and system/bundled provenance through an additive C API.
12-
- Add finite min/max queries, configurable histograms, and alpha-preserving clamp/linear tone mapping.
13-
- Add an optional separately packaged Python/NumPy interface with owned arrays, file/memory I/O and wheel CI.
7+
Optional modern codecs, safer file saving, image-analysis APIs and Python/NumPy bindings.
148

15-
- Add optional system-libheif HEIF/AVIF primary-image decoding, adapted from
16-
FreeImageRe. Includes RGB/RGBA output, ICC profiles, header-only loading, and
17-
codec regression tests. Enable with `-DBUILD_LIBHEIF=ON`. (#154)
9+
- **HEIF/HEIC and AVIF reading and writing** through optional system libheif >=1.12. Enable with `-DBUILD_LIBHEIF=ON` (default OFF). Load primary still images as 8-bit RGB/RGBA, including alpha, ICC profiles, raw/parsed EXIF, embedded thumbnails and header-only loading. Writing supports 24-bit RGB/32-bit RGBA when an encoder backend is installed, quality selection, lossless RGB/4:4:4 and raw EXIF/ICC preservation. See [#164](https://github.com/danoli3/FreeImage/pull/164) and [#167](https://github.com/danoli3/FreeImage/pull/167).
10+
- **JPEG XL still-image support** through optional system libjxl >=0.7. Enable with `-DBUILD_LIBJXL=ON` (default OFF). Read/write 8/16-bit integer and 32-bit float images with alpha, ICC profiles, header-only loading and exact lossless encoding. Animation is rejected; EXIF/XMP and thumbnail import are not included initially. See [#168](https://github.com/danoli3/FreeImage/pull/168).
11+
- **Safer file saving:** stage output in an exclusively created sibling temporary file and replace the destination only after encoding and close succeed. Failures leave existing destinations intact. This changes replacement semantics: POSIX symlink/special-file destinations are rejected, new files use private 0600 permissions, existing regular-file permissions are preserved, and hard links are replaced rather than modified in place. See [#165](https://github.com/danoli3/FreeImage/pull/165).
12+
- Support `FIT_DOUBLE` grayscale in `FreeImage_ConvertToRGBF`, preserving negative/HDR values and explicitly handling NaN and values outside the float range. See [#166](https://github.com/danoli3/FreeImage/pull/166).
13+
- Add `FreeImage_GetDependenciesCount` and `FreeImage_GetDependencyInfo` to report linked libraries, compile/runtime versions where available, and system/bundled provenance. `FreeImage_GetVersion` keeps its existing meaning. See [#169](https://github.com/danoli3/FreeImage/pull/169).
14+
- Add finite min/max queries, configurable histograms, and alpha-preserving clamp/linear tone mapping. New `FITMO_CLAMP` and `FITMO_LINEAR` values extend the existing tone-mapping dispatcher. Existing histogram APIs and enum values are preserved. See [#170](https://github.com/danoli3/FreeImage/pull/170).
15+
- Add the optional **FreeImage 3.19.23 Python/NumPy package**, built separately against a shared FreeImage library. File and memory I/O return owned, top-down arrays; tests cover RGB/RGBA, grayscale/HDR types, noncontiguous arrays, Unicode paths and error handling. The wheel includes both FreeImage license texts and GitHub project links. See [#171](https://github.com/danoli3/FreeImage/pull/171).
16+
- Add codec round-trip, malformed metadata/truncation, save-failure and numerical regression tests, plus optional-codec ASan and Linux/macOS/Windows Python CI. Codec work is adapted from FreeImageRe with source attribution.
17+
- Bundled dependency versions are unchanged from 3.19.22. HEIF/AVIF and JPEG XL remain optional system dependencies; backend availability controls their capabilities. No animation support or HEIF/AVIF high-bit-depth output is added here.
1818

19-
## 3.19.22 — Unreleased
19+
## 3.19.22 — 14 Oct 2026
2020

2121
PBM decoder security fixes, 32-bit compatibility, and installable Linux packages.
2222

‎CMakeLists.txt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cmake_minimum_required(VERSION 3.16)
22

3-
# Determine the version from the latest git tag (e.g. "3.19.22"), falling
3+
# Determine the version from the latest git tag (e.g. "3.19.23"), falling
44
# back to a static default when building from a source archive without
55
# .git history (or when git isn't installed). This has to run before
66
# project() below, since its VERSION argument needs a literal
77
# MAJOR.MINOR.PATCH at parse time - it can't be computed afterwards.
8-
set(FREEIMAGE_VERSION_FALLBACK 3.19.22)
8+
set(FREEIMAGE_VERSION_FALLBACK 3.19.23)
99
set(FREEIMAGE_VERSION_COMMITS 0)
1010
set(FREEIMAGE_VERSION_HASH "unknown")
1111
find_package(Git QUIET)
@@ -19,7 +19,7 @@ if(GIT_FOUND AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
1919
RESULT_VARIABLE FREEIMAGE_GIT_DESCRIBE_RESULT
2020
)
2121
if(FREEIMAGE_GIT_DESCRIBE_RESULT EQUAL 0)
22-
# e.g. "3.19.22-45-ge32af9e" -> tag 3.19.22, 45 commits past it, hash ge32af9e
22+
# e.g. "3.19.23-45-ge32af9e" -> tag 3.19.23, 45 commits past it, hash ge32af9e
2323
string(REGEX MATCH "^([0-9]+\\.[0-9]+\\.[0-9]+)-([0-9]+)-(g[0-9a-f]+)$" _fi_ver_match "${FREEIMAGE_GIT_DESCRIBE}")
2424
if(_fi_ver_match)
2525
set(FREEIMAGE_VERSION ${CMAKE_MATCH_1})
@@ -38,8 +38,8 @@ set(FREEIMAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
3838
set(FREEIMAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
3939
set(FREEIMAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
4040

41-
# Human-readable version string: bare "3.19.22" exactly on a tag, or
42-
# "3.19.22+45.ge32af9e" (build metadata suffix, SemVer-style) in between.
41+
# Human-readable version string: bare "3.19.23" exactly on a tag, or
42+
# "3.19.23+45.ge32af9e" (build metadata suffix, SemVer-style) in between.
4343
if(FREEIMAGE_VERSION_COMMITS EQUAL 0)
4444
set(FREEIMAGE_VERSION_STRING "${FREEIMAGE_VERSION}")
4545
else()

‎FreeImage.rc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77

88
VS_VERSION_INFO VERSIONINFO
9-
FILEVERSION 3,19,22,0
10-
PRODUCTVERSION 3,19,22,0
9+
FILEVERSION 3,19,23,0
10+
PRODUCTVERSION 3,19,23,0
1111
FILEFLAGSMASK 0x3fL
1212
#ifdef _DEBUG
1313
FILEFLAGS 0x1L
@@ -25,14 +25,14 @@ BEGIN
2525
VALUE "Comments", "FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications.\0"
2626
VALUE "CompanyName", "FreeImage\0"
2727
VALUE "FileDescription", "FreeImage library\0"
28-
VALUE "FileVersion", "3, 19, 22, 0\0"
28+
VALUE "FileVersion", "3, 19, 23, 0\0"
2929
VALUE "InternalName", "FreeImage\0"
3030
VALUE "LegalCopyright", "Copyright � 2003-2026 by FreeImage\0"
3131
VALUE "LegalTrademarks", "See https://freeimage.sourceforge.net\0"
3232
VALUE "OriginalFilename", "FreeImage.dll\0"
3333
VALUE "PrivateBuild", "\0"
3434
VALUE "ProductName", "FreeImage\0"
35-
VALUE "ProductVersion", "3, 19, 22, 0\0"
35+
VALUE "ProductVersion", "3, 19, 23, 0\0"
3636
VALUE "SpecialBuild", "\0"
3737
END
3838
END

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ FreeImage is easy to use, fast, multithreading safe, and cross-platform (works w
77

88
Security and bug fixes on top of upstream FreeImage, plus a CMake build that compiles FreeImage and every bundled library from one `CMakeLists.txt`. This repository is the source tree. GitHub releases are tags, not prebuilt DLLs. Build a static library or a DLL with the commands in [Building this fork](#building-this-fork).
99

10-
This tree is FreeImage **3.19.22**. `FreeImage_GetVersion()` prints `FREEIMAGE_MAJOR_VERSION`, `FREEIMAGE_MINOR_VERSION`, and `FREEIMAGE_RELEASE_SERIAL` from `Source/FreeImage.h`. CMake takes the version from the latest numeric git tag (`git describe`) and falls back to 3.19.22 when the archive has no `.git` history.
10+
This tree is FreeImage **3.19.23**. `FreeImage_GetVersion()` prints `FREEIMAGE_MAJOR_VERSION`, `FREEIMAGE_MINOR_VERSION`, and `FREEIMAGE_RELEASE_SERIAL` from `Source/FreeImage.h`. CMake takes the version from the latest numeric git tag (`git describe`) and falls back to 3.19.23 when the archive has no `.git` history.
1111

1212
The ANSI C API is usable from C, C++, VB, C#, Delphi, Java, and from scripting languages such as Perl, Python, PHP, TCL, Lua, and Ruby.
1313

‎Source/FreeImage.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#define FREEIMAGE_MAJOR_VERSION 3
3434
#define FREEIMAGE_MINOR_VERSION 19
35-
#define FREEIMAGE_RELEASE_SERIAL 22
35+
#define FREEIMAGE_RELEASE_SERIAL 23
3636

3737
// Compiler options ---------------------------------------------------------
3838

‎THIRD_PARTY_VERSIONS.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ these libraries has a newer stable upstream release.
2727
OpenEXR, LibDeflate, and LibTIFF4 re-synced against their upstream release
2828
tags on 2026-10-02 for issue #137. All vendored version entries, including
2929
OpenEXR's auxiliary codecs below, were rechecked against their source headers
30-
on 2026-10-15 for FreeImage 3.19.22. Vendored versions are unchanged from
31-
3.19.21; 3.19.22 also carries the 32-bit GCC OpenJPH SSE compatibility fix
32-
without changing the OpenJPH snapshot version. The latest-upstream column
33-
retains the previous release review; this check verifies the bundled versions.
30+
on 2026-10-15 for FreeImage 3.19.23. Vendored versions are unchanged from
31+
3.19.22. The new HEIF/AVIF and JPEG XL integrations use optional system
32+
libraries; they do not add bundled codec snapshots. The latest-upstream
33+
column retains the previous release review; this check verifies the bundled
34+
versions rather than asserting a fresh upstream-release audit.
3435

3536
OpenEXR 3.5.2 also brings these upstream-vendored auxiliary codecs:
3637

‎Wrapper/FreeImagePlus/FreeImagePlus.rc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77

88
VS_VERSION_INFO VERSIONINFO
9-
FILEVERSION 3,19,22,0
10-
PRODUCTVERSION 3,19,22,0
9+
FILEVERSION 3,19,23,0
10+
PRODUCTVERSION 3,19,23,0
1111
FILEFLAGSMASK 0x3fL
1212
#ifdef _DEBUG
1313
FILEFLAGS 0x1L
@@ -25,14 +25,14 @@ BEGIN
2525
VALUE "Comments", "FreeImage is an Open Source library project for developers who would like to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others as needed by today's multimedia applications.\0"
2626
VALUE "CompanyName", "FreeImage\0"
2727
VALUE "FileDescription", "FreeImagePlus library\0"
28-
VALUE "FileVersion", "3, 19, 22, 0\0"
28+
VALUE "FileVersion", "3, 19, 23, 0\0"
2929
VALUE "InternalName", "FreeImagePlus\0"
3030
VALUE "LegalCopyright", "Copyright � 2003-2026 by FreeImage\0"
3131
VALUE "LegalTrademarks", "See https://freeimage.sourceforge.net\0"
3232
VALUE "OriginalFilename", "FreeImagePlus.dll\0"
3333
VALUE "PrivateBuild", "\0"
3434
VALUE "ProductName", "FreeImagePlus\0"
35-
VALUE "ProductVersion", "3, 19, 22, 0\0"
35+
VALUE "ProductVersion", "3, 19, 23, 0\0"
3636
VALUE "SpecialBuild", "\0"
3737
END
3838
END

‎bindings/python/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "FreeImage"
7-
version = "3.19.22"
7+
version = "3.19.23"
88
description = "Optional NumPy bindings for FreeImage"
99
readme = "README.md"
1010
requires-python = ">=3.9"

‎debian/changelog‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
freeimage-maintained (3.19.23-1) unstable; urgency=medium
2+
3+
* Include safer staged file saving and double-to-RGBF conversion.
4+
* Include optional HEIF/AVIF and JPEG XL codec integrations.
5+
* Include dependency diagnostics, image analysis and optional Python bindings.
6+
* Prepare tagged Linux package builds for FreeImage 3.19.23.
7+
8+
-- FreeImage Packaging Contributors <noreply@github.com> Thu, 15 Oct 2026 00:00:00 +0000
9+
110
freeimage-maintained (3.19.22-1) unstable; urgency=high
211

312
* Include IFF PBM RLE overflow and truncated-input/no-op hardening.

‎packaging/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ names: review apt's proposed removals when installing on an existing system.
3838
Use a clean environment for initial testing.
3939

4040
The historical +packaging1 entry identifies the initial packaging snapshot.
41-
The current Debian changelog targets FreeImage 3.19.22; tagged CI assigns
41+
The current Debian changelog targets FreeImage 3.19.23; tagged CI assigns
4242
distinct Ubuntu/Debian version suffixes automatically. Maintainer details are
4343
placeholders to replace before publication. The source copyright inventory needs completing before
4444
a Debian archive submission. No PPA or official repository upload is made.
@@ -62,7 +62,7 @@ sets the intended library interface; it does not prove drop-in compatibility.
6262
## Tagged release automation
6363

6464
Pushing a numeric version tag such as
65-
3.19.22 builds Linux packages and attaches them to the matching GitHub
65+
3.19.23 builds Linux packages and attaches them to the matching GitHub
6666
release. The tag, checkout, public header and CMake archive fallback must
6767
agree. All three package build/install jobs must pass before publication.
6868

0 commit comments

Comments
 (0)