I recently noticed I can no longer download original images from 4chan. Every time I save an image, the hashes don't match and the downloaded file is always slightly smaller in size. This started happening a few months ago but I just noticed.I tried using a different browser, different network, mobile, proxies, TOR, etc. Every time I get the same smaller, modified image that doesn't match what the original poster uploaded.For example if somene posts this file on my pic, it's about 385 KB and has the hash CYgB58falgT/whack5h/NA==https://desuarchive.org/_/search/image/CYgB58falgT_whack5h_NA/But if I download the file, I get euYAAxsC8GSKt5crzlv5lQ== 357 KBI'm not very tech savvy but I read on /g/ that this might be related to how cloudflare handles files and that a work around would be to adding a "random query string" to the URL but I don't know.This happens only with file extensions JPG/GIF/PNG, webms and mp4 files can be downloaded as normal and the hashes match.Also I noticed that it seems desuarchive keeps fetching the original files posted without issues but not 4plebs, it also downloads a smaller modified image to the archive.Can anyone help?
4chan reencodes images to remove the exif metadata and any embedded data (may not have any but it does it anyways),
>>1547275>I'm not very tech savvy but I read on /g/ that this might be related to how cloudflare handles files and that a work around would be to adding a "random query string" to the URL but I don't know.That's correct. Cloudflare optimizes the file. Adding a parameter to the end of the url means cloudflare will send you a fresh unoptimized copy.>Can anyone help?You want to be able to get the original file? You can use a browser extension such as Redirector to add a random parameter to the end of the url. Parameters are at the end of the url after a '?' and are in the form 'key=value'. Pic related is an example rule for the Redirector browser extension that adds '?c43t4g44=fath4g44' to the end of the url. I just smashed my keyboard with random characters. Make yours different.You could also create a Redirector rule that sends you to desuarchive instead. I can post an example of that too if you'd like.>>1547277That's not related to what's being discussed here.
>>1547278Forgot to attach my picture.
>>1547277It doesnt remove embedded data, you cant upload images here with embedded data anymore.
>>1547278thank you, I tried Redirector with Firefox, it adds the parameter but I still get the optimized/modified file>You could also create a Redirector rule that sends you to desuarchive instead. I can post an example of that too if you'd likeyes please that would be nice
>>1547284Hmm, sorry it didn't work. I stopped using that method and just redirect to an archive instead, but I thought the old way still worked...Anyway, for archives, there's a slight complication. 4chan switched from 13 to 16 digit filenames a while back, but not all archives followed suit. Most drop the last 3 digits of the filename. So you have to remove the last 3 digits using a regex.Pic related should be pretty simple to duplicate and edit for other boards / archives.
>>1547289I'll give it a try.Thank you very much
>>1547279use case?