quarkiverse / quarkus-web-bundler

Create full-stack web apps quickly and easily with this Quarkus extension. It offers zero-configuration bundling for your web app scripts (JS, JSX, TS, TSX), dependencies (jQuery, React, htmx, etc.), and styles (CSS, SCSS, SASS).
https://docs.quarkiverse.io/quarkus-web-bundler/dev/index.html
Apache License 2.0
20 stars 10 forks source link

Add image processing support #42

Open ia3andy opened 1 year ago

ia3andy commented 1 year ago

automatic change format, resize, crop, ...

ia3andy commented 2 months ago

We already added some feature in Qute to be able to support this

FroMage commented 2 months ago

Oh really? In Qute?

ia3andy commented 2 months ago

@FroMage you remember we need some part of the tree to be able to detect the image tag at buildtime. We discussed it at the f2f. AFAI rememebr @mkouba implemented that part.

FroMage commented 2 months ago

What tree? What image tag? I'm not following how this relates to image processing.

mkouba commented 2 months ago

@FroMage you remember we need some part of the tree to be able to detect the image tag at buildtime. We discussed it at the f2f. AFAI rememebr @mkouba implemented that part.

Yes, I did. It's the Template#findNodes(Predicate<TemplateNode>) method. And here's an example how to use it: https://github.com/quarkusio/quarkus/blob/main/independent-projects/qute/core/src/test/java/io/quarkus/qute/TemplateNodesTest.java#L32-L59