Package Exports
- @algoblend/nsfw-image-part-blur
- @algoblend/nsfw-image-part-blur/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@algoblend/nsfw-image-part-blur) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nsfw-image-part-blur
Blur NSFW regions in images from URLs using TensorFlow and Sharp.
Features
- Detects NSFW content using
nsfwjs
- Blurs only specific regions (mocked box for now)
- Returns processed image as a
Buffer
- Works in Node.js (browser support coming soon)
Install
npm install nsfw-image-part-blur
Usage
import { blurNSFWFromURL } from 'nsfw-image-part-blur';
const result = await blurNSFWFromURL({
imageUrl: 'https://example.com/adult.jpg',
blurRadius: 25
});
License
MIT