diff --git a/docs/public/humans.txt b/docs/public/humans.txt index 12c2bc6f0..4c9eb88d7 100644 --- a/docs/public/humans.txt +++ b/docs/public/humans.txt @@ -311,3 +311,6 @@ GitHub: https://github.com/calebmer Name: Don Denton GitHub: https://github.com/happycollision + +Name: Florent Zabera +GitHub: https://github.com/florentzabera diff --git a/docs/src/content/docs/changelog.md b/docs/src/content/docs/changelog.md index a0790f543..41f2ab374 100644 --- a/docs/src/content/docs/changelog.md +++ b/docs/src/content/docs/changelog.md @@ -34,6 +34,10 @@ Requires libvips v8.16.0 [#4207](https://github.com/lovell/sharp/pull/4207) [@calebmer](https://github.com/calebmer) +* Add support for RGBE images. Requires libvips compiled with radiance support. + [#4316](https://github.com/lovell/sharp/pull/4316) + [@florentzabera](https://github.com/florentzabera) + ## v0.33 - *gauge* Requires libvips v8.15.3 diff --git a/src/common.cc b/src/common.cc index 3b0610e70..cd556e0b3 100644 --- a/src/common.cc +++ b/src/common.cc @@ -250,6 +250,7 @@ namespace sharp { case ImageType::FITS: id = "fits"; break; case ImageType::EXR: id = "exr"; break; case ImageType::JXL: id = "jxl"; break; + case ImageType::RAD: id = "rad"; break; case ImageType::VIPS: id = "vips"; break; case ImageType::RAW: id = "raw"; break; case ImageType::UNKNOWN: id = "unknown"; break; @@ -296,6 +297,8 @@ namespace sharp { { "VipsForeignLoadOpenexr", ImageType::EXR }, { "VipsForeignLoadJxlFile", ImageType::JXL }, { "VipsForeignLoadJxlBuffer", ImageType::JXL }, + { "VipsForeignLoadRadFile", ImageType::RAD }, + { "VipsForeignLoadRadBuffer", ImageType::RAD }, { "VipsForeignLoadVips", ImageType::VIPS }, { "VipsForeignLoadVipsFile", ImageType::VIPS }, { "VipsForeignLoadRaw", ImageType::RAW } diff --git a/src/common.h b/src/common.h index b8a6d438c..63eade9fe 100644 --- a/src/common.h +++ b/src/common.h @@ -147,6 +147,7 @@ namespace sharp { FITS, EXR, JXL, + RAD, VIPS, RAW, UNKNOWN, diff --git a/src/utilities.cc b/src/utilities.cc index 070374048..580bdf353 100644 --- a/src/utilities.cc +++ b/src/utilities.cc @@ -119,7 +119,7 @@ Napi::Value format(const Napi::CallbackInfo& info) { Napi::Object format = Napi::Object::New(env); for (std::string const f : { "jpeg", "png", "webp", "tiff", "magick", "openslide", "dz", - "ppm", "fits", "gif", "svg", "heif", "pdf", "vips", "jp2k", "jxl" + "ppm", "fits", "gif", "svg", "heif", "pdf", "vips", "jp2k", "jxl", "rad" }) { // Input const VipsObjectClass *oc = vips_class_find("VipsOperation", (f + "load").c_str());