Topic: Some raw tumblr links not working

Posted under General

Zapdos said:
Is it just me, or is the occasional raw tumblr image giving people a 404? For instance, these two posts' raw images don't work for me:
https://lonbluewolf.tumblr.com/post/166167184183
http://1-upclockstuff.tumblr.com/post/166144868396/yep (just the first one)

Nah, it worked for me just fine. I use a script so my browser does it automatically, but if you're doing it manually sometimes it can happen if you forget to remove the beginning numbers from the url

For example: forgetting to remove the 78 when trying the raw image for lonblue's pic will result in an error, whereas removing the number AND adding raw should let it work

  • https://78.media.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_1280.png standard image url
  • https://78.media.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png error; wont work due to numbers not removed
  • https://media.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png should work just fine

If you're struggling with this i'd suggest getting a script that'll do it for you, I use this one for tumblr images.

Updated by anonymous

Zapdos said:
Nope, I'm doing it properly. I'm getting a different error than if you enter the URL wrong: https://i.imgur.com/8yi2sIa.png

hm! that's bizarre. recreating this myself I can't seem to get the same error.... even when swapping to browsers that don't have the auto raw image redirect. huh

perhaps something on your end is conflicting with it somehow? or perhaps you're facing some uncommon error or something

Updated by anonymous

I tend to run into uncommon errors more often than most so that's probably it. Hip hip hoorah.

Updated by anonymous

After loading at least several hundred raw images since the crisis started, I noticed that in some instances the Yahoo/Tumblr servers would return a temporary error.

Also, I notice that lonbluewolf is in safe mode so it requires login. I don't know if that applies to raws.

Updated by anonymous

How long will it take for those temporary errors to go away?

(or is that a stupid question)

Updated by anonymous

Suppose I'll just wait then; at least it's not permanent.

Updated by anonymous

Zapdos said:
Suppose I'll just wait then; at least it's not permanent.

but its working already?

Updated by anonymous

Zapdos said:
Not for me it isn't.

issue is likely in your end then. have you tried clearing your cache?

Updated by anonymous

Here is a new one for me:

post #1349783

http://media.tumblr.com/d870e276f563b9370962283c9880e7e1/tumblr_mesyu3kVF81rhjw2uo1_raw.png

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>9E41DB99315300A2</RequestId>
<HostId>
AvL9WdVHygjvHHkgstgnpGZF5G/I9fKpr+ZqNGD1VqQKiepR7B6YGSjoe0De3tOwACo93pyjqLM=
</HostId>
</Error>

Updated by anonymous

Ledian said:
issue is likely in your end then. have you tried clearing your cache?

I restarted my computer; does that clear it? If not then I'll try that.

Updated by anonymous

I tried using a proxy and that worked just fine. Maybe the issue is with a local tumblr server?

Updated by anonymous

huh, looks like we have a site that JDownloader 2 actually won't work on. i tried pasting the like https://lonbluewolf.tumblr.com and nothing came up though it could be due to that safe mode.

nope, it works just fine but you first have to go to settings > account manager > click "add" button > (type tumblr in the search bar at the top to find it easier) enter your login info > click "save" then let it do its verification thing and from there you can simply paste the above link in (right click in the link grabber tab) and let it start crawling for anything downloadable. (make sure you have safe mode disabled on your tumblr account first)

warning, if it detects anything social media related, even a youtube video, it might start going crazzy and start piling up dozens upon dozens of content to sift through before it finishes or you stop it manually. just be careful with some links.

edit: huh, looks like jdownloader's account manager includes sites such as e-hentai.org, emuparadise, hentai-foundry... i wonder if you guys could get them to add e621 to the list. then people could use this for e621 on top of that huge list of other sites.

Updated by anonymous

It now seems that all tumblr images uploaded today stopped working. No matter which blog, I always get 404 errors. The only images that still show up are those uploaded before October 12th 1017.

They probably changed the raw URL pattern again...

Updated by anonymous

just to make sure, what was the resize limit for tumblr? 1280 in either horizontal or vertical?

i just tested that wooferkid link in jdownloader and some came out below or at the 1280 mark but a good number downloaded were above the 1280 mark either vertical or horizontal or both. so jdownloader MIGHT be getting raw versions with its link grabber function but i'm still not 100% certain.

