> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/selphid/release_notes/6.12.0_releasenotes.md).

# 6.12.0

In this version, the passive liveness check engine has been improved, expanding detection of new spoofing cases. The IAD (Injection Attack Detection) filters have also been improved, making them more robust against false positives, especially in highly compressed images. Finally, the environment variable has been added `FACEPHI_SELPHID_GALLERY_REMOVE_METHOD` to prevent a biometric template from being physically removed from a gallery after an operation `RemoveWithGalleryIndex()`.

```
# New remove feature, pattern is just mark as invalid
FACEPHI_SELPHID_GALLERY_REMOVE_METHOD=noerase

# Variable not present or empty, pattern is physically removed from the gallery
FACEPHI_SELPHID_GALLERY_REMOVE_METHOD=
```

### Added

* `FACEPHI_SELPHID_GALLERY_REMOVE_METHOD=noerase` to prevent templates from being deleted in galleries. They are marked as invalid, keeping the gallery size and the position of the remaining templates.

### Improved

* Updated liveness check engine.
* Improved IAD (Injection Attack Detection) prefiltering, making it more stable against images with high compression rates.
