audiogram icon indicating copy to clipboard operation
audiogram copied to clipboard

maxDuration

Open Drakone opened this issue 7 years ago • 2 comments

Hi, thank you for your work.

I changed the maximum duration but I still have the error : Your Audiogram must be under 300 seconds.

I used Archlinux (Docker).

{
  "default": {
    "width": 1280,
    "height": 720,
    "framesPerSecond": 20,
    "samplesPerFrame": 128,
    "pattern": "wave",
    "waveTop": 150,
    "maxDuration": 600,
    "waveBottom": 420,
    "captionTop": 470,
    "captionFont": "300 52px 'Source Sans Pro'",
    "captionLineHeight": 52,
    "captionLineSpacing": 7,
    "captionLeft": 200,
    "captionRight": 1080
  },

Drakone avatar Jun 07 '18 14:06 Drakone

The problem when using Docker is when you create the image, it doesn't use the local code you edited. Instead it downloads the original code from Git. I don't know much about Docker but this is what you need to change in the Dockerfile:

> # Clone repo
> RUN git clone https://github.com/nypublicradio/audiogram.git
> WORKDIR /home/audiogram/audiogram
> 

richpav avatar Jun 27 '18 23:06 richpav

The BBC has forked the project and has been updating it regularly. It looks like the Dockerfile builds the image using local code. https://github.com/BBC-News-Labs/audiogram

richpav avatar Jun 28 '18 01:06 richpav