<div dir="ltr">Hi everybody, <br><br>I&#39;ve been making animations without troubles converting .png to .gif using the following commands: convert -trim &amp; convert -delay, so I&#39;m cutting the white space with trim and then doing the animation with -delay. The strange thing is that if I see each .png file separately, it&#39;s cutted ok, as it showns in Figure1, but after doing the animation with the cutted files, you can see the trimmed area, but the difference between the cutted area and the original size is all filled with black as you can see in Figure2. Here you can see the main steps of my scripts:<br><br><div><br></div><div>  <font face="garamond, serif"><b>do n=0,ntimes-1,4</b></font></div><div><font face="garamond, serif"><b><br></b></font></div><div><font face="garamond, serif"><b>     <span style="background-color:rgb(255,255,0)"> wks_type            = &quot;png&quot;</span></b></font></div><div><font face="garamond, serif"><b style="background-color:rgb(255,255,0)">      wks_type@wkWidth    = 1700</b></font></div><div><font face="garamond, serif"><b style="background-color:rgb(255,255,0)">      wks_type@wkHeight   = 1700</b></font></div><div><font face="garamond, serif"><b><span style="background-color:rgb(255,255,0)">      wks = gsn_open_wks(&quot;png&quot;,&quot;animate&quot;+sprinti(&quot;%03i&quot;,n))  </span>  ; animate_000.png, animate_001.png, etc</b></font></div><div><font face="garamond, serif"><b>      print(&quot;Trabajando en el tiempo: &quot; + times(n))</b></font></div><div><font face="garamond, serif"><b>      mpres@gsnRightString  = &quot; Velocity(m/s):  &quot;+ times(n)</b></font></div><div><font face="garamond, serif"><b>      mpres@gsnLeftString = &quot; &quot;</b></font></div><div><font face="garamond, serif"><b><br></b></font></div><div><font face="garamond, serif"><b>      mpid   = gsn_csm_map(wks,mpres)</b></font></div><div><font face="garamond, serif"><b>      V  = gsn_csm_contour(wks,speed(n,:,:),spres)</b></font></div><div><font face="garamond, serif"><b>      wind = gsn_csm_vector(wks,u(n,:,:),v(n,:,:),Vres)</b></font></div><div><font face="garamond, serif"><b>      Heig    =gsn_csm_contour(wks,ter(:,:),ter_res)</b></font></div><div><br></div><div><font face="garamond, serif"><b>      overlay(mpid,V)</b></font></div><div><font face="garamond, serif"><b>      overlay(mpid,Heig)</b></font></div><div><font face="garamond, serif"><b>      overlay(mpid,wind)</b></font></div><div><font face="garamond, serif"><b>      maximize_output(wks,True)</b></font></div><div><font face="garamond, serif"><b>      delete(wks)</b></font></div><div><font face="garamond, serif"><b>     <span style="background-color:rgb(255,255,0)"> cmd=&quot;convert -trim animate&quot;+sprinti(&quot;%03i&quot;,n)+&quot;.png &quot;+&quot;animate&quot;+sprinti(&quot;%03i&quot;,n)+&quot;.png&quot;</span></b></font></div><div><font face="garamond, serif"><b style="background-color:rgb(255,255,0)">      system(cmd)</b></font></div><div><font face="garamond, serif"><b>  end do<br><div><span style="background-color:rgb(255,255,0)">INS = &quot;convert -delay 50 animate*.png velocity_3.gif&quot;</span></div><div><span style="background-color:rgb(255,255,0)"> system(INS)</span></div><div><br></div></b></font></div><div><br></div>I still cannot see the error, and any help would be really appreciated as always,<br><br>All the best,<br>Thank you very much,<br>Sebastián.<br><br><br><div>    <br><br></div><div><br></div></div>