aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2016-08-02 12:16:47 +0200
committerRahiel Kasim <rahielkasim@gmail.com>2016-08-02 12:16:47 +0200
commitc156bedca09d11a0dd15749836de3838506c0dda (patch)
tree43c94165b924340e814911b536ad1bb8a62d2753
parentb0d16a404f3ff22f3b63ded0d53dee2ab0ac216f (diff)
trim and optimize images
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index d9b1654..3672df3 100644
--- a/README.md
+++ b/README.md
@@ -81,6 +81,18 @@ recitation by
[Shaykh Mahmoud Khalil al-Husary](https://en.wikipedia.org/wiki/Mahmoud_Khalil_Al-Hussary)
and the Quranic text in images.
+We do some post-processing on the images. First we remove the empty area's from
+the edges with [ImageMagick](https://www.imagemagick.org/script/index.php) and
+[GNU parallel](https://www.gnu.org/software/parallel/):
+``` shell
+cd quran_images/
+parallel "echo {}; convert {} -trim {}" ::: *.png
+```
+Then we optimize the images with [pngout](http://www.jonof.id.au/kenutils):
+``` shell
+parallel "pngout {}" ::: *.png
+```
+
You could use other data files, like
[other translations](http://tanzil.net/trans/) or
[audio recitations](http://www.everyayah.com/data/status.php). These choices are