<div dir="ltr">I&#39;m not sure what was the error, but I followed your suggestion and now works fine.<br><br><br><br>All the best,<br>Sebastián. <br><br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 23, 2015 at 6:53 PM, David Jones <span dir="ltr">&lt;<a href="mailto:jonesd647@yahoo.ca" target="_blank">jonesd647@yahoo.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div dir="ltr"><span>Not an NCL problem, but you could try &quot;convert -trim +repage&quot;.</span></div><div dir="ltr"><br><span></span></div><div dir="ltr"><span>Good luck,</span></div><div dir="ltr"><span>Dave.</span></div>  <br><div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, September 23, 2015 11:25 PM, &quot;<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a>&gt; wrote:<br> </font> </div>  <br><br> <div>----------------------------------------------------------------------<br><br>Date: Wed, 23 Sep 2015 15:24:47 -0300<br>From: Sebastian Otarola-Bustos &lt;<a href="mailto:Sebastian.F.Otarola-Bustos.1@nd.edu" target="_blank">Sebastian.F.Otarola-Bustos.1@nd.edu</a>&gt;<br>Subject: [ncl-talk] PNG trim error before doing animated Gif, all the<br>    space outside the trimmed area now is black colored.<br>To: &quot;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&quot; &lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>&gt;<br>Message-ID:<br>    &lt;CAO9pyik1_R50FwZwhs=<a href="mailto:VcywLhovGSLEnx5LGkm0LkMtX4E1X7w@mail.gmail.com" target="_blank">VcywLhovGSLEnx5LGkm0LkMtX4E1X7w@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;utf-8&quot;<span class=""><br><br>Hi everybody,<br><br>I&#39;ve been making animations without troubles converting .png to .gif using<br>the following commands: convert -trim &amp; convert -delay, so I&#39;m cutting the<br>white space with trim and then doing the animation with -delay. The strange<br>thing is that if I see each .png file separately, it&#39;s cutted ok, as it<br>showns in Figure1, but after doing the animation with the cutted files, you<br>can see the trimmed area, but the difference between the cutted area and<br>the original size is all filled with black as you can see in Figure2. Here<br>you can see the main steps of my scripts:<br><br><br></span>  *do n=0,ntimes-1,4*<br><br>*      wks_type            = &quot;png&quot;*<br>*      <a href="mailto:wks_type@wkWidth" target="_blank">wks_type@wkWidth</a>    = 1700*<br>*      <a href="mailto:wks_type@wkHeight" target="_blank">wks_type@wkHeight</a>   = 1700*<br>*      wks = gsn_open_wks(&quot;png&quot;,&quot;animate&quot;+sprinti(&quot;%03i&quot;,n))    ;<br>animate_000.png, animate_001.png, etc*<br>*      print(&quot;Trabajando en el tiempo: &quot; + times(n))*<br>*      <a href="mailto:mpres@gsnRightString" target="_blank">mpres@gsnRightString</a>  = &quot; Velocity(m/s):  &quot;+ times(n)*<br>*      <a href="mailto:mpres@gsnLeftString" target="_blank">mpres@gsnLeftString</a> = &quot; &quot;*<br><br>*      mpid   = gsn_csm_map(wks,mpres)*<br>*      V  = gsn_csm_contour(wks,speed(n,:,:),spres)*<br>*      wind = gsn_csm_vector(wks,u(n,:,:),v(n,:,:),Vres)*<br>*      Heig    =gsn_csm_contour(wks,ter(:,:),ter_res)*<br><br>*      overlay(mpid,V)*<br>*      overlay(mpid,Heig)*<br>*      overlay(mpid,wind)*<br>*      maximize_output(wks,True)*<br>*      delete(wks)*<br>*      cmd=&quot;convert -trim animate&quot;+sprinti(&quot;%03i&quot;,n)+&quot;.png<br>&quot;+&quot;animate&quot;+sprinti(&quot;%03i&quot;,n)+&quot;.png&quot;*<br>*      system(cmd)*<br><br><br>*  end doINS = &quot;convert -delay 50 animate*.png velocity_3.gif&quot; system(INS)*<span class=""><br><br>I still cannot see the error, and any help would be really appreciated as<br>always,<br><br>All the best,<br>Thank you very much,<br></span>Sebasti?n.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/544fdb0d/attachment-0001.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/544fdb0d/attachment-0001.html </a><br>-------------- next part --------------<br>A non-text attachment was scrubbed...<br>Name: Figure_1.PNG<br>Type: image/png<br>Size: 124596 bytes<br>Desc: not available<br>Url : <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/544fdb0d/attachment-0002.png" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/544fdb0d/attachment-0002.png</a><br>-------------- next part --------------<br>A non-text attachment was scrubbed...<br>Name: Figure_2.PNG<br>Type: image/png<br>Size: 109313 bytes<br>Desc: not available<br>Url : <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/544fdb0d/attachment-0003.png" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/544fdb0d/attachment-0003.png </a><br><br>------------------------------<br></div>  </div> </div>  </div></div></div></blockquote></div><br></div>