Totally Zenned
- Join Date:
- Apr 2011
- Posts:
- 592
- Plugin Contributions:
- 0
Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread
brittainmark:
Think I might have found it.
Try altering includes/functions/extra_functions/functions_bmz_image_handler.php
about line 114 from
function handle_image($src, $alt, $width, $height, $parameters)
{
global $ihConf;
if ($ihConf['resize']) { //Image Handler processing is enabled
> to
> ```
function handle_image($src, $alt, $width, $height, $parameters)
{
global $ihConf;
$image_ext = strtolower(pathinfo($src, PATHINFO_EXTENSION));
if ($ihConf['resize'] && ($image_ext != 'webp')) { //Image Handler processing is enabled
Sorry for the delay to report.
When i first tried to alter includes/functions/extra_functions/functions_bmz_image_handler.php, the link to the .webp image appeared broken.
However, i forgot i reverted the previous change to the observer.
After altering both files, the .webp error seems to be gone ( at least in the last 2 days )
Thank you to brittainmark for providing the fix.
Now, I am facing another "bug" thatmay or may not be related to IH:
If i use a .webp image for a banner, the image is being resized to my small image admin settings.
If i use a jpg, png...image for the same banner, the image is display to the image initial size.
Is this a normal behavior? I didn't know that IH and/or ZC would resize .webp image when use in banners.
Is there a way to fix it?
Thank you