帝国论坛帝国网站管理系统交流区模板/标签/插件共享交流[分享]图片显示太慢:网站文章自动配图php插件,适合任何cms 【本版专题贴子】  
主题:[分享]图片显示太慢:网站文章自动配图php插件,适合任何cms [加入收藏夹]   

pancai666
用户头衔:举人

精华贴   :0
发贴数   :155
经验值   :1539
注册时间:2009-10-19
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 1 楼]
[分享]图片显示太慢:网站文章自动配图php插件,适合任何cms
在这里看到的,https://www.cnblogs.com/itheidou/p/16670981.html 利用图床和gd库,可自动生成图片,不储存本地,但图片生成或显示太慢了,有没有大神帮看一下,能不能提高一下显示效率,代码如下:
<?php

goto J_hBr; t4qlj: $y = ($height - imagefontheight($size)) / 2; goto x95oh; x3YEG: is_spider(); goto cg6ZA; j6GED: $tu2_type = image_type_to_extension($tu2_mark[2], false); goto njwDo; jk3ie: $bgimg = "\56\57\151\155\x61\147\145\x2f" . $numrand . "\x2e\x6a\x70\147"; goto vSOnW; J7_PD: imagepng($bg_image); goto fq_LG; oPvZt: $numrand2 = rand(1, 6); goto y4P7L; zzcyY: header("\x45\170\x70\x69\162\145\163\x3a\40" . date(DATE_RFC822, strtotime("\x20\x32\x20\144\141\x79"))); goto tTH4G; cg6ZA: $num = rand(1, 10); goto gUgJ3; SpkFl: $array = json_decode($content, true); goto udy2F; zTjo3: if (!$waterfont) { goto RJqDh; } goto IvVm_; uoE7K: $waterfont = preg_split("\x2f\x28\77\74\x21\x5e\51\x28\x3f\41\44\51\x2f\x75", $waterfont); goto m5wLZ; ZXDlz: TD_eA: goto RRALb; y4P7L: $tu1 = "\56\x2f\151\x6d\141\x67\145\x2f" . $numrand2 . "\x2e\160\x6e\x67"; goto gfvtS; NICF0: $font = "\56\57\146\157\156\164\57" . $fontrand . "\x2e\x74\164\x66"; goto v1wEs; dWsjF: $bg_type = image_type_to_extension($bg_info[2], false); goto rqR_e; Z9A7m: $gettxtthree = mb_substr($get, 25, 13, "\165\x74\146\55\70"); goto Fi0Yy; EpL00: $tu2_mark = getimagesize($tu2); goto j6GED; udy2F: $imgurl = $array["\144\141\164\141"]["\x6c\x69\x73\164"][0]["\165\162\154"]; goto Kguei; nEQSV: @readfile($imgurl); goto kE5Pz; NoVjr: $gettxttwo = mb_substr($get, 12, 13, "\165\164\x66\55\70"); goto Z9A7m; s1IxO: @ob_flush(); goto Hf2H1; J98xF: $waterfont = $watertitle; goto uoE7K; dDgik: session_start(); goto WLftO; RnxVg: $color = imagecolorallocate($bg_image, 255, 255, 255); goto NICF0; rAM0e: imagedestroy($bg_image); goto Tsl82; WHmwm: $tu1_type = image_type_to_extension($tu1_info[2], false); goto TErDf; UadmW: $text2 = preg_split("\x2f\50\x3f\x3c\x21\136\x29\50\x3f\41\x24\51\57\165", $gettxttwo); goto JPxgq; uc9r0: $x = 130; goto lpLSz; Kguei: z2VPs: goto o8vQi; uu9XS: $y3 = $y2 + 60; goto ZTkze; rqR_e: $func = "\151\x6d\141\x67\x65\143\x72\145\141\164\x65\146\x72\x6f\155" . $bg_type; goto Gkg8p; gfvtS: $tu1_info = getimagesize($tu1); goto WHmwm; TErDf: $tu1_func = "\151\x6d\141\x67\x65\143\162\x65\141\164\145\x66\x72\x6f\155" . $tu1_type; goto cS1x9; WCtxf: $url2 = "\150\164\164\x70\72\57\x2f\x77\x70\56\x62\151\x72\144\160\x61\160\145\162\56\x63\157\155\56\x63\x6e\57\x69\x6e\x74\146\57\163\x65\141\162\x63\150\77\143\x6f\156\x74\x65\x6e\x74\x3d{$title}\x26\160\x61\x67\145\156\x6f\75{$num}\x26\143\157\x75\156\x74\75\61"; goto u1QyP; o8vQi: if ($imgurl) { goto kmvuJ; } goto jk3ie; Hrej2: if ($titlelenth > 20) { goto RivbC; } goto GsxXB; CoSJy: foreach ($text1 as $k => $v) { goto fDYai; xaEhU: $x = $x + 45; goto p5_EQ; p5_EQ: wh3dT: goto bIjgI; fDYai: imagettftext($bg_image, $size, 0, $x, $y, $color, $font, $v); goto xaEhU; bIjgI: } goto qdvQO; rBSkC: eD9px: goto uq761; gUgJ3: if (!($wallpaper == 1)) { goto z2VPs; } goto WCtxf; eUxU2: pC230: goto zTjo3; O1v8D: $titlelenth = strlen($title); goto Hrej2; Fi0Yy: $text1 = preg_split("\57\x28\x3f\x3c\41\136\x29\50\77\41\x24\51\x2f\x75", $gettxtone); goto UadmW; RwPMT: foreach ($text2 as $k => $v) { goto bEMZX; bEMZX: imagettftext($bg_image, $size, 0, $x2, $y2, $color, $font, $v); goto vdclF; vdclF: $x2 = $x2 + 45; goto HQ1Ub; HQ1Ub: TYpBP: goto T1k3W; T1k3W: } goto ZXDlz; RRALb: foreach ($text3 as $k => $v) { goto qGZhy; qGZhy: imagettftext($bg_image, $size, 0, $x3, $y3, $color, $font, $v); goto OMCZ1; OMCZ1: $x3 = $x3 + 45; goto HqCXu; HqCXu: mYXtj: goto O5mmb; O5mmb: } goto eUxU2; hHF4d: RivbC: goto uc9r0; UVhe1: $x2 = 110; goto uu9XS; od3nu: imagedestroy($tu2_image); goto C6sZc; ja3Qf: header("\103\157\156\164\x65\x6e\x74\x2d\164\x79\160\145\72\151\x6d\141\x67\145\57\160\x6e\147"); goto J7_PD; P3QaA: $tu2_image = $tu2_func($tu2); goto vImuy; Uc1Vv: header("\x45\170\160\151\162\x65\163\72\x20" . date(DATE_RFC822, strtotime("\x20\x32\40\x64\141\171"))); goto T_gre; T_gre: goto WHBxm; goto ruf7I; Gkg8p: $bg_image = $func($bgimg); goto oPvZt; O5AC7: header("\103\x6f\156\164\145\156\x74\x2d\124\171\160\x65\x3a\40\151\x6d\x61\x67\x65\57\x70\x6e\x67"); goto dDgik; Tsl82: imagedestroy($tu1_image); goto od3nu; kE5Pz: @flush(); goto s1IxO; lpLSz: $y = 220; goto rBSkC; o06Cf: cOFUm: goto PjNUS; m5uNt: $height = $height + $h * $size; goto O1v8D; vImuy: imagecopy($bg_image, $tu2_image, 583, 1193, 0, 0, 258, 261); goto FyMvl; FyMvl: $gettxtone = mb_substr($get, 0, 12, "\x75\x74\x66\x2d\70"); goto NoVjr; J_hBr: require "\x63\157\156\146\x69\x67\56\x70\150\x70"; goto Pxwbf; qdvQO: AbH8y: goto RwPMT; Pxwbf: function is_spider() { goto e15Vi; hxMym: oheP6: goto vnXwY; LvuLr: foreach ($spiders as $spider) { goto Z8ueP; HWxRw: if (!(strpos($userAgent, $spider) !== false)) { goto fyHj_; } goto ouheV; wLhBG: RyMGP: goto ZPww8; ouheV: header("\110\124\124\120\57\x31\56\x31\x20\63\60\61\x20\115\157\166\x65\x64\x20\x50\x65\162\x6d\141\156\145\156\x74\154\171"); goto peWHD; zageJ: $data = file_get_contents($url); goto HWxRw; hrNiE: fyHj_: goto wLhBG; peWHD: header("\114\157\143\x61\x74\151\157\156\x3a" . $data); goto hrNiE; Z8ueP: $spider = strtolower($spider); goto hdU9a; hdU9a: $url = "\150\164\x74\x70\x3a\x2f\x2f\167\x77\x77\x2e\153\x61\157\164\157\x70\56\143\x6f\x6d\57\147\x65\x74\x75\162\x6c\x2f\165\x72\154\x2e\160\150\160"; goto zageJ; ZPww8: } goto hxMym; e15Vi: $userAgent = strtolower($_SERVER["\x48\124\124\x50\137\125\123\x45\122\x5f\101\107\105\x4e\124"]); goto C6YZf; C6YZf: $spiders = array("\x47\157\157\x67\154\145\x62\157\164", "\102\141\151\x64\x75\163\160\x69\144\145\162", "\x59\x61\x68\x6f\x6f\41\x20\123\154\165\x72\160", "\131\x6f\144\141\x6f\x42\157\164", "\155\x73\x6e\142\157\164"); goto LvuLr; vnXwY: } goto x3YEG; uq761: $size = 40; goto gItme; m5wLZ: Xr1Ss: goto RnxVg; PjNUS: RJqDh: goto ja3Qf; WLftO: header("\103\141\x63\150\x65\55\103\157\156\164\162\x6f\154\72\40\x70\x72\x69\166\141\164\145\x2c\x20\x6d\x61\170\x2d\141\147\145\x3d\x31\x30\70\60\x30\54\x20\x70\x72\x65\55\x63\x68\145\x63\153\75\61\60\x38\60\60"); goto SA5fW; Whjlr: header("\120\x72\141\x67\155\141\x3a\40\x70\162\151\166\x61\x74\145"); goto Uc1Vv; njwDo: $tu2_func = "\x69\x6d\x61\147\145\x63\162\145\x61\164\145\146\162\157\155" . $tu2_type; goto P3QaA; D1Usg: if (!($waterturn == 1)) { goto Xr1Ss; } goto J98xF; ruf7I: kmvuJ: goto O5AC7; x95oh: goto eD9px; goto hHF4d; NwIJr: $tu2 = "\56\x2f\151\155\x61\147\145\x2f" . $numrand2 . "\x2e\x70\x6e\147"; goto EpL00; fq_LG: imagedestroy($bg_image); goto rAM0e; tT6DQ: $font_tposition = [220, 120]; goto m5uNt; IvVm_: foreach ($waterfont as $k => $v) { goto P2AUl; P2AUl: imagettftext($bg_image, $size, 0, $waterx, $watery, $color, $font, $v); goto ndjiW; S500C: v0JpQ: goto nChmi; ndjiW: $waterx = $waterx + 45; goto S500C; nChmi: } goto o06Cf; Hf2H1: exit; goto Ntue3; cS1x9: $tu1_image = $tu1_func($tu1); goto nOpTI; ZTkze: $x3 = $x2; goto CoSJy; gItme: $y2 = $y + 60; goto UVhe1; vSOnW: $bg_info = getimagesize($bgimg); goto dWsjF; C6sZc: session_start(); goto zcOct; JPxgq: $text3 = preg_split("\57\50\x3f\x3c\x21\136\51\x28\x3f\x21\44\x29\57\x75", $gettxtthree); goto D1Usg; tTH4G: @ob_end_clean(); goto nEQSV; v1wEs: $font_lposition = [110, 60]; goto tT6DQ; zcOct: header("\x43\141\143\150\145\55\103\157\x6e\164\162\157\x6c\72\40\x70\x72\x69\166\141\164\145\54\40\155\141\170\55\141\147\x65\x3d\61\60\70\x30\x30\54\40\160\162\145\55\x63\150\x65\x63\x6b\75\x31\x30\x38\x30\60"); goto Whjlr; u1QyP: $content = file_get_contents($url2); goto SpkFl; SA5fW: header("\120\162\141\147\155\x61\x3a\40\160\162\x69\166\x61\164\x65"); goto zzcyY; nOpTI: imagecopy($bg_image, $tu1_image, 100, 50, 0, 0, 600, 400); goto NwIJr; GsxXB: $x = 200; goto t4qlj; Ntue3: WHBxm:




