XF 2.2 Proxy is breaking image. How do I resolve this, please?

Stuart Wright

Well-known member
This post
Has a broken image. When editing the post, the image displays fine.
But once it is displayed via the proxy, it is broken
https://www.avforums.com/proxy.php?image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fg9582DNuQppxC%2F200.gif&hash=f25aab8579afdabab3ddf3e230f9492a
How do I resolve this, please?
 
You should always use Tools > Test image proxy in the admin control panel to debug proxy failures initially.

That tells us why:

https://media1.giphy.com/media/g9582DNuQppxC/200.gif could not be fetched or is not a valid image. The specific error message was: File is too large.

There's a hard limit on the file size of proxy images. Some GIFs will be pretty large.

It's configurable. It defaults to 5MB.

However, what you may want to do is utilise a new option we added to XF 2.2 the "Image proxy bypass".

1632395880433.webp

We implemented this explicitly because of GIPHY actually because we didn't want customers to have to store local copies of large images from a relatively trustworthy location such as GIPHY.
 
Excellent, thank you, Chris. Very useful information. Once I have changed the setting, to bypass giphy.com, out of interest, will existing giphy proxies then be removed, releasing disk space?
 
Back
Top Bottom