Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/kimi-code
/ image-compress.test.ts
File
image-compress.test.ts
packages/agent-core/test/tools/image-compress.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* image-compress — downsample/re-encode oversized images
for
the model.
3
*
4
* Tests pin:
Callers
nothing calls this directly
Calls
15
compressImageForModel
Function · 0.90
sniffImageDimensions
Function · 0.90
compressBase64ForModel
Function · 0.90
compressImageContentParts
Function · 0.90
cropImageForModel
Function · 0.90
buildImageCompressionCaption
Function · 0.90
extractImageCompressionCaptions
Function · 0.90
solidJpeg
Function · 0.85
noisePng
Function · 0.85
translucentPng
Function · 0.85
decodeAlpha
Function · 0.85
solidPng
Function · 0.70
Tested by
no test coverage detected