Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed syntax error in io/imageMagick_tools.py #29

Merged
merged 1 commit into from
Mar 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions moviepy/video/io/imageMagick_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ def gif_to_directory(gif_file,dirName=None):
is not provided, the directory has the same name
as the .gif file. Supports transparency.
Returns the directory name.

Example:

>>> d = gif_to_directory("animated-earth.gif")
>>> clip = DirectoryClip(d,fps=3)

"""

if dirName is None:
name, ext = os.path.splitext(gif_file)
dirName = name

try:
os.mkdir(dirName)
except:
pass
subprocess_call ["convert", "-coalesce", gif_file,

subprocess_call(["convert", "-coalesce", gif_file,
os.path.join(dirName,"%04d.png")])