Spomky-Labs / pwa-bundle

PHP library for generating a full featured PWA manifest

Home Page:https://pwa.spomky-labs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract label from title metatag in screenshots

tacman opened this issue · comments

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 <title> tag of the HTML page that panther scrapes.

pwa:
  manifest:
    screenshots:
      -
        src: floppy-disk/screenshot-1200x1100.png
        label: "Floppy Disk Details"
        width: 1200
        height: 1100
        type: image/png

Good idea.
Feature added in the last 1.1.x branch

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.