# Help! Can't export frames

**URL:** <https://discourse.processing.org/t/help-cant-export-frames/10195>\
**Category:** Libraries\
**Created:** [April 11, 2019, 5:12pm UTC](https://discourse.processing.org/t/help-cant-export-frames/10195 "2019-04-11T17:12:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitoriaseven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/vitoriaseven/32/4571_2.png) [@vitoriaseven](https://discourse.processing.org/u/vitoriaseven)\
**Post date:** [April 11, 2019, 5:12pm UTC](https://discourse.processing.org/t/help-cant-export-frames/10195/1 "2019-04-11T17:12:55Z")

</div>

Hi, I’m pretty new to Processing. I’m trying to export frame images to create a movie but it’s not working. All I get is just one frame and just with the background.  
What am I doing wrong?

```auto
import geomerative.*;
import processing.pdf.*;
boolean record;

PFont myFont;

void setup() {
  size (1080,1080);
  noStroke();
}

void draw(){
  if (record) {
    beginRecord(PDF, "pdf/capa-####.pdf");
  }
  noStroke();
  frameRate(12);
  myFont=createFont("Capa-Bold.ttf",48);
  background(#ffffff);
  for(int i= -0;i<1080;i=i+110){
  for(int j= -0;j<1080;j=j+110){
    
  
  fill(#0000F4,0,0,random(abs(i-150)));
  textFont(myFont, random(abs(i-330)));
  text("K", i, random(j));
  
  if (record) {
    endRecord();
    record = false;
  
    saveFrame("GIF/capa-######.png");
  
  }
  }
  }
}

```

---

<div class="post-metadata">

**Author:** ![vitoriaseven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/vitoriaseven/32/4571_2.png) [@vitoriaseven](https://discourse.processing.org/u/vitoriaseven)\
**Post date:** [April 11, 2019, 6:00pm UTC](https://discourse.processing.org/t/help-cant-export-frames/10195/2 "2019-04-11T18:00:58Z")

</div>

Sorry, I’ve just figured out my mistake. “saveFrame” was misplaced.
