Manager for MagickFiles
.
ImageHome
▸ addBuiltInImages(): Promise
<void
>
Defined in imageHome.ts:26
Add ImageMagick built-in images like rose:
, logo:
, etc to this execution context so they are present in getAll()
.
Returns: Promise
<void
>
▸ get(name: string
): Promise
<MagickInputFile>
Defined in imageHome.ts:12
Get a file by name.
Parameters:
Name | Type |
---|---|
name | string |
Returns: Promise
<MagickInputFile>
▸ getAll(): Promise
<MagickInputFile[]>
Defined in imageHome.ts:22
Get all the files currently available in this context.
Returns: Promise
<MagickInputFile[]>
▸ isRegistered(name: string
): boolean
Defined in imageHome.ts:18
Parameters:
Name | Type |
---|---|
name | string |
Returns: boolean
▸ register(file: MagickFile, name?: string
): void
Defined in imageHome.ts:17
Programmatically add new files.
Parameters:
Name | Type |
---|---|
file | MagickFile |
Optional name |
string |
Returns: void
▸ remove(names: string
[]): MagickInputFile[]
Defined in imageHome.ts:31
Remove files by name.
Parameters:
Name | Type |
---|---|
names | string [] |
Returns: MagickInputFile[] the files actually removed.