Useful for Image processing
Project description
Images to GIf
To install
pip3 install pic
Dependencies
pillow Ipython
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.2.tar.gz
(3.5 kB
view details)
File details
Details for the file pictures-0.2.tar.gz
.
File metadata
- Download URL: pictures-0.2.tar.gz
- Upload date:
- Size: 3.5 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 | 98ff2de7d5f5093e261e6fc203c6f8e297b3291789f1499a140538b252fb1c7f |
|
MD5 | c0de61e031fea0de0d49d07d099cd1b0 |
|
BLAKE2b-256 | 31ac260a63ae1c35651f2190d6c88bdbacca7878a693ab0bd89b6b661aa67c37 |