Skip to main content

Coverage Status

Image ReSizer

This simple package re-sizes images from a given list of urls.

Installation

pip install imgresizer

Usage

It expects you to pass ita configuration as command line parameter.
imgresizer -c <path/to/conf_json>

A sample json:

{
    "targets": [
        400,
        200,
        100
    ],
    "data": "data",
    "num_threads": 8,
    "input_dir": "incoming",
    "output_dir" : "outgoing",
    "image_urls" : "/path/to/urls.txt"
}

Firstly, it downloads them and stores them inside data/input_dir directory. Then it starts processing images to re-size and store re-sized image to data/output_dir with its new size added to its name.

Additionally, you can pass -l true so that it logs the process.

Issues

Nothing yet. But it will need to speed up.

Tasks

  • Implement thread pooling
  • Make it re-size local images

License

ImgReSizer is released under the [MIT license] (https://choosealicense.com/licenses/mit/#)

Release files for imgresizer 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imgresizer 1.0.0
File Size Uploaded
imgresizer-1.0.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for imgresizer 1.0.0
File Interpreter ABI Platform
imgresizer-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / imgresizer-1.0.0.tar.gz

Download URL imgresizer-1.0.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f0d80ac566d995f6819dea8f9b0cd740ff18d39cf5a74972a298a7c6287d755a
BLAKE2b-256 checksum
How to use checksums
a1fd91e8a41c1aa39bf5de38d0e014047fbee764bad2da968cf1d7e12195b688
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / imgresizer-1.0.0-py3-none-any.whl

Download URL imgresizer-1.0.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a76ccbc309bccce3a243386182c3597ecbf4cee1e25c8a5a615edeb82b942975
BLAKE2b-256 checksum
How to use checksums
7efae11804e3d6d6398916cfde75bc1cb268361f252cc906dfb9bbcfb4402209
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page