would someone mind comparing the raw versions of these pics from the wooferkid tumblr to make sure? if it is grabbing the raw versions then that may be of use if editing links manually won't work. that demon x alien one is the biggest of the 4 at 1280 x 1889.

Updated by anonymous

SYphonkedo said:
I tried cleaning my cache and the same error still persists and even using the url redirect script, didn't had any effect

i tried those blogs here and nothing loads in raw format:

http://wooferkid.tumblr.com/
http://makkon.tumblr.com/page/158

at least on second link this is because old posts do not have raw files. i dont remember the exact time but i think that anything from december 2012 of 2013 and before does not have raw versions at all because thats when the raw file thing was added to the site. the posts on that page are posted in 2011

Updated by anonymous

treos said:
just to make sure, what was the resize limit for tumblr? 1280 in either horizontal or vertical?

i just tested that wooferkid link in jdownloader and some came out below or at the 1280 mark but a good number downloaded were above the 1280 mark either vertical or horizontal or both. so jdownloader MIGHT be getting raw versions with its link grabber function but i'm still not 100% certain.

would someone mind comparing the raw versions of these pics from the wooferkid tumblr to make sure? if it is grabbing the raw versions then that may be of use if editing links manually won't work. that demon x alien one is the biggest of the 4 at 1280 x 1889.

Let's see:

pic 1 at 1280: 1236x1390

pic 2 at 1280: 1280x1889 (Probably the raw version is slightly bigger)

pic 3 at 1280: 1032x1400

Updated by anonymous

Ledian said:
at least on second link this is because old posts do not have raw files. i dont remember the exact time but i think that anything from december 2012 of 2013 and before does not have raw versions at all because thats when the raw file thing was added to the site. the posts on that page are posted in 2011

Strangely enough those old posts were working fine a couple of days ago and this one somehow stopped working together with the new posts he made.

Updated by anonymous

SYphonkedo said:
Let's see:

pic 1 at 1280: 1236x1390

pic 2 at 1280: 1280x1889 (Probably the raw version is slightly bigger)

pic 3 at 1280: 1032x1400

tumblr_1280 rescaled height is 1920px
tumblr_540's is 810px

I was fucking shaking when I was grabbing images this morning and nothing was working. For fuck's sake tumblr. Has anybody made a PSA post to spread everywhere?

Updated by anonymous

Fucking tumblr...

I used to hate tumblr because the images were tiny, then I discovered the raw images... and now I can go back to hating tumblr again.

It's come full circle.

Updated by anonymous

The new workaround appears to be changing 'media' to 'data'
e.g.

https://media.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png

gives me a 404, but

https://data.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png

works.

Fucking tumblr I swear...

Updated by anonymous

plsignore said:
The new workaround appears to be changing 'media' to 'data'
e.g.

https://media.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png

gives me a 404, but

https://data.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png

works.

Fucking tumblr I swear...

The prefix switch from media to data does work, but unfortunately data.tumblr.com is not a whitelisted domain for e621 yet, so we can't do any direct URL uploads from there. Looks like we've got to add that to the list. :/

