Skip to main content

A package to re-size images

Project description

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/#)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imgresizer-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imgresizer-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file imgresizer-1.0.0.tar.gz.

File metadata

  • Download URL: imgresizer-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for imgresizer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f0d80ac566d995f6819dea8f9b0cd740ff18d39cf5a74972a298a7c6287d755a
MD5 982066f3c43ee2458530f5620bfa0686
BLAKE2b-256 a1fd91e8a41c1aa39bf5de38d0e014047fbee764bad2da968cf1d7e12195b688

See more details on using hashes here.

File details

Details for the file imgresizer-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: imgresizer-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for imgresizer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a76ccbc309bccce3a243386182c3597ecbf4cee1e25c8a5a615edeb82b942975
MD5 b0a5876b6d3feba0bb5681ad48da4034
BLAKE2b-256 7efae11804e3d6d6398916cfde75bc1cb268361f252cc906dfb9bbcfb4402209

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page