
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@brdk/node-red-picamera2
Advanced tools
Node-RED node for taking photos on a Raspberry Pi using picamera2 library
A Node-RED node to take still photos on a Raspberry Pi using the picamera2 library. This node will only work on a Raspberry Pi with a camera module enabled.
First, make sure your Raspberry Pi Camera is physically connected and detected. On Raspberry Pi OS Bookworm or later, the libcamera stack is enabled by default.
Install picamera2 if not already available:
sudo apt-get update
sudo apt-get install python3-picamera2
For 90°/270° rotation support, install Pillow:
pip3 install Pillow
If you are using the default path during the file option set - the path ~/Pictures will be used.
This node requires Raspberry Pi OS bookworm or later with the libcamera camera stack. Tested with a docker container running Python 3, Node.js 22, and Node-RED 4.x+.
picamera2-takephoto into your flow.inject node to trigger captures.debug node to inspect output.Buffered Mode for in-memory processing, or use Default and Auto File Name to save to disk.Example flow idea:
inject -> picamera2-takephoto (Buffered Mode) -> function (base64 encode) -> storage/API nodeScreenshot:

File Mode: 0 Buffered Mode, 1 Default, 2 Auto File NameImage Name (autoname): used in auto mode as base name (no extension)File Name (filename): used in default mode as base name (no extension)File Path (filepath): output folder, default ~/Pictures/File Format (fileformat): jpeg, png, bmpImage Resolution: predefined list from 320x240 up to 3280x2464Rotation: 0, 90, 180, 270Image Flip: horizontal and verticalBrightness: 0 to 100 (mapped internally to libcamera range)Contrast: -100 to 100Sharpness: -100 to 100Quality: JPEG quality 0 to 100 (ignored for non-JPEG formats)ISO: 0 (auto) or fixed values 100 to 800Exposure: auto or manualAWB: auto, daylight, cloudy, tungsten, fluorescent, incandescent, indoorWait for AGC (agcwait): delay before capture in secondsFAQs
Node-RED node for taking photos on a Raspberry Pi using picamera2 library
We found that @brdk/node-red-picamera2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.