Skip to content

Please add an example for loading from a CDN like JSDELIVR #156

@boustanihani

Description

@boustanihani

Could you please add an example for loading libheif and libheif-web from a CDN like JSDELIVR?

I mean without the need to add libheif.min.js to the project assets...

I managed to load libheif as a regular script like this and tested the library and everything works fine:

<script src="https://cdn.jsdelivr.net/npm/libheif-js@1/libheif/libheif.min.js"></script>
<script>window.libheif = libheif()</script>

Also check: catdad-experiments/libheif-js#38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions