Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
HI,
we want to extract Metadata for CRW files.
we are using this code of JRAWIO-
File file = new File("DSC1234.NEF"); ImageReader reader = ImageIO.getImageReaders(file).next(); reader.setInput(ImageIO.createImageInputStream(file)); IIOMetadata metadata = reader.getImageMetadata(0);
By this code, we are successful in extracting metadata fro CR2 files. but CRW is still not working.
please help in extracting metadata for CRW files, by this code or by any other code..
Its given that above code supports CRW file.
please help
Gelöst! Gehe zu Lösung.
Out of the box we have limited support here. In the library you are using are you sure the image is generated from one of supported cameras[1]?
Can you please provide more details on what you want to do. You want AEM to be able to extract data from CRW files?
Zugriffe
Antworten
Likes gesamt
Out of the box we have limited support here. In the library you are using are you sure the image is generated from one of supported cameras[1]?
sir How to map this IIOMetadata to CQ Dam format (like for jpeg or dng format how we see the metadata in CRDX lite)
I m getting IIOMetadata object, but now I have to map this metadta.
CQ devloper using ExtractedMetadata object to mapping(i think, not sure)
so either i have to convert IIOMetadata to ExtractedMetadata object,
or I have to map IIOMetadata object(so that it can appear like how jpeg or dng appear whenwe go to crdx lite)
Thanks a lot for answering my question.
thank you.
Zugriffe
Antworten
Likes gesamt
Yes you need to use ExtractedMetadata and inserts extracted value from IIOMetadata
hi sir,
thanks for answer,
but can you please elaborate how to do that. (I am new to cq)
since IIOMetadata is kind of abstract tree,
so i really do not know how to extract value form Metadata, and inserts these values. I have jars, but there was nothing i found on internet how to that.
NOte: currently what I am doing, is- converting IIOMetadta to node and then to XML input string and hence using Session.importXml method. but its coming buggy, means its not proper. like its not simile to what we see for other images.
so please guide me, either by your new process or by working on the method which I am already using. You can refer to my screen shot which i am attaching.
please sir help me out
Zugriffe
Antworten
Likes gesamt
hi sir, I am using this code for Converting IIOMetadata to jar,
and result i have posted in my other commentt please do help.
attaching the xml data, which i m printing via string, in the doc file. please do look.
String[] mdatanames = metadata.getMetadataFormatNames();
String mdataname = mdatanames[0];
Node metadatadom = metadata.getAsTree(mdataname);
DOMSource source = new DOMSource(metadatadom);
ByteArrayOutputStream os = new ByteArrayOutputStream();
StreamResult result = new StreamResult(os);
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.transform(source, result);
ByteArrayInputStream bais = new ByteArrayInputStream(os.toByteArray());
String nodePath1 = asset.getPath() + "/jcr:content/metadata" ;
session.importXML(nodePath1, bais, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REPLACE_EXISTING);
Zugriffe
Antworten
Likes gesamt
As mentioned in the other thread - use the JCR API to get the data into JCR nodes. See:
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten