Skip to content

Add Image Convert: HEIC, AVIF, TIFF and BMP attachments as JPEG/PNG - #6

Merged
Navipro70 merged 1 commit into
mainfrom
add-image-convert
Nov 29, 2026
Merged

Navipro70 merged 1 commit into
mainfrom
add-image-convert

Conversation

@Navipro70

Copy link
Copy Markdown
Owner

New plugin Image Convert (0.1.0).

BB rejects HEIC attachments and keeps AVIF, TIFF and BMP as they are. A content script wraps window.fetch for POST /api/v1/projects/<id>/attachments, sends these files to the plugin's /convert route, and macOS sips returns a JPEG (PNG when the image has an alpha channel). For each format the first upload goes to BB unchanged: once BB answers with a provider-readable type, the plugin steps aside for that format for good, logs it, and bb image-convert status reports it. This is a stopgap until get-bb/bb#8349 (fixes get-bb/bb#1670) ships.

Verified:

  • npm test (20: the shim's routing, fallbacks and step-aside, plus sips conversions of HEIC/AVIF/TIFF/BMP fixtures) and npm run typecheck pass. A git archive build passes too.
  • Installed in BB 0.50.1. The /convert route turned a 4032×3024 HEIC into a JPEG. From a bb web tab, an image/heic upload through the page's fetch came back 201 as IMG_TEST.jpg, image/jpeg.
  • marketplace.json validates against marketplace-v2.

🤖 Generated with Claude Code

A content script converts these attachments with macOS sips before BB
uploads them, and steps aside per format once BB converts it itself
(get-bb/bb#1670, get-bb/bb#8349).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Navipro70
Navipro70 merged commit 8f41005 into main Nov 29, 2026
@Navipro70
Navipro70 deleted the add-image-convert branch November 29, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HEIC images aren't rendered in the UI

1 participant