Skip to content

Commit b9f8baf

Browse files
committed
Added missing FIF constants to python bindigns
1 parent 711fbf5 commit b9f8baf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Source/FreeImage/FreeImagePy.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,13 @@ PYBIND11_MODULE(FreeImage, m) {
260260
m.attr("FIF_RAW") = pybind11::int_(static_cast<int>(FIF_RAW));
261261
m.attr("FIF_WEBP") = pybind11::int_(static_cast<int>(FIF_WEBP));
262262
m.attr("FIF_JXR") = pybind11::int_(static_cast<int>(FIF_JXR));
263+
m.attr("FIF_HEIF") = pybind11::int_(static_cast<int>(FIF_HEIF));
264+
m.attr("FIF_AVIF") = pybind11::int_(static_cast<int>(FIF_AVIF));
265+
m.attr("FIF_JPEGXL") = pybind11::int_(static_cast<int>(FIF_JPEGXL));
263266

264267

265268
// Save/Load constants
269+
// FIF_LOAD_NOPIXELS is skipped, because has no sense for loading into numpy
266270
m.attr("BMP_DEFAULT") = pybind11::int_(BMP_DEFAULT);
267271
m.attr("BMP_SAVE_RLE") = pybind11::int_(BMP_SAVE_RLE);
268272
m.attr("CUT_DEFAULT") = pybind11::int_(CUT_DEFAULT);

0 commit comments

Comments
 (0)