Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
flamingos-cant (hopepunk arc) ( flamingos@feddit.uk )  to 196@lemmy.blahaj.zoneEnglish · 1 year ago

PNG rule

files.catbox.moe

message-square
40
link
fedilink
536

PNG rule

files.catbox.moe

flamingos-cant (hopepunk arc) ( flamingos@feddit.uk )  to 196@lemmy.blahaj.zoneEnglish · 1 year ago
message-square
40
link
fedilink
alert-triangle
You must log in or register to comment.
  • Salvo ( Salvo@aussie.zone ) 
    link
    fedilink
    English
    arrow-up
    86
    ·
    1 year ago

    Well Akshually.

    Misconfigured MIME types on certain old web servers would display the raw data of any file.

    I had an Executive who wanted to watch a Video from some “Motivational Speaker” (scam artist) on her iPad. The Scam Artist (Motivational Speaker) had it wrapped in a Flash Applet and when she contacted them about not being able to watch the video, he started soap boxing about how terrible iPhones and iPads were and that Apple is Doomed.

    I checked the website and found that the MP4 file had the MIME type Octet/Stream instead of Video/MPEG4 and I created a dummy xHTML page with the appropriate tags.

    The video worked perfectly on her iPad and her husband went on to watch the video, believed the “Motivational Speaker” and was fleeced for thousands of dollars.

    • lowspeedchase ( lowspeedchase@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      89
      ·
      1 year ago

      flash

      applet

      xHTML

      • Owljfien ( Owljfien@piefed.world ) 
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 year ago

        I wish I’d not heard xHTML in a long time

      • sem ( sem@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        • lowspeedchase ( lowspeedchase@lemmy.dbzer0.com ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

    • riquisimo ( riquisimo@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      13
      ·
      1 year ago

      Have you ever considered a job as a scam artist? They need people like you! You could be making thousands of dollars from home! First you need to be desperate, then you need to work for free…

  • irelephant ( irelephant@anarchist.nexus ) deleted by creator
    link
    fedilink
    English
    arrow-up
    69
    ·
    edit-2
    2 months ago

    deleted by creator

  • summoner ( summoner@piefed.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    64
    ·
    1 year ago

    Literally, I’ve had this happen on Fandom.com where I try to copy/save an image from a direct link that ends in “.png”, but realize it was a fake PNG when I try to upload it. It’s so annoying, IDK what the deal with all of these new image types is.

    • Echo Dot ( echodot@feddit.uk ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      IDK what the deal with all of these new image types is

      Well the reason is that all the old image files weren’t designed for the modern web (some of them have been around since the 1960s) so these new image formats have been developed that compress more readily, and have additional features.

      I don’t know the exact details but an example is that a lot of social media sites strip metadata from images because it takes up space, so some of these new formats have more compressed metadata so that’s no longer needed.

      • Fushuan [he/him] ( fushuan@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        12
        ·
        1 year ago

        The issue at hand is not that, it’s that even when you use an Uri into an image you get a webpage. Reddit does this, for example.

    • A Wild Mimic appears! ( a_wild_mimic_appears@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      https://getindie.wiki/ -> a plugin that helps avoiding fandom.com as much as possible. Don’t give those leeches any visit if you can help it, their behavior towards the people creating their content is atrocious.

  • Eiri ( Eiri@lemmy.ca ) 
    link
    fedilink
    English
    arrow-up
    29
    ·
    1 year ago

    I’m scared. What… What else could it do than serve a png image?

    • threeonefour ( threeonefour@piefed.ca ) 
      link
      fedilink
      English
      arrow-up
      41
      ·
      1 year ago

      This is what you get when you request a ‘.jpg’ url from Reddit. It’s a webpage and not just the image.

      • yoriaiko ( yoriaiko@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        5
        ·
        1 year ago

        best if You try to zoom-in on reddit pic, coz some uploaded fancy detailed map in 16k, and it is auto-shrinked to Your 2k monitor xD

        fcuk reddit, go old.reddit instead, style may be different, notifications may require new settings, but they open images as images, and this one deals with ads much better too, and have few other fancy stuff too.

        • JoJo ( jojo@beehaw.org ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Except for image galleries; those are only available on new Reddit, and have all the same issues

          • yoriaiko ( yoriaiko@lemmy.blahaj.zone ) 
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Do You mean when single post contains many pics? I can browse them all on old too, there are small text buttons for previous and next, above pic.

            Agree, You cannot make a post with more than single pic on old, text input field have only manual code input, instead panel with icons… It’s like using linux instead mac ;d

      • unexposedhazard ( unexposedhazard@discuss.tchncs.de ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        There are a couple lines of ublock blocklist code you can add to fix this for reddit btw. Let me know if you want it.

    • brionnawolf ( brionnawolf@lemmy.blahaj.zone ) 
      link
      fedilink
      English
      arrow-up
      35
      ·
      1 year ago

      i’m sorry if your question was rhetorical (but in case anybody is curious) : some sites do some fancy routing and prevent you from loading the raw file, instead it loads an HTML page with all the desired ads, cookies, and other trackers for the site in question. This method also often circumvents your ability to “open the image in a new tab”, or “download the linked file” directly. I’ve seen this most often on sites that serve GIFs (so if your messaging app’s gif search functionality fails you, and you go looking online for something better you, you’re “forced” to share a link to a site that your friend has to visit instead of the gif you were intending to share)

    • Godort ( Godort@lemmy.ca ) 
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      Redirect you internally to the main page so that people have a harder time linking the relevant info and they have to load the whole page with all the ads/paywalls

    • Frezik ( frezik@lemmy.blahaj.zone ) 
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Literally anything.

      Files extensions are an old DOS thing that’s still in Windows. Unix-derived stuff never really cared, at least not in the same way.

      What actually matters is the MIME type set in the HTTP headers, which is “image/png” for png. Traditionally, the file extension is mapped to a MIME type, because that makes things easy for everyone, but nothing says it has to be that way.

      • flamingos-cant (hopepunk arc) ( flamingos@feddit.uk ) OP
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        The HTTP headers can be wrong, the only definitive way to determine a file’s content type is to read it. This is why you can stick an image that has a mime type header of application/octet-stream in an img tag and it’ll mostly work. Most binary formats will have some kind of magic number at the start to help determine it.

        • Frezik ( frezik@lemmy.blahaj.zone ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Which is bad and wrong. Postel’s law has been considered a bad idea by Postel himself for a while. We shouldn’t let such fuzziness go through.

          • flamingos-cant (hopepunk arc) ( flamingos@feddit.uk ) OP
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Meh, you shouldn’t need a sophisticated understanding of file formats and web server configuration to make a website, so some slack is imo a good thing. Maybe not as much as there is, but reading the head of an image file doesn’t seem that big a deal.

            • Frezik ( frezik@lemmy.blahaj.zone ) 
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              The unsophisticated solution is to map the file extension to the MIME type, which is done by default much of the time. If you do anything else, then we need to have a conversation about how.

  • jaybone ( jaybone@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 year ago

    There’s the Christmas spirit.

  • chocosoldier ( chocosoldier@lemmy.blahaj.zone ) deleted by creator
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    11 months ago

    deleted by creator

    • ChaoticNeutralCzech ( ChaoticNeutralCzech@feddit.org ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      …and its namesake

      • sem ( sem@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Gur = the in the Caesar cypher?

        • ChaoticNeutralCzech ( ChaoticNeutralCzech@feddit.org ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Image URL

          • sem ( sem@lemmy.blahaj.zone ) 
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Oh yeah I guess that was the Tumblr era of removing vowels from things

  • GTG3000 ( GTG3000@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    Man, remember when trying to share a link to an image from a site would give you a super tiny “no hotlinking” gif?

  • underscores ( underscores@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    Sorry but developers rarely get to make these decisions.

    • Venia Silente ( veniasilente@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      They literally code the page. So long as they are working on it, they get the final say on what goes in.

      • kibiz0r ( kibiz0r@midwest.social ) 
        link
        fedilink
        English
        arrow-up
        10
        ·
        1 year ago

        I hope you’re not serious

      • vala ( vala@lemmy.dbzer0.com ) 
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 year ago

        Hahaha oh man. No.

        • Venia Silente ( veniasilente@lemmy.dbzer0.com ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Yep.

          It’s true you can get replaced with another developer, but it’s still the role that codes what goes into the page. Or what, do you think a “one month womb” project manager let alone a CEO can do that?

          • vala ( vala@lemmy.dbzer0.com ) 
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 year ago

            Ultimately the stakeholders make the final call that’s always how it goes in the real world.

            If they get some idea that people are “stealing pictures” from the site this is what they will want. They didn’t reason themselves into that position a Dev can’t reason them out.

            I’ve actually had stakeholders say we shouldn’t use JavaScript because people can see and steal our code by opening dev tools. Thankfully that was shot down but this is totally real.

            • Venia Silente ( veniasilente@lemmy.dbzer0.com ) 
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              I’ve actually had stakeholders say we shouldn’t use JavaScript

              Please give me those shareholders, they sound like at least somewhat sensible people.

              • vala ( vala@lemmy.dbzer0.com ) 
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                Please tell us what other language you plan to use to power your front-end web app?

      • Honytawk ( Honytawk@feddit.nl ) 
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        True, just like how a cashier also gets the final say in what kinds of products are sold in the store.

        /s

    • ByteOnBikes ( bytesonbike@discuss.online ) 
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Yep. Imagine blaming cashiers because something is weird about the store layout.

      Or blaming the server because the restaurant seating is uncomfortable.

  • unalivejoy ( joyjoy@lemmy.zip ) 
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Add Accept: image/* to your headers.

196@lemmy.blahaj.zone

onehundredninetysix@lemmy.blahaj.zone

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !onehundredninetysix@lemmy.blahaj.zone

Community Rules

You must post before you leave

Be nice. Assume others have good intent (within reason).

Block or ignore posts, comments, and users that irritate you in some way rather than engaging. Report if they are actually breaking community rules.

Use content warnings and/or mark as NSFW when appropriate. Most posts with content warnings likely need to be marked NSFW.

Most 196 posts are memes, shitposts, cute images, or even just recent things that happened, etc. There is no real theme, but try to avoid posts that are very inflammatory, offensive, very low quality, or very “off topic”.

Bigotry is not allowed, this includes (but is not limited to): Homophobia, Transphobia, Racism, Sexism, Abelism, Classism, or discrimination based on things like Ethnicity, Nationality, Language, or Religion.

Avoid shilling for corporations, posting advertisements, or promoting exploitation of workers.

Proselytization, support, or defense of authoritarianism is not welcome. This includes but is not limited to: imperialism, nationalism, genocide denial, ethnic or racial supremacy, fascism, Nazism, Marxism-Leninism, Maoism, etc.

Avoid AI generated content.

Avoid misinformation.

Avoid incomprehensible posts.

No threats or personal attacks.

No spam.

Moderator Guidelines

Moderator Guidelines

  • Don’t be mean to users. Be gentle or neutral.
  • Most moderator actions which have a modlog message should include your username.
  • When in doubt about whether or not a user is problematic, send them a DM.
  • Don’t waste time debating/arguing with problematic users.
  • Assume the best, but don’t tolerate sealioning/just asking questions/concern trolling.
  • Ask another mod to take over cases you struggle with, if you get tired, or when things get personal.
  • Ask the other mods for advice when things get complicated.
  • Share everything you do in the mod matrix, both so several mods aren’t unknowingly handling the same issues, but also so you can receive feedback on what you intend to do.
  • Don’t rush mod actions. If a case doesn’t need to be handled right away, consider taking a short break before getting to it. This is to say, cool down and make room for feedback.
  • Don’t perform too much moderation in the comments, except if you want a verdict to be public or to ask people to dial a convo down/stop. Single comment warnings are okay.
  • Send users concise DMs about verdicts about them, such as bans etc, except in cases where it is clear we don’t want them at all, such as obvious transphobes. No need to notify someone they haven’t been banned of course.
  • Explain to a user why their behavior is problematic and how it is distressing others rather than engage with whatever they are saying. Ask them to avoid this in the future and send them packing if they do not comply.
  • First warn users, then temp ban them, then finally perma ban them when they break the rules or act inappropriately. Skip steps if necessary.
  • Use neutral statements like “this statement can be considered transphobic” rather than “you are being transphobic”.
  • No large decisions or actions without community input (polls or meta posts f.ex.).
  • Large internal decisions (such as ousting a mod) might require a vote, needing more than 50% of the votes to pass. Also consider asking the community for feedback.
  • Remember you are a voluntary moderator. You don’t get paid. Take a break when you need one. Perhaps ask another moderator to step in if necessary.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.06K users / day
  • 3.23K users / week
  • 5.63K users / month
  • 9.78K users / 6 months
  • 97 local subscribers
  • 7.23K subscribers
  • 9.82K Posts
  • 78K Comments
  • Modlog
  • mods:
  • SoleInvictus ( SoleInvictus@lemmy.blahaj.zone ) 
  • Jorunn (she/her) ( will_steal_your_username@lemmy.blahaj.zone ) 
  • 🏳️‍⚧️MiaCD🏳️‍⚧️ ( TheCoolerMia@lemmy.blahaj.zone ) 
  • Jo Miran ( JoMiran@lemmy.ml ) 
  • TotallynotJessica ( TotallynotJessica@lemmy.blahaj.zone ) 
  • erotador ( erotador@lemmy.blahaj.zone ) 
  • Arkhive (they/she) ( Arkhive@lemmy.blahaj.zone ) 
  • Bad Jojo ( BadJojo@lemmy.blahaj.zone ) 
  • rockSlayer ( rockSlayer@lemmy.blahaj.zone ) 
  • Jorunn (she/her) ( WillStealYourUsername@piefed.blahaj.zone ) 
  • BE: 0.19.21
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code