最新消息:时间抓起来说是金子,抓不住就是流水。

CentOS下网站截图软件CutyCapt的安装

LINUX技术 老子黑牵翻 5665浏览 0评论

  增加qt47的下载源  
    vi /etc/yum.repos.d/atrpms.repo  
    [atrpms]  
    name=CentOS $releasever – $basearch – ATrpms  
    baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable  
    gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms  
    gpgcheck=1  
    enabled=1  
      
    [atrpms-testing]  
    name=CentOS $releasever – $basearch – ATrpms testing  
    baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing  
    gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms  
    gpgcheck=1  
    enabled=1  
      
    yum update  
      
    yum install qt47  
    yum install qt47-devel  
      
    yum install qt47-webkit
    yum install qt47-webkit-devel

 

安装 CutyCapt

    svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt  
    mv cutycapt/CutyCapt /usr/local/cutycapt  
    cd /usr/local/cutycapt  
    qmake  
    make

下载个x-server

  wget http://www.flexthinker.com/wp-content/uploads/2009/11/xvfb-run.sh.txt  
  mv ./xvfb-run.sh.txt /usr/local/cutycapt/xvfb-run.sh  
  chmod u+x /usr/local/CutyCapt/xvfb-run.sh

安装中文包

yum install fonts-chinese 

安装ImageMagick

yum install ImageMagick

最后就可以happy的截图了

/usr/local/cutycapt/xvfb-run.sh –server-args="-screen 0, 1024x768x24" /usr/local/cutycapt/CutyCapt –url=http://www.163.com –out=163.jpg  
//convert截取第一屏  
convert -crop  1024×768+0+0 /data/www/imark-image/screenshot/jVK_LBPG-a4..jpg  /data/www/imark-image/screenshot/jVK_LBPG-a4._fs.jpg  
//convert缩放第一屏  
convert -resize 20%x20% /data/www/imark-image/screenshot/jVK_LBPG-a4._fs.jpg /data/www/imark-image/screenshot/jVK_LBPG-a4._20_20.jpg

转载请注明:LINUX服务器运维架构技术分享 » CentOS下网站截图软件CutyCapt的安装

头像
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. 头像

    强大!

    Tina9年前 (2011-12-29)回复