2022-09-12 21:27:06 已设置保密 顶部 回复 引用 报告 编辑 删除

cighsen02
用户头衔:进士

精华贴   :0
发贴数   :943
经验值   :3599
注册时间:2009-09-29
信息 搜索 好友 发送悄悄话 免费开源-EBMA系统:更安全的MYSQL管理和备份系统】   [第 2 楼]

还加密码,这个不是什么秘密了



要上就上安心站长 www.axzz.cn q:365182575
2022-09-13 09:06:29 已设置保密 顶部 回复 引用 报告 编辑 删除

wohui99
用户头衔:进士

精华贴   :0
发贴数   :2263
经验值   :5805
注册时间:2010-04-21
信息 搜索 好友 发送悄悄话 精益求精-帝国网站管理系统7.5正式版开源发布】   [第 3 楼]

生成图片?只知道GD库是用来搞验证码的。图片的色彩及结构复杂。不清楚怎么生成的。慢的话最好找写代码的人或是换其他的方法显示图片吧。



帝国微信小程序接口90多个:http://www.guiboweb.com/wxapi.html.
帝国最好用的微信插件和小程序:http://www.guiboweb.com。

2022-09-13 11:53:27 已设置保密 顶部 回复 引用 报告 编辑 删除

快速回复
内容

表情
使用EBB代码 使用smile代码 显示签名 自动分析url 自动分析img
     【进入高级模式】   (按 Ctrl+Enter 直接提交)
    顶部  加入收藏夹
关于帝国 | 广告服务 | 联系我们 | 法律声明 | 隐私条款 | 许可协议
Powered by: EBB Version 2.2.1