diff options
author | Prashant S | 2016-11-28 12:06:39 +0530 |
---|---|---|
committer | GitHub | 2016-11-28 12:06:39 +0530 |
commit | f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41 (patch) | |
tree | 8823c7c00af01f1e9b8d4573d60f3bf7d96fa415 /pdf/phpqrcode/qrconfig.php | |
parent | c2c6a180da55d79d4431c3d322e8796cfafa277a (diff) | |
parent | b49a0530c023c6c7444a56f300c48479bd623627 (diff) | |
download | scilab_textbook_companion-f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41.tar.gz scilab_textbook_companion-f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41.tar.bz2 scilab_textbook_companion-f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41.zip |
Merge pull request #6 from prashantsinalkar/drupal_7.x
added new tbc certificate template with qr_code implementation
Diffstat (limited to 'pdf/phpqrcode/qrconfig.php')
-rwxr-xr-x | pdf/phpqrcode/qrconfig.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pdf/phpqrcode/qrconfig.php b/pdf/phpqrcode/qrconfig.php new file mode 100755 index 0000000..e53dff8 --- /dev/null +++ b/pdf/phpqrcode/qrconfig.php @@ -0,0 +1,17 @@ +<?php
+/*
+ * PHP QR Code encoder
+ *
+ * Config file, feel free to modify
+ */
+
+ define('QR_CACHEABLE', true); // use cache - more disk reads but less CPU power, masks and format templates are stored there
+ define('QR_CACHE_DIR', dirname(__FILE__).DIRECTORY_SEPARATOR.'cache'.DIRECTORY_SEPARATOR); // used when QR_CACHEABLE === true
+ define('QR_LOG_DIR', dirname(__FILE__).DIRECTORY_SEPARATOR); // default error logs dir
+
+ define('QR_FIND_BEST_MASK', true); // if true, estimates best mask (spec. default, but extremally slow; set to false to significant performance boost but (propably) worst quality code
+ define('QR_FIND_FROM_RANDOM', false); // if false, checks all masks available, otherwise value tells count of masks need to be checked, mask id are got randomly
+ define('QR_DEFAULT_MASK', 2); // when QR_FIND_BEST_MASK === false
+
+ define('QR_PNG_MAXIMUM_SIZE', 1024); // maximum allowed png image width (in pixels), tune to make sure GD and PHP can handle such big images
+
\ No newline at end of file |