MCPcopy Create free account
hub / github.com/Make-md/makemd / constructor

Method constructor

src/adapters/image/imageAdapter.ts:13–17  ·  view source on GitHub ↗
(public plugin: MakeMDPlugin)

Source from the content-addressed store, hash-verified

11export class ImageFileTypeAdapter implements FileTypeAdapter<ImageTypeCache, ImageTypeContent> {
12private picaInstance;
13 public constructor (public plugin: MakeMDPlugin) {
14 this.plugin = plugin;
15
16this.picaInstance = pica();
17 }
18 public cacheDirectory = ".makemd/thumbnails";
19 public supportedFileTypes = ["png", "jpg", "jpeg", "webp", "gif", "avif"];
20 public id = 'images.make.md';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected