Skip to content

feat: resize image before base64 encoding in use --base64#6

Open
MMMarcinho wants to merge 1 commit into
mainfrom
claude/analyze-test-coverage-Q4RK3
Open

feat: resize image before base64 encoding in use --base64#6
MMMarcinho wants to merge 1 commit into
mainfrom
claude/analyze-test-coverage-Q4RK3

Conversation

@MMMarcinho

Copy link
Copy Markdown
Owner

--width and --height on the use command previously only applied to --ascii rendering. They now also resize the image (in pixels) before base64-encoding it, so callers can request a smaller payload.

Falls back to raw file read (no extra cost) when neither flag is set. Jimp is used for formats it supports (png/jpeg/bmp/gif/tiff); the mime map used for the data URI is unchanged.

https://claude.ai/code/session_01SSLJzJfZ4nGZdRQK4Cu6tw

--width and --height on the use command previously only applied to
--ascii rendering. They now also resize the image (in pixels) before
base64-encoding it, so callers can request a smaller payload.

Falls back to raw file read (no extra cost) when neither flag is set.
Jimp is used for formats it supports (png/jpeg/bmp/gif/tiff); the mime
map used for the data URI is unchanged.

https://claude.ai/code/session_01SSLJzJfZ4nGZdRQK4Cu6tw
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.

2 participants