gildas-lormeau / single-file-cli

CLI tool for saving a faithful copy of a complete web page in a single HTML file (based on SingleFile)
GNU Affero General Public License v3.0
539 stars 57 forks source link

Unable to download alternative sizes of screen within <picture> tag #55

Open MitsuPa opened 9 months ago

MitsuPa commented 9 months ago

If use the --remove-alternative-images option, the <source> tag and <img> tag of the exported html file are the same image.
Not all pictures are saved.

<picture>
    <source media="(min-width: 835px)"
        srcset="https://images.pexels.com/photos/1108099/pexels-photo-1108099.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1">
    <img src="https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"
        alt="Cat" style="width:auto;">
</picture>

Please check this, Thanks!