Spomky-Labs / pwa-bundle

PHP library for generating a full featured PWA manifest
https://pwa.spomky-labs.com
MIT License
29 stars 1 forks source link

Extract label from title metatag in screenshots #137

Closed tacman closed 2 months ago

tacman commented 2 months ago

Description

bin/console pwa:create:screenshot https://127.0.0.1:8013/product/25 -o floppy-disk
pwa:
  manifest:
    screenshots:
      -
        src: floppy-disk/screenshot-1200x1100.png
        width: 1200
        height: 1100
        type: image/png

Example

I would like to see the label key filled with whatever's in the tag of the HTML page that panther scrapes.</p> <pre><code>pwa: manifest: screenshots: - src: floppy-disk/screenshot-1200x1100.png label: "Floppy Disk Details" width: 1200 height: 1100 type: image/png</code></pre> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/Spomky"><img src="https://avatars.githubusercontent.com/u/1091072?v=4" />Spomky</a> commented <strong> 2 months ago</strong> </div> <div class="markdown-body"> <p>Good idea. Feature added in the last 1.1.x branch</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/github-actions[bot]"><img src="https://avatars.githubusercontent.com/in/15368?v=4" />github-actions[bot]</a> commented <strong> 1 month ago</strong> </div> <div class="markdown-body"> <p>This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>