]> dev.renevier.net Git - syp.git/blobdiff - inc/settings.php
create thumbnails of photos
[syp.git] / inc / settings.php
index 3f3a3581d5eeb0e38960c055cfa0963c9ba9d13e..50797f0eafc9e932324834ae7dcf33c158ab6547 100644 (file)
@@ -21,6 +21,10 @@ define ("DBPREFIX", "syp_");
 // to be writeable by SYP.
 define ("UPLOADDIR", "upload");
 
 // to be writeable by SYP.
 define ("UPLOADDIR", "upload");
 
+// directory where generated thumbnails are stored. That directory needs to be
+// writeable by SYP.
+define ("THUMBSDIR", "upload/_thumbs");
+
 // title of your website
 define ("SITETITLE", "SYP");
 
 // title of your website
 define ("SITETITLE", "SYP");
 
@@ -32,4 +36,14 @@ define ("WEBMASTERMAIL", "");
 // different between syp admin and images directory. Or if protocol is
 // different (for example, if syp admin is https and images directory is http)
 define ("IMGSDIRURL", "");
 // different between syp admin and images directory. Or if protocol is
 // different (for example, if syp admin is https and images directory is http)
 define ("IMGSDIRURL", "");
+
+// url of tumbnails directory. If empty, syp will try to guess it from syp
+// location and THUMBSDIR. So, you need to set that variable if host is
+// different between syp admin and images directory. Or if protocol is
+// different (for example, if syp admin is https and images directory is http)
+define ("THUMBSDIRURL", "");
+
+// max size (either width or height) of thumbnails. If one dimension of
+// uploaded image is bigger, images will be resized.
+define ("THUMBSMAXSIZE", 400);
 ?>
 ?>