Does anyone know/have a script that grabs images from a folder and quotes from a txt file and generate a image with a quote randomly?
i fond a great example of what I'm looking for -> http://inspirobot.me/
It's something like that but with the option to upload multiple quotes
(i need the quotes in a different language)
Well, if you can compile some C# code you can use this, but I can't afford to spend time on it.
You need to install the .NET version of ImageMagick: Magick.NET-Q16-AnyCPU
You can alter the directory structure if you wish - currently it is
C:\quotes\in.txt - a file of quotes one per line format: Quote|Author e.g.
When there is no peril in the fight, there is no glory in the triumph.|A. Alvarez
c:\quotes\imagein\*.jpg - the images
c:\quotes\fonts\*.ttf - font files
Output directories (create them)
c:\quotes\imageout <<images
c:\quotes\transout <<transparent - useful for overlaying on videos - you can remove that part if you don't want it.
Lastly a minimal front end - a form with 3 textboxes (textBox1 textBox2 and textBox3) and a go button (btnGo)
Magic Button :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using ImageMagick;
namespace Magick_Mantra
{
public partial class Form1 : Form
{
List<string> quotes = new List<string>();
int curr = 0;
public Form1()
{
InitializeComponent();
using (StreamReader r = new StreamReader("c:\\quotes\\in.txt"))
{
string line = r.ReadLine();
while (((line != null)))
{
quotes.Add(line);
line = r.ReadLine();
}
}