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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2edf6c5cd12ce65b21daddd24cafd14a8936b93f4de40b267ff966ab7519e81 |
|
MD5 | 218a34cb1513040a2f0c2d6b51c13954 |
|
BLAKE2b-256 | 9ec40befe40657155ecc4d20a5993367de3fb36a881151ded89b3d520432984f |
Close
Hashes for make_responsive_images-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb8a6e548b46017f6dbca00811390f4c3330beaf038896e590127c062f0690e |
|
MD5 | 2c9845f25e0d134701e8a79ad9a6ea7f |
|
BLAKE2b-256 | 531b6bb72d5018766f697b072532a6b712ef8d99978178d4855124f2bc01d843 |