Skip to content
On this page

Home > entanclature > fromURL

fromURL() function

*Process the image from the URL.

Signature:

typescript
export declare function fromURL(url: string | URL): Result;

Parameters

ParameterTypeDescription
urlstring | URLThe URL of the image

Returns:

Result

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);

Released under the CC-BY-SA-4.0 License.