syamilmj / Aqua-Resizer

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

Resizer not displaying any images at all #109

Open zu3st3r opened 5 years ago

zu3st3r commented 5 years ago

Hi there guys,

The resizer function does not seem to display the image, if I simply use the $img_url everything works fine so the URL call is in order, only when I try and use the resizer I get no display of images.

$img_url = $lp_menu['mImage'];

$img_rz = aq_resize( $img_url, 65, 65, true, true, true);

<img src="<?php echo $img_rz; ?>">

Am I missing something here?

Running on SSL https Have tried the fix here: https://github.com/syamilmj/Aqua-Resizer/pull/86 but not working for me, still no images displaying.

ShpendBerisha commented 5 years ago
$img_url = $lp_menu['mImage'];
$img_rz = aq_resize( $img_url, 65, 65, true );

The image must be larger than the value given in code, also aq resizer doesn't resize external images but only images uploaded in wordpress media library.

The output of $lp_menu['mImage']; gives any result?

zu3st3r commented 5 years ago
$img_url = $lp_menu['mImage'];
$img_rz = aq_resize( $img_url, 65, 65, true );

The image must be larger than the value given in code, also aq resizer doesn't resize external images but only images uploaded in wordpress media library.

The output of $lp_menu['mImage']; gives any result?

Currently testing this with 800x800 images and it points to the wordpress media If I use <img src="<?php echo $img_url; ?>"> I do see my images yes.

zu3st3r commented 5 years ago

Just an update, I found the problem.

We use the wp hide function to well hide most of the files and locations.

The change on the content directory caused aq_resize to think it's not a local directory, changed this back to the default and everything is working fine now :rofl:

Now we just need to update the image location of our other 500+ images across the site since they can't be "located" :hankey: