MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getCompletedImageFilenames

Function getCompletedImageFilenames

apps/web/src/hooks/useImageUpload.ts:133–140  ·  view source on GitHub ↗
(images: ImageFile[])

Source from the content-addressed store, hash-verified

131 context.drawImage(bitmap, 0, 0, dimensions.width, dimensions.height);
132 const blob = await blobFromCanvas(canvas, file.type, resizeImages.quality);
133 return new File([blob], file.name, { type: file.type, lastModified: file.lastModified });
134 } finally {
135 bitmap.close();
136 }
137}
138
139export async function preprocessImageFile(
140 file: File,
141 options: {
142 allowedTypes: readonly string[];
143 maxOriginalFileSizeBytes: number;

Callers 1

useImageUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected