syamilmj/Aqua-Resizer

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

Opened this issue · 6 comments

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/

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 )

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.

Any solution for this?

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

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"