警告:imagejpeg() [function:imagejpeg]: gd-jpeg: JPEG 库报告不可恢复的错误 [英] Warning: imagejpeg() [function:imagejpeg]: gd-jpeg: JPEG library reports unrecoverable error

查看:21
本文介绍了警告:imagejpeg() [function:imagejpeg]: gd-jpeg: JPEG 库报告不可恢复的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的根文件夹上安装了 wordpress,

I have wordpress installation on my root folder,

直到昨天它工作正常,但今天它出现以下错误,因为我想生成缩略图,

until yesterday it was working fine, but today it gives following error for i guess generating thumbnail images,

Warning: imagejpeg() [function:imagejpeg]: gd-jpeg: JPEG library reports unrecoverable error: in public_html/wp-includes/media.php on line 459

有人知道这个警告吗??

do anyone have any idea regarding this warning??

请帮帮我

以下代码在第 459 行

following code is on line 459

if ( !imagejpeg( $newimage, $destfilename, apply_filters( 'jpeg_quality', $jpeg_quality, 'image_resize' ) ) )

推荐答案

1)检查磁盘空间

您的系统必须有足够的磁盘空间

Your system must have enough disk space

2) 检查内存限制

在你的 php 中设置更多内存:

Set more memory in your php:

ini_set("memory_limit","256M");

3) 检查 post_max_size 和 upload_max_filesize

在您的 htaccess 文件中设置更多:

Set more in your htaccess file:

php_value post_max_size 16M
php_value upload_max_filesize 6M

4) 把@放在函数前面

@imagejpeg(..............);

第 1 点)对我有用.

Point 1) worked for me.

这篇关于警告:imagejpeg() [function:imagejpeg]: gd-jpeg: JPEG 库报告不可恢复的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