Skip to content

๐Ÿ Resizing images with Python using Multiprocessing with Pillow-SIMD โšก

Notifications You must be signed in to change notification settings

bourdeau/image-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

54 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Build Status

image-worker

Resizing images with Python using Multiprocessing with Pillow-SIMD ๐Ÿ

Install

git clone [email protected]:bourdeau/image-worker.git && cd image-worker
pipenv install

In case of troubles compiling limImaging with gcc:

sudo apt-get install libjpeg-dev zlib1g-dev
sudo apt-get install python3.7-dev

Run

# -s = source directory
# -d = destination directory
# -q = quality of the image (0 to 100)
# -si = sizes in pixel

pipenv run python main.py -s=/home/ph/Images-Original -d=/home/ph/Images-Resized -q=80 -si 100 200 300 600

Tests

pipenv run python -m unittest tests/imageworker/worker.py

Performance

# Run on a Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz

SOURCE: /home/ph/Images-Original
DESTINATION : /home/ph/Images-Resized
#####################################
Resizing 300 images in 4 dimensions
TOTAL:  1200 images to create

real	1m51,182s
user	5m59,305s
sys	0m23,097s

About

๐Ÿ Resizing images with Python using Multiprocessing with Pillow-SIMD โšก

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages