@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
|
@@ -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
|
|
316
|
-
const
|
|
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) {
|