MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / createPreviewImage

Function createPreviewImage

app/services/uriPreview.server.ts:144–151  ·  view source on GitHub ↗
(uri: string, head: HeadInfo)

Source from the content-addressed store, hash-verified

142}
143
144function createPreviewImage(uri: string, head: HeadInfo): PreviewImage {
145 return {
146 url: uri,
147 contentType: "image",
148 mimeType: head.contentType,
149 size: head.contentLength,
150 };
151}
152
153// Rewrites the URL to convert an ipfs: url to use https://ipfs.io/ipfs/
154// Rewrites the URL to convert an git: url to use https://

Callers 1

getUriPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected