For example: An image which is 400×300 pixels shrunk to fit a 100×100 pixel box will normal (with the above) have a size of 100×75 pixels. We want to add some padding borders to the top and bottom of the image (and to the sides to be sure) to make the final thumbnail image always 100×100 pixels in size.
There are a number of ways to do this, and as of IM v6.3.2 the best way is using the “-extent” option. (continue reading…)
Archive for 十月, 2012
Imagemagick thumbnails 背景填充
PHP mysql_data_seek() 函数
定义和用法
mysql_data_seek() 函数移动内部结果的指针。
语法
mysql_data_seek(data,row)
| 参数 | 描述 |
|---|---|
| data | 必需。返回类型为 resource 的结果集。该结果集从 mysql_query() 的调用中得到。 |
| row | 必需。想要设定的新的结果集指针的行数。0 指示第一个记录。 |
(continue reading…)
typo3取子页面
$this->pageList += $GLOBALS['TSFE']->sys_page->getMenu($pageInfo['uid'],
'uid,doktype,no_search,SYS_LASTCHANGED,tx_ddgooglesitemap_lastmod',
'', 'and nav_hide=0', false);
RTE Block/Text Style
RTE {
default {
contentCSS = global.css
#ignoreMainStyleOverride = 1
buttons.blockstyle.tags.div.allowedClasses = black_text,small_h1,black_bold_link
buttons.textstyle.tags.span.allowedClasses = black_text,small_h1,black_bold_link
proc.allowedClasses := addToList(black_text,small_h1,black_bold_link)
showButtons = textstylelabel,textstyle, bold, italic, orderedlist, unorderedlist, insertcharacter, link, image, removeformat, copy, cut, paste, undo, redo, subscript, superscript, findreplace, chMode, formatblock
#hideButtons = left, center, right, justifyfull, textindicator,user,blockstyle, blockstylelabel,
}
classes {
small_h1{
name = small_h1
#value = color:#800080; font-size:11px;
}
black_text{
name = black_text
#value = color:#800080; font-size:11px;
}
black_bold_link{
name = black_bold_link
#value = color:#800080; font-size:11px;
}
}
}