Image based course: script to generate images from font

If anyone might happen to want to make:

  1. an image based course for a strange alphabet, and
  2. where you have one or more fonts for all the characters.

Then my script to auto-generate the images might be helpful. It’s available here on GitHub.

Some technical details. The script is written in Python. It requires ImageMagick to be installed, which it uses to generate the images. It takes a specification in JSON format. It can be configured so that ImageMagick will render the characters with Pango (or even XeLaTeX). It outputs PNG image files with a transparent background.

I have created the images for the following courses with it:

2 Likes

I am interested in creating an image based course but am new at this kind of thing and am really struggling with it. Nothing seems to be very intuitive with creating courses, although I love the way the learning part works.

Could you give me some really simple guidlines as to how to go creating an image based course? I used a similar but more simple method to create my images. I just create a photoshop file with one image from the alphabet and save it as a jpg. It seems to work OK.

Thanks

Hi Adinatha, this thread is specifically about my script to generate images from fonts. Maybe this tutorial will be more helpful to you.

And pro tip: for images that have textual data, you are better off saving them as a PNG instead of a JPG (learn more). A PNG with a transparent background is even better.

Thanks, those are helpful suggestions
I appreciate it.

I have an Hebrew-Brazilian Portuguese memrise vocabulary, would be possible to use your script to add images ? It would create another column and add specific pictures related to each word ?

This is my course:
https://www.memrise.com/course/1467171/rosen-ulpan-adultos-1-3-completo-com-audio/

Thanks

Hi Renan, you can use the script to generate the images on your computer.
You still have to add them to the memrise course yourself.

1 Like

You mean manually one by one ?

Yes.

The script itself is only for generating images of text.

1 Like