quran / quran.com-images

images using fonts from King Fahed Complex / qurancomplex.org
http://quran.com
390 stars 125 forks source link

Generating blank images #14

Closed Kareeeeem closed 7 years ago

Kareeeeem commented 7 years ago

As salamu alaykum,

I followed the directions in the readme however the script is generating blank PNGs. I'm running debian stretch on a chromebook via crouton.

I had to install to following to get it to work to begin with: libgd-graph-perl, libtest-yaml-perl.

Not really sure what else to mention. Sorry I cannot provide more information

ahmedre commented 7 years ago

wa3laikum alsalam, two questions -

  1. is the database setup properly (and can be accessed, i.e. they share the username/password/database name in config/database.yaml?)
  2. are you getting any errors or warnings? walsalam 3alaikum.
Kareeeeem commented 7 years ago

Actually nevermind. There is a pull request (https://github.com/quran/quran.com-images/pull/12) stating that the database must be imported first, a step missing in the readme.

mysql -u root -p your_password < sql/database.sql

I did that and now it works. I suggest merging that pull request.

Jazakallahu khair for creating this useful tool.