Archive for 六月, 2010

Imagemagick黑白图片

convert -set option:modulate:colorspace rgb -modulate 100,0 D:/wamp/www/test.jpg D:/wamp/www/test1.jpg

typo3:

$picConf['image.']['file.']['params'] = ' -set option:modulate:colorspace rgb -modulate 100,0 ';

http://www.imagemagick.org/script/command-line-options.php#modulate

泛黄图片:
convert -set option:modulate:colorspace sRGB -modulate 100,0 -fill “rgb(237,170,73)” -tint 100 -modulate 100,80,104 -quality 100 test1.jpg test2.jpg


ImageMagick — 图片处理

1. convert

对图像进行转换,它主要用来对图像进行格式的转化,同时还可以做缩放、剪 切、模糊、反转等操作。

exec(“D:/imagemagick/ImageMagick-6.6.0-Q16/convert.exe convert -monochrome D:/wamp/www/test.jpg D:/wamp/www/test1.jpg”);

格式转换 (continue reading…)


Using htmlArea RTE in a frontend plugin

Extension developers may use the htmlArea RTE to edit textarea fields in frontend plugins. In order to  do so, you must invoke the htmlArea plugin in the plugin class and insert some markers in the HTML template.

Invoking the htmlArea RTE frontend plugin (continue reading…)



JS判断flash加载完成

var start;
var intervalProcess;
window.onload = function () {
if(document.all) { (continue reading…)


JS判断页面加载完成

var start;
window.onload = function () {
if(document.all) { (continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress