syamilmj / Aqua-Resizer

Resize WordPress images on the fly
502 stars 205 forks source link

Aq_Resize.process() error: Unable to resize image because image_resize_dimensions() failed, #103

Open ghost opened 7 years ago

ghost commented 7 years ago

I have a wordpress website running on AWS. However, on a specific page, it keeps giving me the below error. I didn't manually configure $url parameter. All the images on the page has the resize error. Can you help me figure it out?

[Tue Jul 18 15:24:30 2017] [error] [client xxx] Aq_Resize.process() error: Unable to resize image because image_resize_dimensions() failed, referer: http://www.xxx.com/xxx/
[Tue Jul 18 15:24:30 2017] [error] [client xxx] Aq_Resize.process() error: $url parameter is required, referer: http://www.xxx.com/xxx/
[Tue Jul 18 15:24:30 2017] [error] [client xxx] Aq_Resize.process() error: $url parameter is required, referer: http://www.xxx.com/xxx/
ajayshrivas commented 6 years ago

aq_resize( $url, $width = null, $height = null, $crop = null, $single = true, $upscale = false )

it 's required to pass $crop value because if you wont pass $crop then it will not accept the boolen value.
you should try it. aq_resize( $url, $width = null, $height = null )

prtk418 commented 6 years ago

I am also having same kind of error , i am passing the $crop value as true , the image_resize_dimensions() function is returning false. And the error msg says Unable to resize image because image_resize_dimensions() failed, i am passing image smaller than the $width and $height value.

andresmrg commented 5 years ago

Any solution for this?

v1talii-dev commented 3 years ago

+1

chambahr commented 3 years ago

Check if php "gd extension". You might still face this problem in recent times which should be from your PHP version. anything between 7.0 to 7.4 automatically fixes this problem

v1talii-dev commented 2 years ago

Check if php "gd extension". You might still face this problem in recent times which should be from your PHP version. anything between 7.0 to 7.4 automatically fixes this problem

"gd extension" is enabled, but i steel view error "Unable to resize image because image_resize_dimensions() failed"