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
and sizes
in the <img>
tags.
This way you serve an optimal image for each device viewport size.
Installation
pip install make-responsive-images
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
: Widths of new images, in pixels [default: 500,1000,1500,2000,2500]--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: False]--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="dir/images")--fmt TEXT
: Image type to save as ("jpg" and "webp" supported) [default: webp]--qual INTEGER
: Compression to apply (i.e. 0=max, 100=min) [default: 100]--lower / --no-lower
: Converts filename to lowercase [default: True]--dashes / --no-dashes
: Converts underscores to dashes for SEO [default: True]--flask / --no-flask
: Uses Python Flask's 'url_for('static', ...)' [default: False]--help
: Show this message and exit.
Author Info
Sean McCarthy is Chief Data Scientist at IJACK Technologies Inc, a leading manufacturer of fully-automated pumps to green the oil and gas industry.
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.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1781f5526138b93bdb0b0a7142eb11941ec6de4adad676f9ea14116137e07e33 |
|
MD5 | 5125442cd982966e46c467bd94665795 |
|
BLAKE2b-256 | 63713e5b4e8c84bbd686c02a969861fa93e1ffccb7914fd4366d63a31c373d47 |
Close
Hashes for make_responsive_images-0.1.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd59e6d640b82e59dbe9704e57c4587785c2ff945052c85964c74311afdeb3b5 |
|
MD5 | 0aa68199fff3079dd2a70ce8b213a600 |
|
BLAKE2b-256 | f0ef79d8bec31e661749ead490577aa9a176d6530ce69ecc86cd582dc6d38bf1 |