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
602 stars 63 forks source link

Can we save a page without images? #3

Closed skanga closed 2 years ago

skanga commented 2 years ago

I do see the following 3 options.

  --remove-alternative-fonts                    Remove alternative fonts to the ones displayed  [boolean] [default: true]
  --remove-alternative-medias                   Remove alternative CSS stylesheets  [boolean] [default: true]
  --remove-alternative-images                   Remove images for alternative sizes of screen  [boolean] [default: true]

But what if I want to save pages without the normal images? Not alternative ones? Can we get these options ALSO?

   --remove-fonts                    Remove all fonts [boolean] [default: false]
   --remove-medias                   Remove all CSS stylesheets  [boolean] [default: false]
   --remove-images                   Remove all images [boolean] [default: false]
gildas-lormeau commented 2 years ago

You should be able to achieve this by using --block-images, I forgot to document it.

skanga commented 2 years ago

Thank you