Jump to content

Workaround for broken pictures

Marcus Russi

Recommended Posts

The workaround

I'm flying to Seatac tomorrow for a few weeks of Cascades fun, so this issue has been bugging me while I've been trying to research various routes. I developed a workaround that will at least allow you to download the photos for any TR that has broken images. If you have have a Unix-based environment with GNU Parallel installed and know how to use Bash or another terminal, I wrote a short script that takes as input a cascadeclimbers.com TR URL and transforms the broken links into ones that work. Then, it saves the images into your working directory. I've tried it with this TR and a few other ones with broken images and it appears to work as advertised.


Example usage:


The issue

The issue appears to involve the "image proxy" of Invision, the software that runs the forum. As I understand it, the "image proxy" takes the URL of an image and fetches it through the server (rather than having your computer connect directly to the website), then forwards the image on to the user. It appears that a large subset of URLs for images that are hosted on cascadeclimbers.com, but nevertheless get routed through the proxy, either don't work anymore (are "dead links"), aren't compatible with the URL format the proxy expects, (http vs. https, www vs. no www, etc.), or both. I think all of the images are still living on the server, but they're not accessible through the forum's image proxy, which means you have to get the original, un-proxied URL yourself, and request that directly from the site.

To see this in action yourself, instead of using my script, take a broken URL like the following:


Extract the original URL, pre-proxy:


Replace http with https, and remove the www.:


And you will be able to get the pretty photo.

Edited by Marcus Russi
Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...