<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-html" lang="x-western">
<p>This is really easy in Python, with imageio library installed.
You can write a really simple script, as below. <br>
</p>
<p>Using GIMP is fine but not easy to customise or repeat, because
of the need to go through dialog boxes etc. If you learn to do
this efficiently in code (Python, Matlab, Mathematica...) then
you can do much more "reproducible" work. The script below is
the simple version but there are many ways to adapt it for, say
creating a dialog box to choose the input files etc.<br>
</p>
<p>If you install a recent version of PsychoPy you'll have a
simple editor to paste in this script, as well as the imageio
lib (i.e. everything you need in order to run the code below.</p>
<p>Jon<br>
</p>
<p>#-----------------------------</p>
<p>import imageio<br>
import glob<br>
<br>
filenames = glob.glob("frames/*.png") # creates a list of file
names searching this folder<br>
filenames.sort() # if you want them in alphabetical order then
best to do this<br>
outputName = "myAnimation.gif"<br>
secsPerFrame = 1/25.0 # you can provide a list instead, for 1
val per frame<br>
reps = 1 # 1 rep (0 for infinite loop, or some other number for
fixed N reps)<br>
<br>
outputImages = []<br>
for thisFilename in filenames:<br>
print(thisFilename)<br>
frame = imageio.imread(thisFilename)<br>
outputImages.append(frame)<br>
<br>
imageio.mimsave(outputName, outputImages, loop=reps,
duration=secsPerFrame)<br>
#-----------------------------</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 07/02/2018 01:01, Andrew Watson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:A5DE1AF3-3C92-4EA5-A1F2-26F44ED6E629@me.com">
Mathematica (and I believe Matlab) can stitch together a
sequence of frames to make an animated GIF.
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Feb 6, 2018, at 10:54 AM, Horowitz, Todd
(NIH/NCI) [E] <<a href="mailto:todd.horowitz@nih.gov"
class="">todd.horowitz@nih.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1;
font-family: Helvetica; font-size: 12px; font-style:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width:
0px;">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
font-family: Calibri, sans-serif;" class=""><span
style="font-size: 11pt;" class="">Dear colleagues</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
font-family: Calibri, sans-serif;" class=""><span
style="font-size: 11pt;" class=""> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
font-family: Calibri, sans-serif;" class=""><span
style="font-size: 11pt;" class="">What software do
you use for creating gif files? We want to make
gifs from radiological images, and our
collaborators are understandably not comfortable
with uploading the images to online gif-creator
sites. Is there good desktop software for this
purpose?</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
font-family: Calibri, sans-serif;" class=""><span
style="font-size: 11pt;" class=""> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
font-family: Calibri, sans-serif;" class=""><span
style="font-size: 11pt;" class="">thanks</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
font-family: Calibri, sans-serif;" class=""><span
style="font-size: 11pt;" class="">Todd</span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;
font-family: Calibri, sans-serif;" class=""><span
style="font-size: 11pt;" class=""> </span></div>
</div>
<span style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; float: none; display:
inline !important;" class="">_______________________________________________</span><br
style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; float: none; display:
inline !important;" class="">visionlist mailing list</span><br
style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<a href="mailto:visionlist@visionscience.com"
style="color: rgb(149, 79, 114); text-decoration:
underline; font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
auto; word-spacing: 0px; -webkit-text-size-adjust:
auto; -webkit-text-stroke-width: 0px;" class="">visionlist@visionscience.com</a><br
style="font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class="">
<a
href="http://visionscience.com/mailman/listinfo/visionlist_visionscience.com"
style="color: rgb(149, 79, 114); text-decoration:
underline; font-family: Helvetica; font-size: 12px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
auto; word-spacing: 0px; -webkit-text-size-adjust:
auto; -webkit-text-stroke-width: 0px;" class="">http://visionscience.com/mailman/listinfo/visionlist_visionscience.com</a></div>
</blockquote>
</div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
visionlist mailing list
<a class="moz-txt-link-abbreviated" href="mailto:visionlist@visionscience.com">visionlist@visionscience.com</a>
<a class="moz-txt-link-freetext" href="http://visionscience.com/mailman/listinfo/visionlist_visionscience.com">http://visionscience.com/mailman/listinfo/visionlist_visionscience.com</a>
</pre>
</blockquote>
<br>
</div>
<PRE>
This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please contact the sender and delete the email and
attachment.
Any views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham. Email
communications with the University of Nottingham may be monitored
where permitted by law.
</PRE></body>
</html>