Skip to content

Usage in raw HTML/Twig #4

Answered by ElMassimo
Nkzq asked this question in Q&A
Mar 24, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi Romain!

The plugin relies on JS imports to detect the preset query parameter and generate images accordingly.

From your comment, I get that you are trying to use it from PHP? If that's the case, the plugin is not designed for that use case, although it does have a programmatic API that you could adapt to your purposes by using a Vite plugin.

Moving this to discussions, feel free to ask additional questions, or provide an example of how you would use it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nkzq
Comment options

Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3 on March 24, 2022 13:25.