Skip to main content

Lightweight image library

Project description

Usage

file to ndarray

>>> from imageworker import file_to_array
>>> data = file_to_array("test.jpg")

url to ndarray

>>> from imageworker import url_to_array
>>> data = url_to_array("https://n.sinaimg.cn/spider2021326/106/w1024h682/20210326/5927-kmvwsvy1040641.jpg")

upload ndarray to qiniu cdn

>>> key = QINIU_KEY
>>> secret = QINIU_SECRET
>>> domain = HOST
>>> bucket = QINIU_BUCKET
>>> url = put_qiniu(data,key,secret,domain,bucket) 

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

imageworker-0.1.7.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

imageworker-0.1.7-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file imageworker-0.1.7.tar.gz.

File metadata

  • Download URL: imageworker-0.1.7.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.8.0-43-generic

File hashes

Hashes for imageworker-0.1.7.tar.gz
Algorithm Hash digest
SHA256 b5dc81143bb31e8d032a52e8ab81d5872f41cdec8f66d16fc662f17e52d41052
MD5 3f292c4bbb54750ccb6f3f6b5d1d9190
BLAKE2b-256 b7635284ced3cbd123371c8c482ac40cdc5f8ec880f7ee8d1130458b4357d21f

See more details on using hashes here.

File details

Details for the file imageworker-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: imageworker-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.8.0-43-generic

File hashes

Hashes for imageworker-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 991d56dd49e030cae05f319b7b4dd7556cde11bbf675b1a21d85ff897b72650f
MD5 9bd259c8a62efcec2f18bc1e18d8c7e1
BLAKE2b-256 634e56aed54dafce280471ea023b6116783b71f3a3e6d07e96b069525e56889e

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