aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-06-28 10:33:21 -0600
committerZach Prezkuta <fermion@gmx.com>2012-07-02 20:01:23 -0600
commit3fe5bdbd8de265ffe558fb3c91eac64ccdd2d158 (patch)
treed391ac87e4d443111f6ac055d9a11c061685fc98 /boot.php
parentf7144e671c79302f33ef2928955d8100a4ab4cc6 (diff)
downloadvolse-hubzilla-3fe5bdbd8de265ffe558fb3c91eac64ccdd2d158.tar.gz
volse-hubzilla-3fe5bdbd8de265ffe558fb3c91eac64ccdd2d158.tar.bz2
volse-hubzilla-3fe5bdbd8de265ffe558fb3c91eac64ccdd2d158.zip
add ability to set maximum pixel length of uploaded pictures
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 1983f44e7..4c42f19a7 100644
--- a/boot.php
+++ b/boot.php
@@ -34,6 +34,24 @@ define ( 'JPEG_QUALITY', 100 );
*/
define ( 'PNG_QUALITY', 8 );
+/**
+ *
+ * An alternate way of limiting picture upload sizes. Specify the maximum pixel
+ * length that pictures are allowed to be (for non-square pictures, it will apply
+ * to the longest side). Pictures longer than this length will be resized to be
+ * this length (on the longest side, the other side will be scaled appropriately).
+ * Modify this value using
+ *
+ * $a->config['system']['max_image_length'] = n;
+ *
+ * in .htconfig.php
+ *
+ * If you don't want to set a maximum length, set to -1. The default value is
+ * defined by 'MAX_IMAGE_LENGTH' below.
+ *
+ */
+define ( 'MAX_IMAGE_LENGTH', -1 );
+
/**
* Not yet used