
Product
Socket Now Protects the Microsoft Edge Extension Ecosystem
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.
dsh-read-image-jpeg-fallback
Advanced tools
DSH profile plugin: converts read_image PNG/WebP attachments to opaque sRGB JPEG so LM Studio's openai-completions endpoint accepts them
A small DSH profile plugin that converts read_image PNG/WebP attachments to JPEG before they are sent to the model.
It is intended for LM Studio setups where DSH-generated WebP attachments cause:
400 'url' field must be a base64 encoded image
DSH may normalize PNG screenshots into WebP before building the model request.
Some LM Studio openai-completions routes reject those WebP image attachments.
This plugin hooks into read_image after the tool finishes and converts:
image/png → opaque sRGB JPEGimage/webp → opaque sRGB JPEGJPEG and other media types are left unchanged.
The built-in read_image tool itself is not replaced or modified.
Requires:
0.1.1-rc.2>= 22pnpm available on PATHdsh plugin --profile web add .\dsh-read-image-jpeg-fallback-0.1.1.tgz
Once published:
dsh plugin --profile web add dsh-read-image-jpeg-fallback
Restart DSH Web after installation.
No configuration is required.
Use read_image normally. When its result contains a PNG or WebP attachment, the plugin converts the model-visible image to JPEG before the next provider request is built.
read_image
↓
DSH attachment
↓
PNG / WebP ?
├─ no → pass through
└─ yes → opaque sRGB JPEG (quality 90)
↓
model
The plugin is designed to fail open.
If reading, converting, or saving the replacement image fails, the original read_image result is preserved and a warning is written to the DSH log.
It does not turn a successful tool call into a plugin error.
Verified with:
0.1.1-rc.2openai-completions0.35.3Compatibility with other DSH versions or providers is not guaranteed.
On some Windows + pnpm setups, removing the plugin may hang after pnpm has already completed its filesystem changes, particularly when sharp is being pruned.
If this occurs, pinning sharp directly in the DSH profile avoids the issue:
cd <DSH_HOME>\profiles\web
pnpm add sharp@0.35.3
dsh plugin --profile web remove dsh-read-image-jpeg-fallback
Restart DSH Web afterwards.
The plugin uses DSH's tools/post-execute hook.
For accepted read_image results containing PNG or WebP image blocks, it:
sharp to opaque sRGB JPEG at quality 90;The canonical tool result and built-in read_image implementation remain untouched.
MIT
FAQs
DSH profile plugin: converts read_image PNG/WebP attachments to opaque sRGB JPEG so LM Studio's openai-completions endpoint accepts them
We found that dsh-read-image-jpeg-fallback 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.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.

Research
/Security News
Socket researchers found 18 Chrome extensions and one Edge extension delivering a wallet drainer, credential theft, and other malicious payloads.

Product
Create ClickUp tasks from Socket alerts, automate ticketing with custom rules, and keep alert and task status synchronized.