pull/223/head
icret 2024-01-20 12:44:32 +08:00
parent fe237dd712
commit 40918df83e
2 changed files with 6 additions and 4 deletions

View File

@ -30,14 +30,15 @@ $font_size = 24;
/*字体文件位置*/ /*字体文件位置*/
$fontfile = APP_ROOT . $config['textFont']; $fontfile = APP_ROOT . $config['textFont'];
/* floor() 修复php>8.0精度丢失 v2.8.4 */
for ($i = 0; $i < $count; $i++) { for ($i = 0; $i < $count; $i++) {
$font_color = imagecolorallocate($img, mt_rand(0, 100), mt_rand(0, 50), mt_rand(0, 255)); $font_color = imagecolorallocate($img, mt_rand(0, 100), mt_rand(0, 50), mt_rand(0, 255));
imagettftext( imagettftext(
$img, $img,
$font_size, $font_size,
mt_rand(0, 20) - mt_rand(0, 25), floor(mt_rand(0, 20) - mt_rand(0, 25)),
($img_w * $i / 4) + mt_rand(0, 15), floor($img_w * $i / 4) + floor(mt_rand(0, 15)),
mt_rand($img_h / 2, $img_h), floor(mt_rand($img_h / 2, $img_h)),
$font_color, $font_color,
realpath($fontfile), realpath($fontfile),
$code[$i] $code[$i]

View File

@ -1,6 +1,7 @@
* 2024-01-20 v2.8.4 * 2024-01-20 v2.8.4
- Fix [#163](https://github.com/icret/EasyImages2.0/pull/163) - Fix [#163](https://github.com/icret/EasyImages2.0/pull/163)
- 增加检测FTP - Fix [#159](https://github.com/icret/EasyImages2.0/pull/159)
- 增加上传至FTP
- 增加自定义时区 - 增加自定义时区
- 增加大文件分片上传 - 增加大文件分片上传
- 增加重置OPcache缓存 - 增加重置OPcache缓存