New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

nobg

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nobg

Generate images with transparent backgrounds using AI

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

nobg

nobg banner

Generate images with transparent backgrounds using AI. Uses chroma key compositing — instructs the model to render on a solid green screen background, then replaces it with transparency using sharp.

Usage

Set your API key:

export GEMINI_API_KEY=your-key-here
bunx nobg [options] <prompt>

Examples

bunx nobg 'a red apple'
bunx nobg -a 16:9 -r 2k 'app icon of a banana'
bunx nobg -i photo.jpg 'remove the background from this image'
bunx nobg -i ref.png 'recreate this in pixel art style'
bunx nobg -o logo.png 'minimalist logo'

Options

FlagDescriptionDefault
-a, --aspect-ratioAspect ratio (e.g. 1:1, 16:9)1:1
-r, --resolutionResolution: 1k, 2k, 4k1k
-t, --temperatureTemperature 0.0-2.01.0
-i, --inputInput image(s) to include with the prompt (repeatable)None
-o, --outputOutput filenameAuto-generated from prompt
-d, --debugLog full prompt and API detailsOff
-c, --chroma-colorChroma key color in hex#00FF00
-m, --modelProvider/modelgemini/gemini-3-pro-image-preview

Built entirely with Claude Code.

FAQs

Package last updated on 16 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts