Difference between revisions of "Image Settings"
From GeeklogWiki
Line 1: | Line 1: | ||
+ | {| border=1 cellspacing=0 | ||
+ | !Variable | ||
+ | !Default Value | ||
+ | !Description | ||
+ | |- | ||
+ | |image_lib | ||
+ | |'' <i>(empty string)</i> | ||
+ | |Set this to either 'imagemagick', 'netpbm', or 'gdlib' if images should be resized during upload. Leave as '' if you don't want images to be resized or if you don't have those packages available. | ||
+ | |- | ||
+ | |path_to_mogrify | ||
+ | |''(commented out)'' | ||
+ | |If you chose 'imagemagick' for $_CONF['image_lib'] above, then this should hold the <strong>complete path</strong> to the mogrify binary (from the ImageMagick package), e.g. '/usr/bin/mogrify'.<br> | ||
+ | You will need a fairly recent version of [http://www.imagemagick.org/ ImageMagick] for this to work (version 5.4.9 or newer is recommended). | ||
+ | |- | ||
+ | |path_to_netpbm | ||
+ | |''(commented out)'' | ||
+ | |If you chose 'netpbm' for $_CONF['image_lib'] above, then this should hold the complete path to the <em>directory</em> where the binaries from the netpbm package are kept, e.g. '/usr/bin/netpbm/'. Note that the path must end in a slash.<br> | ||
+ | Precompiled binaries of the netpbm package for various platforms can be downloaded from the [http://sourceforge.net/projects/gallery/ Homepage of the Gallery] project. | ||
+ | |- | ||
+ | |keep_unscaled_image | ||
+ | |0 | ||
+ | |Set this to 1 if you want Geeklog to keep the original, unscaled images after upload. The smaller image will then be used as a thumbnail and will link to the original image. Note that this may use a lot of disk space (depending on the size of your images). | ||
+ | |- | ||
+ | |max_image_width | ||
+ | |300 | ||
+ | |Max. width of an image in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). | ||
+ | |- | ||
+ | |max_image_height | ||
+ | |300 | ||
+ | |Max. height of an image in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). | ||
+ | |- | ||
+ | |max_image_size | ||
+ | |1048576 ''(equals 1 MB)'' | ||
+ | |Max. size of an image in bytes. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). | ||
+ | |- | ||
+ | |max_photo_width | ||
+ | |96 | ||
+ | |Max. width of a user photo in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). | ||
+ | |- | ||
+ | |max_photo_height | ||
+ | |96 | ||
+ | |Max. height of a user photo in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). | ||
+ | |- | ||
+ | |max_photo_size | ||
+ | |65536 ''(equals 64 KB)'' | ||
+ | |Max. size of a user photo in bytes. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). | ||
+ | |} | ||
;[[The_Geeklog_Configuration_File|Back to The Geeklog Configuration File]] | ;[[The_Geeklog_Configuration_File|Back to The Geeklog Configuration File]] |
Revision as of 08:39, 6 July 2004
Variable | Default Value | Description |
---|---|---|
image_lib | (empty string) | Set this to either 'imagemagick', 'netpbm', or 'gdlib' if images should be resized during upload. Leave as if you don't want images to be resized or if you don't have those packages available. |
path_to_mogrify | (commented out) | If you chose 'imagemagick' for $_CONF['image_lib'] above, then this should hold the complete path to the mogrify binary (from the ImageMagick package), e.g. '/usr/bin/mogrify'. You will need a fairly recent version of ImageMagick for this to work (version 5.4.9 or newer is recommended). |
path_to_netpbm | (commented out) | If you chose 'netpbm' for $_CONF['image_lib'] above, then this should hold the complete path to the directory where the binaries from the netpbm package are kept, e.g. '/usr/bin/netpbm/'. Note that the path must end in a slash. Precompiled binaries of the netpbm package for various platforms can be downloaded from the Homepage of the Gallery project. |
keep_unscaled_image | 0 | Set this to 1 if you want Geeklog to keep the original, unscaled images after upload. The smaller image will then be used as a thumbnail and will link to the original image. Note that this may use a lot of disk space (depending on the size of your images). |
max_image_width | 300 | Max. width of an image in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). |
max_image_height | 300 | Max. height of an image in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). |
max_image_size | 1048576 (equals 1 MB) | Max. size of an image in bytes. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). |
max_photo_width | 96 | Max. width of a user photo in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). |
max_photo_height | 96 | Max. height of a user photo in pixels. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). |
max_photo_size | 65536 (equals 64 KB) | Max. size of a user photo in bytes. If it exceeds this, it is either rejected or resized (depending on the setting of $_CONF['image_lib'] above). |