Especially when they use websites like Reddit which allows for unlimited space for photos.

  • cally [he/they]@pawb.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 hour ago

    I use JPEG with 90% to 95% quality and it gets similar results to a PNG while occupying way less space usually. I wouldn’t use it if I was uploading to Reddit though.

  • Tattorack@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    Jpegs can make images with very small sizes that aren’t noticeably worse in quality (unless you go to incredibly low compression).

    They’re good for uploading as a final image when there’s no transparency necessary.

    Obviously, you don’t want to be working with jpegs if you’re an artist and still in the process of making the final image.

  • brucethemoose@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    6 hours ago

    The real answer is because it’s default.

    People use what’s the default. It’s that simple. Any knowledge of how images are encoded is kind of unnecessary information for most folks.

    There are a ton of technical and usage-based arguments around image formats, and political complications, but ultimately jpeg’s eternal dominance comes down to people using their app defaults, and wanting stuff to just work. And PNGs are big enough to create technical issues or incompatibilities, sometimes.

  • 31ank@ani.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    10 hours ago

    Use png when your image has sharp corners (text, graphics, etc.). Use jpg for photos etc…

    They are two different formats made for different purposes. (You will get the block-artifacts in jpg when using sharp corners and high compression, using png for camera-pictures will create large files).

    Or use a modern format like webp or jpgxl, but some devices don’t support these formats so most things online are still jpg/png.

    And if you have a vector image instead of raster use svg

  • chunes@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    18 hours ago

    jpg gets a bad rap because people don’t bother to adjust the compression. For most images, you can get it looking great and for not much space.

  • fodor@lemmy.zip
    link
    fedilink
    arrow-up
    5
    ·
    22 hours ago

    Other great technical answers here. Also, practicality. My phone and camera take JPGs. So why waste time converting?

  • Hetare King@piefed.social
    link
    fedilink
    English
    arrow-up
    84
    ·
    2 days ago

    PNG does not compress photos very well. A photo that is 5 MB when saved as a high-quality JPEG may very well be at least 15 MB as a PNG. Also, a lot of cameras (phone or otherwise) save to JPEG by default.

    I do wish more people would use PNG where it makes sense, though. The other day I made an edit to an image containing line art that was purely black and white except for the compression artifacts. I applied a threshold so that all the artifacts became either perfectly black or white and saved it as a monochrome PNG, reducing the file size to less than a third, while containing more information and having a cleaner image. I later remembered that I could reduce the file size even more by using indexed colours. In other words, whoever originally saved it in a lossy format actually made it take up more space than needed while also needlessly reducing image quality.

  • lime!@feddit.nu
    link
    fedilink
    arrow-up
    53
    ·
    2 days ago

    png is not designed for photos, it compresses graphics buch better. jpeg is the opposite.

  • TrickDacy@lemmy.world
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    1 day ago

    You seem to realize that pngs are larger. Are you convinced that web performance doesn’t matter? Just because you technically can use a larger image doesn’t make it a good idea. If the web were all png and no jpgs every site and app would literally be something like twice as slow. Sounds like a bad time to me. Studies have shown in e-commerce settings even a couple hundred milliseconds in load time can have significant impacts on sales.

  • IphtashuFitz@lemmy.world
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    edit-2
    1 day ago

    My employer uses Akamai as a CDN (and security) provider for their websites. Akamai has an optional tool called Image and Video Manager that, in a nutshell, optimizes images for better site performance.

    Basically you put a high quality image on your website, and when Akamai retrieves it the first time it optimizes its color palette, compression, size, and format for multiple devices. Each derivative image is cached by Akamai for 30 days at a minimum.

    So while you may put a 1000x1000 JPG with a quality of 95%, an Android user may be served a 200x200 image with 80% quality, and it may be a WEBP or PNG format instead of JPG. Exactly which derivative image is served is based on criteria like the web browser being used, the viewport size, etc.

  • Libb@piefed.social
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 day ago

    Jpeg offers better (albeit destructive) compression, can store photographic metadata (IPTC and so on). It’s also very widely popular.

    On my blog, I use neither JPEG or PNG as I want the best compression I can. I use AVIF, even though it’s a video file format it works great with still images (it’s even better than webp) and it’s supported by all modern browsers. Edit: I should point out that I don’t share much photos either, I’ve quit doing photography many, many years ago.

  • Mighty@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    For me it’s simply routine. If I have pictures that I want in high quality without compression, I have tiff or raw, but jpeg is usually enough to save images without using much space and still having the colour profile embedded.

    • RockBottom@feddit.org
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      2 days ago

      A physically huge JPG with very low quality is smaller than a PNG in file size and looks just as good in the browser.

      • Mighty@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        2 days ago

        Huh look at that. I guess you tell me why I still use jpeg xD Compatibility? Print?

        I’m just old and use PNG only to preserve transparency in images

  • Treczoks@lemmy.world
    link
    fedilink
    arrow-up
    5
    arrow-down
    2
    ·
    1 day ago

    There are photos, where JPG is way better. On the other hand, I often use SVG for drawings, it simply scales way better. PNG is somewhere in the middle.

      • Treczoks@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        2
        ·
        1 day ago

        It is better for rasterized images that are not photos. In most cases, SVG is better for drawings as such. As in “don’t even start this raszerizing shit”.