Skip to content

Commit d456c23

Browse files
jh-blockclaude
andcommitted
fix: re-enable PNG codec for goose-mcp image handling
load_image_as_png uses ImageFormat::Png to encode non-PNG inputs into PNG for DOCX insertion. The jpeg-only feature set broke this at runtime for JPEG and other image formats. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 940ea78 commit d456c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/goose-mcp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ once_cell = { workspace = true }
4646
ignore = { workspace = true }
4747
lopdf = "0.36.0"
4848
docx-rs = "0.4.7"
49-
image = { version = "0.25", default-features = false, features = ["jpeg"] }
49+
image = { version = "0.25", default-features = false, features = ["jpeg", "png"] }
5050
umya-spreadsheet = "2.2.3"
5151
which = {workspace = true}
5252
lru = { workspace = true }

0 commit comments

Comments
 (0)