图像大小调整不适用于大尺寸图像 [英] image resizing does not work for large size images

查看:69
本文介绍了图像大小调整不适用于大尺寸图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii all,

我目前正面临一个问题..

i有一个图片上传和调整大小的脚本..


图像上传适用于每个尺寸的图像..

但是,调整大小只适用于小尺寸的iamages ..

例如。调整大小为70 kb大小的图像但是600kb或更多的图像失败..

我的代码在下面..

hii all,
I am facing a problem currently..
i have a script for image uploading and resizing..

the image uploading takes place properly for every size images..
but, the resizing works for only small sized iamages..
for eg. resizing takes place for 70 kb sized images but fails for 600kb or more..
my code is below..

展开 | 选择 | Wrap | 行号

推荐答案

尝试将以下内容放在脚本的顶部: -


[PHP] error_reporting(E_ALL); [ / PHP]


尝试调整大小时,可能是内存不足。
try putting the following at the top of your script:-

[PHP]error_reporting(E_ALL);[/PHP]

It is possible that you are running out of memory when trying to resize.



尝试将以下内容放在脚本的顶部: -


[PHP]错误_reporting(E_ALL); [/ PHP]


尝试调整大小时,可能是内存不足。
try putting the following at the top of your script:-

[PHP]error_reporting(E_ALL);[/PHP]

It is possible that you are running out of memory when trying to resize.



i hav在顶部添加了你的声明,但同样的事情..没有消息..

没有调整大小..只发生上传发生..

任何其他建议..

谢谢......

i hav added your statement at the top, but the same thing..no message..
no resizing..only upload takes place..
any other suggesions..
thanks...



尝试将以下内容放在脚本的顶部: -


[PHP] error_reporting(E_ALL); [/ PHP]


它是尝试调整大小时可能会耗尽内存。
try putting the following at the top of your script:-

[PHP]error_reporting(E_ALL);[/PHP]

It is possible that you are running out of memory when trying to resize.



hii,

i我添加的其他信息可能会帮助你找到我的错...


i hav增加了缩略图大小,认为调整大小会减少..


现在我收到错误信息..



我的代码:

hii,
i am adding another information which may help u find my fault..

i hav increased the thumbnail size thinking that resizing extend will reduce..

now i am getting error message..


my code:

展开 | 选择 | Wrap | 行号


这篇关于图像大小调整不适用于大尺寸图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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