Edit: Changed. (forum #181740 -> forum #243982)

Updated by anonymous

plsignore said:
Fucking tumblr I swear...

FA completely destroys original upload initially, patreon is upscaling content, twitter uses really high compression values.

Yeah, could be worse.

Updated by anonymous

Thanks to @plsignore or whoever discovered data.tumblr.com.

I noticed that I had to add a security certificate exception (Firefox) to load the image.

Updated by anonymous

I wrote a regular expression with two capture groups for any scripters out there who want to use this to quick replace the "78.media" and "_[numbers].jpeg" parts

/http(?:s)://(\d*.media).tumblr.com/[a-z0-9]*/tumblr_[A-z0-9]*_([0-9]*).jpg/g

Updated by anonymous

To-mos said:
I wrote a regular expression with two capture groups for any scripters out there who want to use this to quick replace the "78.media" and "_[numbers].jpeg" parts

/http(?:s)://(\d*.media).tumblr.com/[a-z0-9]*/tumblr_[A-z0-9]*_([0-9]*).jpg/g

Here is mine:

(https?://)?([0-9]{1,2}\.)?(media\.tumblr\.com/.*)1280\.(jpg|png)result[1]+result[3]+"raw."+result[4]

Will have to change if we have to use data.tumblr.com from now on.

Updated by anonymous

plsignore said:
The new workaround appears to be changing 'media' to 'data'
e.g.

https://media.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png

gives me a 404, but

https://data.tumblr.com/229d86359d9e7da34196e9939b270e48/tumblr_oxhlpu0dFA1vjc3oio1_raw.png

works.

Fucking tumblr I swear...

oh my god, thank you
I've been trying to figure this out for at least 40 minutes by prodding around with a bunch of url's. data in the domain seems to fix everything! :0

Updated by anonymous

I ended up with /^(https?:\/\/)(?:\d+\.)?media\.tumblr\.com(\/[0-9a-f]{32}\/tumblr_(?:inline_)?[0-9A-Za-z]{16,21}_)\d+(?:\w)?(\.[a-z]+)$/i for mine, and a replacement pattern of match[1] + "s3.amazonaws.com/data.tumblr.com" + match[2] + "raw" + match[3]

It accounts for variable length image id sections, inlines, media vs numbers.media and the occasional height or width limited image that have h or w after the dimension.

Updated by anonymous

KiraNoot said:
I ended up with /^(https?:\/\/)(?:\d+\.)?media\.tumblr\.com(\/[0-9a-f]{32}\/tumblr_(?:inline_)?[0-9A-Za-z]{16,21}_)\d+(?:\w)?(\.[a-z]+)$/i for mine, and a replacement pattern of match[1] + "s3.amazonaws.com/data.tumblr.com" + match[2] + "raw" + match[3]

It accounts for variable length image id sections, inlines, media vs numbers.media and the occasional height or width limited image that have h or w after the dimension.

This probably isn't the place to ask and I can understand if you don't care to answer, however what would this look like as, let's say, a tampermonkey script? You know, for those of us who don't code but at least know how to add scripts to something like tampermonkey?

Updated by anonymous

AnotherDay said:
This probably isn't the place to ask and I can understand if you don't care to answer, however what would this look like as, let's say, a tampermonkey script? You know, for those of us who don't code but at least know how to add scripts to something like tampermonkey?

I modified an extension that somebody posted in another thread. https://greasyfork.org/scripts/31873-use-tumblr-raw-image/code/Use%20Tumblr%20Raw%20Image.user.js

// ==UserScript==
// @name        Use Tumblr Raw Image
// @namespace   UseTumblrRawImage
// @description Changes all Tumblr hosted images to use the raw version
// @author      jcunews
// @version     1.0.3
// @include     http://*.tumblr.com/*
// @include     https://*.tumblr.com/*
// @grant       none
// @run-at      document-start(
// ==/UserScript==

(function() {

  var regex = /^(https?:\/\/)(?:\d+\.)?media\.tumblr\.com(\/[0-9a-f]{32}\/tumblr_(?:inline_)?[0-9A-Za-z]{16,20}_)\d+(?:\w)?(\.[a-z]+)$/i;

  function processSrc(ele) {
    if (!ele.src || (ele.tagName !== "IMG")) return;
    var match = ele.src.match(regex);
    if (!match) return;
    match = match[1] + "s3.amazonaws.com/data.tumblr.com" + match[2] + "raw" + match[3];
    if (ele.getAttribute("data-src") === ele.src) ele.setAttribute("data-src", match);
    ele.src = match;
    ele.style = "max-width: 100%";
  }

  function processContainer(container) {
    var eles = container.querySelectorAll('img[src*=".media.tumblr.com/"]');
    processSrc(container);
    Array.prototype.slice.call(eles).forEach(processSrc);
  }

  var observer = new MutationObserver(function(records) {
    records.forEach(function(record) {
      if (record.attributeName) {
        if (record.attributeName === "src") processSrc(record.target);
      } else {
        var nodes = Array.prototype.slice.call(record.addedNodes);
        nodes.forEach(function(node) {
          if (node.nodeType === 1) processContainer(node);
        });
      }
    });
  });

  addEventListener("load", function() {
    processContainer(document.body);
    observer.observe(document.body, {
      childList: true,
      attributes: true,
      subtree: true
    });
  });

})();

Updated by anonymous

  • 1