Skip to content

Commit

Permalink
Merge pull request #715 from hlxsites/meta-img-711
Browse files Browse the repository at this point in the history
fix: image metadata extraction
  • Loading branch information
davenichols-DHLS authored Jan 26, 2024
2 parents 23a1387 + 5c141ed commit 35c15ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h2>Streamlined Workflow</h2>
<div>
<div>Image</div>
<div>
<img src="https://author-dummy.adobeaemcloud.com/is/image/danaher/card-cloneselect-imager" alt="">
<img src="https://danaherls.scene7.com/is/image/danaher/card-cloneselect-imager?utm_source=dhls_website" alt="">
</div>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ <h2>Enhanced for stem cell applications*</h2>
<div>
<div>Image</div>
<div>
<img src="https://author-dummy.adobeaemcloud.com/is/image/danaher/card-clonepix2" alt="">
<img src="https://danaherls.scene7.com/is/image/danaher/card-clonepix2?utm_source=dhls_website" alt="">
</div>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ <h2>Diverse mAb Comparison with Chromatographic Performance Suitable for Intact
<div>
<div>Image</div>
<div>
<img src="https://author-dummy.adobeaemcloud.com/is/image/danaher/card-biozen-hplc" alt="">
<img src="https://danaherls.scene7.com/is/image/danaher/card-biozen-hplc?utm_source=dhls_website" alt="">
</div>
</div>
<div>
Expand Down
3 changes: 1 addition & 2 deletions tools/importer/transformers/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ const createMetadata = (main, document, html, params, urlStr) => {
const img = document.querySelector('[property="og:image"]');
if (img && img.content) {
const el = document.createElement('img');
const imgUrl = new URL(img.content);
el.src = imgUrl.pathname;
el.src = img.content;
meta.Image = el;
}

Expand Down

0 comments on commit 35c15ef

Please sign in to comment.