<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hey, <br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I use  imageio in Python.<br><br>example : imageio.mimsave(OutputPath, ImagesList , duration)<br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I find it very efficient.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I hope it helps <br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="text-align:left"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font size="1"><span><font color="#888888"><div style="text-align:left"><div><span style="font-family:monospace,monospace"><font color="#000000">Héla HADHRI</font><br></span></div></div><div style="text-align:left"><span style="font-family:monospace,monospace"><span><span style="color:rgb(68,68,68)">Doctorante au laboratoire <span style="color:rgb(69,129,142)">LISTIC</span></span><br></span></span></div><div style="text-align:left"><span style="font-family:monospace,monospace"><span><span style="color:rgb(68,68,68)">Projet ANR <span style="color:rgb(116,27,71)">PHOENIX</span></span><br></span></span><br><span><font size="1"><span><font color="#888888"><span><span><font color="#888888"><span><span><font color="#888888"><span style="font-family:monospace,monospace"><b><font color="#000000"><img src="https://docs.google.com/uc?export=download&id=0BzF2_Y2ciAW0NEtVLTZESGtCcVk&revid=0BzF2_Y2ciAW0TjZRd0hFcXZ4VStQSkw1VXk3eS9tZmRKNlNnPQ" height="48" width="96"></font></b></span></font></span></span></font></span></span></font></span></font></span><span style="font-family:monospace,monospace"><span><br><span style="color:rgb(0,0,255)"><img src="https://docs.google.com/uc?export=download&id=0B4oRuNObjI38Q0dHQ3V6WjE1eXM&revid=0B4oRuNObjI38dXdmMC8weitHQnlzZEU1aDBlY3BGeVhYbVlnPQ"> <a href="tel:%2B33%20%280%296%2083%2004%2058%2082" value="+33683045882" target="_blank">+33 (0) 687 187 467</a><br></span></span><img src="https://docs.google.com/uc?export=download&id=0B4oRuNObjI38SFNlWFpfUmd1RTA&revid=0B4oRuNObjI38L3dHclhGTHhYWUY3bGRWNHQvcUN5T2laTXZRPQ"><span> </span><font color="#0000ff"><a href="mailto:Hela.Hadhri@univ-smb.fr" target="_blank">Hela.Hadhri@univ-smb.fr</a><br> </font></span><br><span style="font-family:monospace,monospace"></span></div><div style="text-align:center"><div><div style="text-align:left"><span style="font-family:monospace,monospace">Polytech Annecy Chambéry - 5, chemin de bellevue<br>74944 Annecy-Le-Vieux<span><span><font color="#888888"><span style="font-family:monospace,monospace"><span><span style="color:rgb(0,0,255)"><font color="#888888">, </font><img src="https://docs.google.com/uc?export=download&id=0B4oRuNObjI38LWQ3NnFFLWVjTVk&revid=0B4oRuNObjI38ci9KUkFrbGtTcnIvckViY2dJUjJnbWh6WTBBPQ"></span></span></span></font></span></span>+ 33(0)450 096 580</span><br></div><div><div style="text-align:center"><span style="font-family:monospace,monospace"></span></div><br><br></div></div></div></font></span></font></div> </div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2018-02-07 12:28 GMT+01:00 Jonathan Peirce <span dir="ltr"><<a href="mailto:jon.peirce@gmail.com" target="_blank">jon.peirce@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_533212046233566490moz-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><div><div class="h5">
      <p><br>
      </p>
      <br>
      <div class="m_533212046233566490moz-cite-prefix">On 07/02/2018 01:01, Andrew Watson
        wrote:<br>
      </div>
      <blockquote type="cite">
        Mathematica (and I believe Matlab) can stitch together a
        sequence of frames to make an animated GIF.
        <div><br>
        </div>
        <div><br>
          <div><br>
            <blockquote type="cite">
              <div>On Feb 6, 2018, at 10:54 AM, Horowitz, Todd
                (NIH/NCI) [E] <<a href="mailto:todd.horowitz@nih.gov" target="_blank">todd.horowitz@nih.gov</a>> wrote:</div>
              <br class="m_533212046233566490Apple-interchange-newline">
              <div>
                <div class="m_533212046233566490WordSection1" 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">
                  <div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">Dear colleagues</span></div>
                  <div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> </span></div>
                  <div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">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"><span style="font-size:11pt"> </span></div>
                  <div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">thanks</span></div>
                  <div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt">Todd</span></div>
                  <div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:Calibri,sans-serif"><span style="font-size:11pt"> </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;float:none;display:inline!important">______________________________<wbr>_________________</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">
                <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;float:none;display:inline!important">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">
                <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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">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">
                <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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">http://visionscience.com/<wbr>mailman/listinfo/visionlist_<wbr>visionscience.com</a></div>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="m_533212046233566490mimeAttachmentHeader"></fieldset>
        <br>
        <pre>______________________________<wbr>_________________
visionlist mailing list
<a class="m_533212046233566490moz-txt-link-abbreviated" href="mailto:visionlist@visionscience.com" target="_blank">visionlist@visionscience.com</a>
<a class="m_533212046233566490moz-txt-link-freetext" href="http://visionscience.com/mailman/listinfo/visionlist_visionscience.com" target="_blank">http://visionscience.com/<wbr>mailman/listinfo/visionlist_<wbr>visionscience.com</a>
</pre>
      </blockquote>
      <br>
    </div></div></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></div>

<br>______________________________<wbr>_________________<br>
visionlist mailing list<br>
<a href="mailto:visionlist@visionscience.com">visionlist@visionscience.com</a><br>
<a href="http://visionscience.com/mailman/listinfo/visionlist_visionscience.com" rel="noreferrer" target="_blank">http://visionscience.com/<wbr>mailman/listinfo/visionlist_<wbr>visionscience.com</a><br>
<br></blockquote></div><br></div>