MCPcopy Index your code
hub / github.com/Dimillian/CodexMonitor / convertImagesToDataUrls

Function convertImagesToDataUrls

src/services/tauri.ts:410–419  ·  view source on GitHub ↗
(images: string[])

Source from the content-addressed store, hash-verified

408}
409
410async function convertImagesToDataUrls(images: string[]): Promise<string[]> {
411 return Promise.all(
412 images.map(async (image) => {
413 if (isInlineImageUrl(image)) {
414 return image;
415 }
416 return readImageAsDataUrl(image);
417 }),
418 );
419}
420
421async function normalizeImagesForRpc(images?: string[]): Promise<string[] | null> {
422 if (images == null) {

Callers 1

normalizeImagesForRpcFunction · 0.85

Calls 2

isInlineImageUrlFunction · 0.85
readImageAsDataUrlFunction · 0.85

Tested by

no test coverage detected