Useful for Image processing
Project description
Pictures
To install
pip3 install pictures
Image to Gif
Dependencies
pillow
Ipython
pathlib
Example :
>>from pictures import imgtogif
>>imgtogif.convert(path="./",file_name="mine.gif")
Default parameters values:
convert (path="./",file_name="imgtogif.gif",to="./",
img_format="all",duration=400,loop=0,
number_sort="n",string_sort="n",
gif_width=510,gif_height=310 )
Parameters:
path:
Path to the source of the image files
file_name:
File name for the gif to be saved
to:
Destination of the gif file
img_format:
In which format of images are need to be converted to gif
Formats are : png , jpg , jpeg or all
duration:
Duration of the gif
loop:
0 for gif to play again and again
1 for play 1 time
number_sort:
[Sorting image files numerically]
Example:
images=[2.png,34.png,1.png]
if number sort is yes means:
this will be sorted as [1.png,2.png,34.png]
and gif will be created
string_sort:
[sorting image files alphabetically]
Example:
images=[c.png,b.png,a.png]
if string sort is yes means:
this will be sorted as [a.png,b.png,c.png]
and gif will be created
gif_width:
width of the gif
gif_height:
Height of the gif```
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
pictures-0.4.tar.gz
(747.6 kB
view details)
File details
Details for the file pictures-0.4.tar.gz
.
File metadata
- Download URL: pictures-0.4.tar.gz
- Upload date:
- Size: 747.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9777d138f6a9190b621daddde6e7e66764826ac540c50f36054b6a6733f732d2 |
|
MD5 | a13c2d99fae8e53d04952cba7432b389 |
|
BLAKE2b-256 | 5c4901e8b267f2586f89e80f90111da6b6d7da61904912ff59eb262bc58c9316 |