erik chroma export algorithm