public byte[] Generate(string memeName, long userId) { var task = new MemeTask(_serviceProvider); var memes = GetAvailableMemes(); var meme = memes.First(x => x.Name == memeName); task.LoadMemeConfig(meme.ConfigPath); foreach (var command in task.MemeCommands) { command.Precache(userId); command.DoCommand(_imageRender); } return(_imageRender.Render()); }
public byte[] GetCover() { return(_imageRender.Render()); }