diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..42b1b17 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* dgravitate diff --git a/src/cpp/image.cpp b/src/cpp/image.cpp index 725359b..3a96080 100644 --- a/src/cpp/image.cpp +++ b/src/cpp/image.cpp @@ -102,7 +102,11 @@ PYBIND11_MODULE(image, m) .def(py::init(), py::arg("iwidth"), py::arg("iheight"), py::arg("iformat")) .def("bytes_per_row", &image::bytes_per_row) // .def("const_data", &image::const_data) +#if HAS_VERSION(25, 1) + .def("copy", &image::copy) +#else .def("copy", &image::copy, py::arg("rect") = rect()) +#endif .def("data", &data) .def("set_data", &set_data) .def("format", &image::format) @@ -114,4 +118,4 @@ PYBIND11_MODULE(image, m) m.def("supported_image_formats", &image::image::supported_image_formats); } -} // namespace poppler \ No newline at end of file +} // namespace poppler