Appearance
Home > entanclature > fromURL
fromURL() function
*Process the image from the URL.
Signature:
typescript
export declare function fromURL(url: string | URL): Result;
Parameters
| Parameter | Type | Description |
|---|---|---|
| url | string | URL | The URL of the image |
Returns:
The result of the processing.
Remarks
You can't use this function directly. You need to use it through entanclature.
This function is usually used as entanclature.fromURL to avoid using await in the code.
Example
typescript
import { entanclature } from "entanclature";
const url = "https://example.com/images/OTk0QTc5OVA4MEErVy04.png";
const result = entanclature.fromURL(url);
console.log(result);