lettier / gifcurry

😎 The open-source, Haskell-built video editor for GIF makers.
https://lettier.github.io/gifcurry
BSD 3-Clause "New" or "Revised" License
1.36k stars 56 forks source link

Cannot parse YAML file #37

Closed grantmcdermott closed 5 years ago

grantmcdermott commented 5 years ago

I'm trying to run the CLI version of Gifcurry and keep running into the following error: [WARNING] Could not parse the /PATH/TO/text-overlays.yaml YAML file!

Here is the file in question:

- text: This is a test.
      fontFamily:   Sans
      fontStyle:    30
      fontStretch:  Normal
      fontWeight:   Normal
      fontSize:     800
      origin:       NorthWest
      xTranslation: 0.0
      yTranslation: 0.0
      rotation:     0
      startTime:    1.000
      durationTime: 8.000
      outlineSize:  10
      outlineColor: rgb(1,100,10)
      fillColor:    rgb(255,255,0)

Are there any obvious errors that jump out at you?

(FWIW, I think that including an example YAML file in the docs would be really helpful.)

Thanks for a cool package!

lettier commented 5 years ago

Hello @grantmcdermott ,

I apologize for the lack of examples. I'll add some and update the help output for the upcoming release.

Here is the corrected version.

- text: This is a test.
  fontFamily:   Sans
  fontStyle:    Normal
  fontStretch:  Normal
  fontWeight:   30
  fontSize:     800
  origin:       NorthWest
  xTranslation: 0.0
  yTranslation: 0.0
  rotation:     0
  startTime:    1.000
  durationTime: 8.000
  outlineSize:  10
  outlineColor: rgb(1,100,10)
  fillColor:    rgb(255,255,0)

Here is the difference ({-removed-} and {+added+}).

Screenshot_2019-03-16_21-52-53

:+1:

grantmcdermott commented 5 years ago

Super. Thanks again!

PS - The GUI hasn't been working for me, but I suspect that has to do with the latest Arch/Gnome upgrade. I'll try again in a few days and file a separate issue if the problem persists.