Useful for Image processing
Project description
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.7.tar.gz
(765.5 kB
view details)
File details
Details for the file pictures-0.7.tar.gz
.
File metadata
- Download URL: pictures-0.7.tar.gz
- Upload date:
- Size: 765.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 | 1aa44aec8d8a4c15bec61baa57b11946724e3935a6af1167d9a72784af90fa64 |
|
MD5 | c03eacbe15faa896744cd9e7e7097d61 |
|
BLAKE2b-256 | 8b725acec6dd54d846f6a577d5a395a3b29036861de0c649664c8ffa41e232bd |