OIC- Javascript function to Get Image dimension
Summary:
Hi
I have used the attached js function in OIC, but it throws an error. The same is working in the HTML page.
Is there a way like in Java to import the dependencies here in the OIC javascript library? Here I use the vanilla function Image, but that is also getting errors.
cause: {ReferenceError: "Image" is not defined. (js/GETIMAGEDIMENSIONS_01.00.0000/getImageDimensions.js#4)}
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
OIC
24.1.2
Code Snippet (add any code snippets that support your topic, if applicable):
function getImageDimensions(imageBase64Value,imageType) {
const img = new Image();
Tagged:
0