Generate responsive images for your website, so you can use srcset in your <img> tags and serve an optimal image to each device that views your site.
Project description
make-responsive-images
Generate responsive images automatically, for websites to use srcset
in the <img>
tags.
This way you serve an optimal image for each device viewport size.
Usage
resize [OPTIONS] COMMAND [ARGS]...
Options
-v, --version
: Show the application's version and exit.--help
: Show this message and exit.
Commands
image
: Resize one image
Usage
resize image [OPTIONS] [IMAGE]
Arguments
[IMAGE]
: [default: /workspace/tests/fixtures/xfer-original.jpg]
Options
--widths TEXT
: [default: 600,1000,1400]--widths TEXT
: Widths of new images, in pixels [default: 600,1000,1400]--html / --no-html
: Generate HTML tag [default: True]--classes TEXT
: Classnames to add to the tag (e.g. class="img-fluid")--img-sizes TEXT
: Sizes for the tag (e.g. sizes="100vw") [default: 100vw]--lazy / --no-lazy
: Adds loading="lazy" to tag for SEO [default: True]--alt TEXT
: Adds alt="" to the tag (e.g. alt="Funny image") [default: ]--dir TEXT
: Images directory to prepend to the src (e.g. src="/")--help
: Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for make-responsive-images-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d909ec6894a7ac6fa441f94fbcb5d5c6657d4e7027a1a9c258d365daee59e5e |
|
MD5 | e4c1b03b696375c9c872fd1be21a41f6 |
|
BLAKE2b-256 | 24379c65d17e69435cdd19fc2064e55ab852e88df6c8a037e9e6d4831dc3a82d |
Close
Hashes for make_responsive_images-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d0f2f153f2e07ba569f74131a494235ded5c1c188c9e4fda9abb0a7fbc4f33f |
|
MD5 | e9cf2017c5defead4f21787a4a1750b8 |
|
BLAKE2b-256 | 0c954e5e0476b7bc396c14c965ac95a5ec4e0d3e148ea53c3d62c1a9a134dd45 |