Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-077
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-077
2020-077
Commits
31d2231e
Commit
31d2231e
authored
Nov 06, 2020
by
G.M. Amashi S. Bastiansz
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gifMaker.py with comments
parent
8d1c90f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
reveng/gifMaker.py
reveng/gifMaker.py
+20
-19
No files found.
reveng/gifMaker.py
View file @
31d2231e
"""
This file is used to:
###
#
This file is used to:
# generate a GIF image
# send the generated GIF to the folder
# delete the GIF from cache
@author Amashi Bastiansz | IT17143950
@version 1.5
@since 2020-10-01
"""
#
@author Amashi Bastiansz | IT17143950
#
@version 1.5
#
@since 2020-10-01
###
import
imageio
import
os
...
...
@@ -24,11 +24,11 @@ gifName = ''.join(random.choices(string.ascii_uppercase +
def
generateGIF
(
images
):
"""
This method is used to generate a path for the created GIF image
###
#
This method is used to generate a path for the created GIF image
@return the generated GIF path
"""
#
@return the generated GIF path
###
gifPath
=
os
.
path
.
join
(
PATH
+
"
\\
output
\\
"
+
gifName
+
'.gif'
)
imageio
.
mimwrite
(
gifPath
,
images
,
duration
=
0.5
)
...
...
@@ -37,19 +37,20 @@ def generateGIF(images):
def
sendGIF
():
"""
This method is used to send the generated GIF to the exact folder to store it
"""
###
#
This method is used to send the generated GIF to the exact folder to store it
###
x
=
imageio
.
mimread
(
os
.
path
.
join
(
PATH
+
"
\\
output
\\
"
+
gifName
+
'.gif'
))
return
x
def
deleteFromCache
():
"""
This method is used to delete the generated GIF from cache after uploading it to
the exact project folder
###
#
This method is used to delete the generated GIF from cache after uploading it to
#
the exact project folder
@return call to generateGIF() method with selected hand images
"""
# @return call to generateGIF() method with selected hand images
###
os
.
remove
(
os
.
path
.
join
(
PATH
+
"
\\
output
\\
"
+
gifName
+
'.gif'
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment