Image Settings

From GeeklogWiki
Revision as of 17:11, 9 December 2004 by BestWeb (talk | contribs)

Jump to: navigation, search

Geeklog uses a flexible system for managing and manipulating images that are used in user profiles, articles and possibly in plugins. Geeklog administrators have the choice of using Imagemagick, NetPBM and GD. We've found that for ease of support NetPBM is the better package but which one you use will depend on what is installed on your system. For those in hosted environments you should ask your host which one (if any) of the image packages they have installed.

Configuring the image subsystem is easy, simply tell Geeklog which library you want to use and then configure how you want Geeklog to handle images. The following table gives a description of all the image related settings.

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).
Back to The Geeklog Configuration File

电影 免费电影 电影下载 在线电影 影视 免费电影下载

成人用品 木业 安全门 半导体 包装设计 包装机 保险丝 报警器 编程器 编辑机 编码器 通信电源 塑料造粒机 拓展 拓展培训 多媒体教学 电子监考 精品课堂

名人字画 激光打印机 织带 金卡 家居装修 家庭装修 室内装修 家居装饰 防盗 试管婴儿 不孕 汽车装饰 柴油发电机 办公用品 减速机 不孕不育 发电机 摇床 复膜用纸 礼品包装纸 打字纸 防油纸 三明治纸 邮封纸 淋浴房

金卡 家居装修 家庭装修 室内装修 家居装饰 防盗 试管婴儿 不孕 汽车装饰 柴油发电机 办公用品 减速机 不孕不育 发电机 摇床 复膜用纸 礼品包装纸 打字纸 防油纸 三明治纸 邮封纸 淋浴房

猫粮 模具 洁净技术 无尘室 空气过滤器 狩猎 药物流产 钛板 冷却塔 挖掘机 搅拌器 球磨机 离心机 会计师事务所 标签打印机 吸顶灯 反光材料 强直性脊柱炎 自动门 钢结构 尿毒症 化学清洗 工业清洗 电视墙 加密狗 过滤器 艾滋病 梅毒 尖锐湿疣 淋病 性病 电子白板 升降机 脚手架 高压水枪 吸脂 洗涤设备 桑拿设备 加湿器 防盗门 保暖内衣 防护服 商铺招租 户外广告 保温材料 防火材料 涂料 无痛流产 油漆 拓展训练 拓展训练 拓展训练 婚庆公司 旗袍 婚纱 管道疏通 婚纱摄影

家政 家政服务 家政服务公司 保姆 钟点工 小时工

汽车坐垫 汽车坐垫代理 汽车坐垫销售 汽车坐垫生产 北京汽车坐垫

白癜风 白癜风专家 白癜风医院 白癜风治疗 白癜风药品 白癜风信息

美容仪器 美容设备

空调清洗 中央空调清洗 清洗空调 清洗中央空调

搬家公司 造桥机 中央空调 麦克维尔 管道疏通 疏通管道 霓虹灯 卫生洁具 游乐设备 乳胶漆 塑钢门窗 CI策划 私人侦探 可视门铃 律师事务所 驾校 北京驾校 轴承 夜视仪 高压清洗机 铁路标准 铁路工法 架桥机 网站推广 快餐 订餐 印刷机械 整形美容 糖尿病 高血压 建材 变压器 胶合板 热水器 楼市图 二手车 安防设备 继电器 传感器 对讲机 宠物食品 猫粮 狗粮