Jump to content
  • Announcements

    • olyclimber


      We have upgraded to new forum software as of late last year, and it makes everything here so much better!  It is now much easier to do pretty much anything, including write Trip Reports, sell gear, schedule climbing related events, and more. There is a new reputation system that allows for positive contributors to be recognized,  it is possible to tag content with identifiers, drag and drop in images, and it is much easier to embed multimedia content from Youtube, Vimeo, and more.  In all, the site is much more user friendly, bug free, and feature rich!   Whether you're a new user or a grizzled cascadeclimbers.com veteran, we think you'll love the new forums. Enjoy!
Sign in to follow this  
Marcus Russi

Workaround for broken pictures

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

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this