Skip to content

images using fonts from King Fahed Complex / qurancomplex.org

Notifications You must be signed in to change notification settings

fahrinh/quran.com-images

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

بسم الله الرحمن الرحيم In the name of Allah, Most Gracious, Most Merciful

Quran Image Generator

These are a set of scripts that generate Quran page images based on the old madani fonts provided by the King Fahd Quran Complex in Saudi Arabia. They are currently being used in quran.com and its mobile apps.

This script outputs images, and also updates a database with the bounds of each of the generated glyphs (allowing apps to highlight individual words or verses).

The code is copyleft GPL (read: free) but the actual fonts and pages (in the res/fonts directory) belong to the King Fahd Quran Complex in Saudia Arabia

Installation Summary

perl Makefile.PL
make
make install
mysql -u root -p your_password < sql/schema.sql
mysql -u root -p your_password -e "create user 'nextgen'@'localhost' identified by 'nextgen'"
mysql -u root -p your_password -e "grant all privileges on nextgen.* to 'nextgen'@'localhost'"
mysql -u root -p your_password -e "flush privileges"

Usage

./script/generate.pl --width 1300 --output ./output/ --pages 50

./script/generate.pl --width 1300 --output ./output/ --pages 1..3

Ayah by ayah images

For generating ayah by ayah images, see our legacy branch

About

images using fonts from King Fahed Complex / qurancomplex.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 99.3%
  • ApacheConf 0.7%