[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


Janitor application acceptance emails are being sent out. Please remember to check your spam box!


[Advertise on 4chan]


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 KB

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.

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.

>>1547277
That's not related to what's being discussed here.
>>
File: redirector.png (30 KB, 727x361)
30 KB
30 KB PNG
>>1547278
Forgot to attach my picture.
>>
>>1547277

It doesnt remove embedded data, you cant upload images here with embedded data anymore.
>>
>>1547278
thank 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 like

yes please that would be nice
>>
File: desu g.png (29 KB, 716x356)
29 KB
29 KB PNG
>>1547284
Hmm, 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.
>>
>>1547289
I'll give it a try.
Thank you very much
>>
>>1547279
use case?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.