I've been reading quiet a few but still am not able to get it done.Current Java code:html codeFolder Structure:I'm trying to read metadata (specifically) size of image in java and load it back to html. - I get my image via ${properties.fileReference} - I prefer Local, but By bundle is alrigh...
Created my java file, complete but apparently, I can't populate the "Image(resource)" with "fileReference" from cq:file as to I'm getting an error. a work around?
Thanks for the answers! But I think my question is not quiet direct.I need to extract the img meta data (specifically height:width) to my ".html" file so that I can reference it.if I must use java to do this, where will I write my java code?that's where I want to extract asset size.Thanks!
Hi!I',m importing an image to my custom component via "file", can I get it's resolution? for example:${properties.image.getWidth()} something like that?htl way would be good.Image is referenced at DAM
For those who are still wondering. Just place your fonts under resources folder with clientlibs allowed proxy and you should be fine. It works for me. cheers!
Ok so I have create these componentshow can I add css into it? WKND tut did it by installing a package. what if I want to do it manually like crx or IDE? how can I achieve this?the thing is, I can't trace from .html file since there no link foundhow does aem do it? connecting this html to gateway or...