Index: gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/editor/ImageDisplayPlugin.html
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/editor/ImageDisplayPlugin.html (revision 56679)
+++ gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/editor/ImageDisplayPlugin.html (revision )
@@ -45,6 +45,14 @@
link
+
+ -
+
+
+ -
+
+
+
Index: gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/editor/ImageDisplayPlugin.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/editor/ImageDisplayPlugin.java (revision 56679)
+++ gallery/frontend/src/main/java/org/hippoecm/frontend/plugins/gallery/editor/ImageDisplayPlugin.java (revision )
@@ -176,10 +176,10 @@
}
}
- private Fragment createEmbedFragment(String id, final JcrResourceStream resource, final String filename) {
+ private Fragment createEmbedFragment(String id, final JcrResourceStream resource, final String filename) throws RepositoryException {
Fragment fragment = new Fragment(id, "embed", this);
- fragment.add(new Label("filesize", new Model(formatter.format(resource.length().bytes()))));
- fragment.add(new Label("mimetype", new Model(resource.getContentType())));
+ fragment.add(new Label("filesize", new Model<>(formatter.format(resource.length().bytes()))));
+ fragment.add(new Label("mimetype", new Model<>(resource.getContentType())));
fragment.add(new ResourceLink("link", new JcrResource(resource) {
private static final long serialVersionUID = 1L;
@@ -201,6 +201,8 @@
}
});
+ final Node node = getModelObject();
+ addImageMetaData(node, fragment);
return fragment;
}