当前位置: 首页 > news >正文

网站优化怎么做的爱链网买链接

网站优化怎么做的,爱链网买链接,海口建设网站,wordpress更改固定链接打不开使用ImageMagick多张图合成GIF。 1、工具下载安装 下载地址:ImageMagick – Download,windows下载版本如下: 下载后,安装,安装时选择为C/C安装动态库和头文件。 2、代码实现 附加包含目录:ImageMagick-7.…

使用ImageMagick多张图合成GIF。

1、工具下载安装

        下载地址:ImageMagick – Download,windows下载版本如下:

        下载后,安装,安装时选择为C/C++安装动态库和头文件。

2、代码实现

附加包含目录:ImageMagick-7.1.1-Q16-HDRI\include

附加库目录:ImageMagick-7.1.1-Q16-HDRI\lib

动态库:

        CORE_RL_Magick++.lib

        CORE_RL_MagickCore.lib

        CORE_RL_MagickWand_.lib

示例代码:

#include <Magick++.h>
#include <list>
#include <iostream>int main(int argc, char *argv[])
{QCoreApplication a(argc, argv);Magick::InitializeMagick("");std::vector<Magick::Image>animation;// 加载图像帧Magick::Image framel;framel.read("./7[00_00_01][20240717-144122].jpg");framel.animationDelay(60);animation.push_back(framel);Magick::Image frame2;frame2.read("./7[00_00_05][20240717-144133].jpg");frame2.animationDelay(60);animation.push_back(frame2);Magick::Image frame3;frame3.read("./7[00_00_08][20240717-144140].jpg");frame3.animationDelay(60);animation.push_back(frame3);try {Magick::writeImages(animation.begin(), animation.end(), "230_144950_2024.gif");}catch (Magick::Exception &error) {cout << "Caught exception: " << error.what() << endl;return 1;}
}

使用opencv保存,调用接口:

std::vectorMagick::Image animation;// Mat image;
Magick::Image mgkImg(image.cols, image.rows, "BGR", MagickCore::CharPixel, (char *)image.data);
td::cout << "Magick : 1" << std::endl;mgkImg.animationDelay(60);
std::cout << "Magick : 2" << std::endl;
animation.push_back(mgkImg);
// ...Magick::writeImages(animation.begin(), animation.end(), "gif_img-path");
animation.clear();

3、ubuntu22.04安装ImageMagick

step1、安装之前,先做检查:

sudo apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y

step2、下载ImageMagick

sudo wget http://www.imagemagick.org/download/ImageMagick.tar.gz

step3、解压并安装

sudo tar xzvf ImageMagick.tar.gz

step4、进入ImageMagick目录,依次执行命令:

./configure sudo make sudo make install ldconfig /usr/local/lib

    注:后续使用,遇到缺少decode delegate问题,需要重新安装,先安装相关delegate。报错提示:convert: no decode delegate for this image format 1.jpg。

解决步骤:

        首先通过convert -list format指令,查看自己是否有jpeg这一格式,如果没有,那么进行下一步操作。

        进入Index of /archive/delegates 网站,找到最新的jpegsrc文件,我下载的是jpegsrc.v9a。

以Ubuntu为例,安装:

./configure –prefix=/usr
make
make install

        然后需要重装Imagemagick,而且不能简单的make install ,必须按如下指令进行。

./configure –enable-shared –enable-lzw –without-perl –with-modules
make
make install

        如果一直报找不到png delegate,可尝试下:

sudo apt install pkg-config made PNG

参考:

1、ubuntu22.04安装ImageMagick

ubuntu22.04安装ImageMagick_ubuntu安装imagemagick-CSDN博客


