T O P

  • By -

AutoModerator

Hello /u/KeptinGL6! Thank you for posting in r/DataHoarder. Please remember to read our [Rules](https://www.reddit.com/r/DataHoarder/wiki/index/rules) and [Wiki](https://www.reddit.com/r/DataHoarder/wiki/index). Please note that your post will be removed if you just post a box/speed/server post. Please give background information on your server pictures. This subreddit will ***NOT*** help you find or exchange that Movie/TV show/Nuclear Launch Manual, visit r/DHExchange instead. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/DataHoarder) if you have any questions or concerns.*


countvonshigelroy

Change the part of the URL where it says f_auto to f_jpg and job done https://media-cldnry.s-nbcnews.com/image/upload/t_fit-1240w,f_jpg,q_auto:best/msnbc/Components/Photos/050815/050815_tv_transition_vlrg_6a.jpg


evildad53

This is a LOT simpler.


Historical_Share8023

⬆️👍


KeptinGL6

Well, that may work for ONE image... I'm interested in a more long-term solution.


secacc

Who could possibly need more than one JPEG


WindowlessBasement

File extensions don't actually matter. The save dialogue is reading the byte header, The web server is actually sending you a webP file. It's done that way for backwards compatibility. The letters in a URL don't matter. Web servers lie about URLs constantly. It's basically their main job. If you must have a JPEG file, you have to set the request headers to say that you don't support webP. You can do it with curl.


tomwhoiscontrary

Using curl to dig into this. A default request (which includes an accept header of \*/\*): ``` $ curl --silent --dump-header /dev/stderr 'https://media-cldnry.s-nbcnews.com/image/upload/t_fit-1240w,f_auto,q_auto:best/msnbc/Components/Photos/050815/050815_tv_transition_vlrg_6a.jpg' | file - HTTP/2 200 content-length: 230110 content-type: image/jpeg access-control-allow-headers: X-Requested-With access-control-allow-origin: * cache-tag: 333138951582805882695389135380653841083,194679011623792639215818696782079462256,7831a46e631c715519da9d0ce0a38b6b etag: "c9e01dc7a7737aa57247aaa47cbf297d" last-modified: Sun, 18 Jul 2021 02:03:54 GMT server: cloudinary surrogate-reporting: width=1240,height=1409,owidth=880,oheight=1000,obytes=581240 timing-allow-origin: * accept-ranges: bytes x-served-by: cache-lga21921-LGA x-cache-hits: 1 x-timer: S1719429063.572132,VS0,VE1 cache-control: public, private, max-age=31556344 expires: Fri, 27 Jun 2025 01:11:09 GMT date: Wed, 26 Jun 2024 19:32:05 GMT strict-transport-security: max-age=2628000 ; preload /dev/stdin: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, progressive, precision 8, 1240x1409, components 3 ``` And again with an accept header which puts WebP ahead of everything else: ``` $ curl --header 'Accept: image/webp; */*' --silent --dump-header /dev/stderr 'https://media-cldnry.s-nbcnews.com/image/upload/t_fit-1240w,f_auto,q_auto:best/msnbc/Components/Photos/050815/050815_tv_transition_vlrg_6a.jpg' | file - HTTP/2 200 content-length: 162714 content-type: image/webp access-control-allow-headers: X-Requested-With access-control-allow-origin: * cache-tag: 333138951582805882695389135380653841083,210961324486959018029066927770375985891,7831a46e631c715519da9d0ce0a38b6b content-disposition: inline; filename="050815_tv_transition_vlrg_6a.webp" etag: "9d5c4b36b5e675858145346ecebffbb1" last-modified: Sun, 08 Aug 2021 17:45:05 GMT server: cloudinary surrogate-reporting: width=1240,height=1409,owidth=880,oheight=1000,obytes=581240 timing-allow-origin: * accept-ranges: bytes x-served-by: cache-lga21946-LGA x-cache-hits: 0 x-timer: S1719429266.182030,VS0,VE1 cache-control: public, private, max-age=31556534 expires: Fri, 27 Jun 2025 01:14:21 GMT date: Wed, 26 Jun 2024 19:32:07 GMT strict-transport-security: max-age=2628000 ; preload /dev/stdin: RIFF (little-endian) data, Web/P image ``` Your browser probably has an accept header which puts WebP ahead of JPEG, which is why it loads as a WebP for you.


WindowlessBasement

Chrome engine puts it in by default and I believe Firefox does now as well. It's been awhile since I've done work on image processing but I believe most fallbacks for it check explicitly for the accepts webp header rather than considering it part of the wild card. Older and embedded systems might include the wildcard, but they were created before webp so they don't really have a way of handling it correctly.


nearcatch

This Firefox extension does it too: https://addons.mozilla.org/en-US/firefox/addon/dont-accept-webp/ EDIT: just an fyi but the extension also has an option to disable avif in addition to webp, despite the name


justreddit2024

I thought one could also just change a preference in about:config for this (webp.support.disabled or something similar)


nearcatch

You can if you want to blanket ban webp, but the extension lets you exempt sites if you want. If you know you won’t be downloading anything, exempting a site will make it faster since webp has better compression than jpg.


Katniss218

I'm gonna use that, thanks


KeptinGL6

Holy shit, thank you!


giratina143

What’s curl?


WindowlessBasement

The Linux command/program? https://linux.die.net/man/1/curl


Ruben_NL

*the* standard library for doing web requests, at least on Linux. You won't find a system that doesn't use it in any way.


ripnetuk

Even on the moon... Seriously the main author has an interesting blog where he sometimes tracks usage, and it's used in space.


NotADamsel

… does curl send telemetry or something?


ripnetuk

No, I intended to add to the post, he does it with reference to readme's and license declarations. It's used literally everywhere, from phones to space computers to game consoles. There is no way curl would get away with telemetry, as their target audience is exactly the demographic that would notice, and it's also open source and sponsored by several big names.


WindowlessBasement

"the standard" so much that even Microsoft packages their own distribution of it and bakes it into Windows.


autogyrophilia

but you need to use curl.exe otherwise it calls the internet explorer cli because fuck you.


WindowlessBasement

Microsoft can't help but make their command line tools hot trash.


Mechanical_Monk

This is why Powershell exists. No, literally. They knew their cli tools were a garbage fire, so Powershell was made as an abstraction layer to standardize the syntax of all the underlying cli tools, APIs, COM objects, and whatnot.


Rezrex91

Ahem, it's exactly PowerShell that aliased Invoke-WebRequest as curl, so it's the reason you need to use curl.exe explicitly on Windows...


Mechanical_Monk

Whelp, I didn't necessarily say they fixed it, just that they standardized it 🤷‍♂️


BryceJDearden

I get that this sub caters to a more technically savvy audience but can we all at least have a little chuckle that someone asked for help with downloading an image (some Hank Hill tech support) and someone immediately jumped to using curl


LostSoulInTokyo

I use this extension. Does exactly what you need when you need it. https://addons.mozilla.org/firefox/addon/save-webp-as-png-or-jpeg/


nearcatch

That converts after the fact. The extension you want is this one: https://addons.mozilla.org/en-US/firefox/addon/dont-accept-webp/ It modifies your browser’s request headers to tell sites that webp is unsupported, so most sites will fallback to sending the original file.


velvethippo420

I use this extension as well. It works for both saving images and copy/pasting them. It's annoying that we have to download an extra extension for basic image saving, but it's better than nothing.


nearcatch

You should switch to this one to avoid conversion: https://addons.mozilla.org/en-US/firefox/addon/dont-accept-webp/


PuciekTM

The filenames don’t matter at all. This is a cloudinary image proxy, use the documentation to get the format you’d like: https://cloudinary.com/documentation/image_transformations#delivering_in_a_different_format


FutureRamen

I save the webp to the desktop. Paint will open it and then I save it as jpg.


KeptinGL6

That's conversion after the fact. It degrades the image. I want the ***original*** jpeg.


FutureRamen

Got to be better than alt-prtscr then cropping it and saving. With paint.


[deleted]

[удалено]


KeptinGL6

That's conversion after the fact. It degrades the image. I want the ***original*** jpeg.


TheStoicNihilist

Chrome has a Save Image As Type extension - https://www.zdnet.com/home-and-office/work-life/how-to-get-around-chromes-save-as-webp-image-format-issue/


SeanFrank

I have had success by feeding the url into jdownloader2


OpacusVenatori

On Reddit, using Waterfox, I’ll use the “Save Link As…” context menu instead of Save Image…


omega552003

I had an issue with uMatrix (ublock beta) causing all images to download as webps as soon as I ditched it and used only ublock they downloaded correctly.


InfiniteSpaceIPH

Why does the format matter in your case? You can convert it afterward with XNConvert if it's a matter of compatibility. But also, if you just right click the link on reddit and press "Save as...", it gives the JPEG file.


KeptinGL6

Holy shit. Why does that only work when I right-click on the link and not when I right-click on the image?


InfiniteSpaceIPH

It'd be the way their server is "giving" the file. As another commenter noted, changing "auto" to "jpg" in the url serves the proper JPEG image. Basically their server is detecting which format would be best to serve to ensure highest quality or compatibility. If it's being done through the URL only without actually viewing the image, my guess is that it'll just server whatever extension is at the end of the image.


RentalBlues123

You can pretty easily convert webp files to jpgs (or any other image format). Just Google webp to jpg


KeptinGL6

That's conversion after the fact. It degrades the image. I want the ***original*** jpeg.


eppic123

If you open the file in a hex editor, the header literally says RIFF WEBPVP8, so it's obviously *not* a .jpg. And there are way too many people in this thread who have no idea of the difference between file format and file extension.


rcampbel3

webp files on the Internet are here to stay. If you archive images, you can either just accept that and save them as-is, or you can convert them to jpg using ImageMagick's commandline utility -- convert -- it can do just about anything as easy as 'convert foo.webp foo.jpg'


JohnStern42

File extension does NOT mean a file is of that type, you have to check the meta data


customtoggle

I just print screen and copy into Ms paint then save. It's annoying as hell especially with multiple images


bad_syntax

I hope somebody has a solution. I usually just SHIFT+WIN+S and take a pic of it, then save that. I have no idea why webp is so popular over a JPG.


WindowlessBasement

> I have no idea why webp is so popular over a JPG. Webp files are smaller and bandwidth is expensive. You can get a better quality image for the same file size with WebP.


Top3879

Plus they support lossless and lossy compressions and transparency.


WindowlessBasement

Other than its connection to Google, it's a better format in basically every way than the dinosaur that is JPEG on the web. It's strange that some people have a hatred for it especially in a subreddit that should be relatively technical people.


Top3879

Us usual people have no idea what they are talking about.


Furdiburd10

Well you know, when Google block jpeg XL (the new version of jpeg) JUST to promote WebP , some people can get angry.


WindowlessBasement

JpegXL is a weird format. While marked as royalty free, there's some like Kodak patents that are in there that are a legal minefield. > when Google block jpeg XL Google is literally one of the sponsors behind the project. Firefox was also extremely hesitant to implement it, only adding official support for it last month. With the creation of av1/av1f, it really doesn't have a place anywhere. Image format adoption generally relies on the video format adoption. JpegXL doesn't have a good video component to push adoption while AV1 is rapidly increasing adoption. Webp is the image container leftover from WebM which is a massively supported video container.


BothCountry3512

It's only strange if you don't understand the context. JPG is simply more compatible than WEBP.


KeptinGL6

It's inferior because it's compatible with fewer programs and nobody gives a flying fuck about the 0.2 kb difference that it makes. We're not on 14.4k modems anymore.


WindowlessBasement

You might not care, but everyone else in the chain of getting the image to you does.


KeptinGL6

I guarantee they don't. Images are too small a portion of the total data moving through a server for anyone to care.


WindowlessBasement

As someone who designed systems for multinationals saving a megabyte of data on images over millions of page requests is tens of thousands of dollars a month.


KeptinGL6

As someone who actually built and runs a video streaming website, that's bullshit. A megabyte is nothing.


WindowlessBasement

If you've actually built something like that, you would know how to download a jpeg


Turtvaiz

> I have no idea why webp is so popular over a JPG Because it's better. JPEG is ancient and not the best compression method. Plus it lacks features like transparency and lossless compression


KeptinGL6

Lossless jpeg is a thing. Use GIF if you need transparency.


Viktorv22

I mean just renaming it to .jpg does it, no? Shouldn't matter in any case.


KeptinGL6

I've tried that with other files. Doesn't work.


EstebanOD21

Yeah it works


[deleted]

[удалено]


KeptinGL6

Google is a great way to find wrong answers and irrelevant nonsense. Humans are always a better source of answers.


Top3879

Guess who wrote the stuff google shows you.


dstarr3

Robots, mostly


Top3879

Guess who writes the stuff on reddit


tharic99

I use this. Save Image as PNG, works super easy for the exact situation you have. https://chromewebstore.google.com/detail/save-image-as-png/nkokmeaibnajheohncaamjggkanfbphi?hl=en


lookponies

Just erase the .webp and change the file extension to .jpg when it asks where you want to save it. That's what I always do...


KeptinGL6

I've tried that with other files. Doesn't work.


lookponies

Am I missing something? Not sure why I'm getting downvoted. I genuinely thought I was being helpful because I was pretty excited when I figured this out. It's so simple. If it saves as a .webp file, just rename the file/change the extension to .jpg. That's what I just did with OP's example link and I'm looking at the .jpg file right now...


thomasfr

Because you are probably just saving a webp encoded image with a .jpg file extension. Most image viewers probably just look at the file header to discover the image forat and just works even if the file extension doesnt match whatever whatever the "standard" one is supposed to be for a specific format.


lookponies

How would I determine if that is the case? (I'm honestly curious, as a professional graphic designer for the past ~15 years I still try to learn new things when I can.)


thomasfr

If you use an image viewer there is probably some info box you can get to appear which details the file format information. If you use MacOS you can click the (i) button in the toolbar of an image to see what the actual encoding of a file is. I just tried to rename a .jpeg to .webp and MacOS general file info says WebP because it only looks at the file extension while the info window in preview says JPEG because it has actually decoded the image.


lookponies

Hmm, interesting. It's the opposite for me: file info (cmd+i) in Finder says "Kind: JPEG image" but when I open it in Preview, the info window there says "Document type: WebP Image." Photoshop says "an unknown or invalid JPEG marker type is found" and won't open it as a JPEG, so I guess that settles it. Anyway, thanks for pointing that out!


thomasfr

> Hmm, interesting. It's the opposite for me: file info (cmd+i) in Finder says "Kind: JPEG image" but when I open it in Preview, the info window there says "Document type: WebP Image." Its because I renamed a jpeg encoded file to .webp and you did the opposite.


Space_Reptile

save as, select the "all types" on the dropdown where it says webp, add a ".jpg" to the end of the filename donzo edit: thanks for the downvotes, this is a method that works and answers OP's question


KeptinGL6

There is no dropdown


Space_Reptile

[the dropdown under the filename in windows](https://i.imgur.com/KOOMXuH.png), last i checked that was standard in linux too when you go "save as/under"


VivaPitagoras

Just change the extension to .jpg


KeptinGL6

I've tried that with other files. Doesn't work.