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

Function preprocessImageFile

apps/web/src/hooks/useImageUpload.ts:207–237  ·  view source on GitHub ↗
(
  file: File,
  options: {
    allowedTypes: readonly string[];
    maxOriginalFileSizeBytes: number;
    maxFileSizeBytes: number;
    resizeImages?: ImageResizeOptions;
  }
)

Source from the content-addressed store, hash-verified

Callers 1

useImageUploadFunction · 0.85

Calls 3

validateImageFileTypeFunction · 0.85
validateImageFileSizeFunction · 0.85
resizeImageFileFunction · 0.85

Tested by

no test coverage detected