Mika Scraper / MikaFilterImage
Class: MikaFilterImage
Defined in: src/_other-scraper/face-filtet.ts:31
A service that applies AI-powered image filters to enhance images based on specified configurations.
Constructors
Constructor
new MikaFilterImage():
MikaFilterImage
Returns
MikaFilterImage
- An instance of the MikaFilterImage
class.
Properties
availableFilters
static
availableFilters:Record<string, FilterConfig>
Defined in: src/_other-scraper/face-filtet.ts:35
A static registry of supported filters along with their corresponding prompt definitions.
Methods
applyFilter()
static
applyFilter(input: ApplyFilterInput
):Promise<ApplyFilterOutput>
Defined in: src/_other-scraper/face-filtet.ts:287
Applies a registered filter to a base64-encoded image, returning the processed image and related output.
Parameters
input
input: ApplyFilterInput
- An object containing:
image
: A string representing a base64-encoded image to which the filter will be applied.filterName
: A string specifying the name of the filter to use.
Returns
Promise<ApplyFilterOutput>
- A promise that resolves to an ApplyFilterOutput
object, which includes:
imageBuffer
: A buffer containing the filtered image.textResponse
: A textual description or metadata about the filter application.
getFilters()
static
getFilters():FilterConfig[]
Defined in: src/_other-scraper/face-filtet.ts:313
Retrieves metadata about available filters, including their names and descriptions.
Returns
FilterConfig[]
- An array of FilterConfig
objects, where each object details the name and description of a filter.