@capillarytech/creatives-library 7.17.148 → 7.17.149

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.148",
4
+ "version": "7.17.149",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -312,8 +312,9 @@ export const updateImagesInHtml = async (htmlContents) => {
312
312
  }
313
313
  root?.querySelectorAll("img")?.forEach((element) => {
314
314
  const imageSrc = element.getAttribute("src");
315
- const height = element.getAttribute("height");
316
- const width = element.getAttribute("width");
315
+ const computedStyle = window.getComputedStyle(element);
316
+ const height = element.getAttribute("height") || parseFloat(computedStyle.height);
317
+ const width = element.getAttribute("width") || parseFloat(computedStyle.width);
317
318
 
318
319
  let emailOverrideQuality = null;
319
320
  if (isEmailQualityOverridden) {