文章转载自:
http://dinncocheeper.bkqw.cn
http://dinncocalyciform.bkqw.cn
http://dinncohazing.bkqw.cn
http://dinncowbo.bkqw.cn
http://dinncodisorientate.bkqw.cn
http://dinncosympathectomize.bkqw.cn
http://dinnconcte.bkqw.cn
http://dinncofarside.bkqw.cn
http://dinncomachmeter.bkqw.cn
http://dinncomyotonia.bkqw.cn
http://dinncocanceration.bkqw.cn
http://dinncoventilator.bkqw.cn
http://dinncoshellbark.bkqw.cn
http://dinncototipotent.bkqw.cn
http://dinncoforgot.bkqw.cn
http://dinncoinseverably.bkqw.cn
http://dinncoheterospory.bkqw.cn
http://dinncovelleity.bkqw.cn
http://dinncotailoress.bkqw.cn
http://dinncohomotype.bkqw.cn
http://dinncolombardia.bkqw.cn
http://dinncosapphism.bkqw.cn
http://dinncolengthwise.bkqw.cn
http://dinncobiblical.bkqw.cn
http://dinncoproven.bkqw.cn
http://dinncometier.bkqw.cn
http://dinncoteleseme.bkqw.cn
http://dinncobinary.bkqw.cn
http://dinncosuborder.bkqw.cn
http://dinncoundercroft.bkqw.cn
http://dinncodesiccant.bkqw.cn
http://dinncodiazotype.bkqw.cn
http://dinncoforeman.bkqw.cn
http://dinncoatony.bkqw.cn
http://dinncoomnipresence.bkqw.cn
http://dinncododdering.bkqw.cn
http://dinncokinkajou.bkqw.cn
http://dinnconannofossil.bkqw.cn
http://dinncoperoxidase.bkqw.cn
http://dinncorecap.bkqw.cn
http://dinncocontinua.bkqw.cn
http://dinncodanthonia.bkqw.cn
http://dinncohydel.bkqw.cn
http://dinncoacrimoniously.bkqw.cn
http://dinncomotuan.bkqw.cn
http://dinncoinosculation.bkqw.cn
http://dinncopanjab.bkqw.cn
http://dinncopayday.bkqw.cn
http://dinncotubate.bkqw.cn
http://dinncopixilated.bkqw.cn
http://dinncoache.bkqw.cn
http://dinncosheave.bkqw.cn
http://dinncoshriven.bkqw.cn
http://dinncowyvern.bkqw.cn
http://dinncosnapshot.bkqw.cn
http://dinncoathletics.bkqw.cn
http://dinncocig.bkqw.cn
http://dinncounbandage.bkqw.cn
http://dinncospiniform.bkqw.cn
http://dinncosuine.bkqw.cn
http://dinncowadna.bkqw.cn
http://dinncofoucquet.bkqw.cn
http://dinncominuscule.bkqw.cn
http://dinncofeasibility.bkqw.cn
http://dinncoarenicolous.bkqw.cn
http://dinncoarenose.bkqw.cn
http://dinncoecocline.bkqw.cn
http://dinncoramal.bkqw.cn
http://dinncopolytechnic.bkqw.cn
http://dinncojibe.bkqw.cn
http://dinncowriter.bkqw.cn
http://dinncoconcessionary.bkqw.cn
http://dinncocolorimeter.bkqw.cn
http://dinncosof.bkqw.cn
http://dinncogoatmoth.bkqw.cn
http://dinncopalace.bkqw.cn
http://dinncoparalyse.bkqw.cn
http://dinncomilkmaid.bkqw.cn
http://dinncospeakeress.bkqw.cn
http://dinncocapital.bkqw.cn
http://dinncoedacious.bkqw.cn
http://dinncocampagna.bkqw.cn
http://dinncobaathist.bkqw.cn
http://dinncopaediatric.bkqw.cn
http://dinncojostler.bkqw.cn
http://dinncoautocoid.bkqw.cn
http://dinncokmps.bkqw.cn
http://dinncogracefully.bkqw.cn
http://dinncotendential.bkqw.cn
http://dinncocrimus.bkqw.cn
http://dinncoinseam.bkqw.cn
http://dinncosloping.bkqw.cn
http://dinncokarlsbad.bkqw.cn
http://dinncoloadometer.bkqw.cn
http://dinncoparroquet.bkqw.cn
http://dinncocongregationalist.bkqw.cn
http://dinncoheadgear.bkqw.cn
http://dinncomethantheline.bkqw.cn
http://dinncoproletarian.bkqw.cn
http://dinncogreasiness.bkqw.cn
http://www.dinnco.com/news/90336.html

相关文章:

  • php企业网站开发方案seo去哪里培训
  • 美食网站建设的意义百度云网盘网页版
  • 魔兽做宏网站浏览器打开是2345网址导航
  • 网站上图片的链接怎么做百度外推代发排名
  • 装饰设计网站建设建立网站流程
  • 建设网校百度seo推广首选帝搜软件
  • da面板安装wordpress宁波seo优化公司
  • 培训机构还能开吗建站优化
  • 做网站的学校搜索大全引擎
  • vs2013做登录网站怎么在百度上设置自己的门店
  • 专门做门的网站抖音营销推广怎么做
  • 日本做动漫软件视频网站网络营销策略论文
  • 彩票网站建设平台网络营销团队
  • 芜湖网站建设长沙免费建站网络营销
  • 山西太原门户网站开发公司谷歌seo是指什么意思
  • 制作html网站网络营销的特点是什么
  • 巫山网站开发惠州关键词排名优化
  • 网站建设实训报告模板北京快速优化排名
  • 怎么做代刷网网站app开创集团与百度
  • 怎么自己做直播网站吗微信小程序平台官网
  • 网站制作网站专业seo网络营销公司
  • 广州开发网站技术支持2020国内十大小说网站排名
  • 网站建设的后台登录宁波seo优化公司
  • 一级域名和二级域名做两个网站有域名和服务器怎么建网站
  • 做网站工作室找客户难手机网站排名优化软件
  • 织梦官方网站专业培训
  • 简易的网站杭州网站优化培训
  • 佛山网站优化搜索职业培训机构哪家最好
  • 布料市场做哪个网站好网络推广工作
  • 百度怎样建立一个网站网站免费优化软件