Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
imaginelizard ( imaginelizard@monyet.cc ) M to Café@monyet.cc · 3 years ago

/c/café daily chat thread for 20 June 2023

message-square
message-square
145
link
fedilink
6
message-square

/c/café daily chat thread for 20 June 2023

imaginelizard ( imaginelizard@monyet.cc ) M to Café@monyet.cc · 3 years ago
message-square
145
link
fedilink
  • Annoyed_🦀  ( Annoyed_Crabby@monyet.cc ) 
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    Haha, yeah it auto landscape for portrait picture, dunno why.

    @dcx@monyet.cc is there a reason this happened? Or is it just lemmy jank?

    uwu hi fluffy

    • Naomikho ( Naomikho@monyet.cc ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Update: I found this issue on magick’s github repo, but I can’t find something similar so maybe it’s missing a pictrs config, or pict-rs itself is having issues by maybe… not supporting -add-orient. :( Pict-rs is a rust service, so it’ll probably be harder for me to dig into that as I’m not familiar with it…

      I’ll probably create a ticket for when I have time, need to finish up some IRL stuff and head to bed soon. Or if anyone wants to create the ticket also can

      • Annoyed_🦀  ( Annoyed_Crabby@monyet.cc ) 
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        Ahh, interesting. Thanks for the work!

      • zen ( zen@monyet.cc ) 
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        if anyone is familiar with rust (I am not), this should be the relevant code: https://git.asonix.dog/asonix/pict-rs/src/branch/v0.3.x/src/magick.rs (linking to the v0.3.x branch because that’s what lemmy-ansible uses).

        perhaps if we really want to dig into this issue, it could start with either preventing pict-rs from auto-converting to webp, or upgrading pict-rs to the latest 0.4.0?

        • Naomikho ( Naomikho@monyet.cc ) 
          link
          fedilink
          arrow-up
          1
          ·
          3 years ago

          I’m not sure if all images are stored as webp, because when I viewed the image in element inspector it showed up as jpeg(it either happens to all image extensions or images are stored on webp but converted to jpeg when displaying).

          Thanks for sending the link, I didn’t manage to find this last night D: will take a look after work… I hope today no need to OT

          • zen ( zen@monyet.cc ) 
            link
            fedilink
            arrow-up
            1
            ·
            3 years ago

            just saw that the latest 0.4.0 uses -auto-orient: https://git.asonix.dog/asonix/pict-rs/src/tag/v0.4.0-rc.6/src/magick.rs#L126

            • Naomikho ( Naomikho@monyet.cc ) 
              link
              fedilink
              arrow-up
              1
              ·
              3 years ago

              Oh… So it really is the auto orient then! Thanks for your help, I’ll post a GitHub issue later on Lemmy’s repo later(maybe the Ansible one since that’s where the version is defined?) if no one else has done it yet.

    • Naomikho ( Naomikho@monyet.cc ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      I can’t find related issues on GitHub, but it should be Lemmy’s behaviour. I don’t think dcx made any modifications to the source code, only deployed it using the provided Ansible script.

      • Annoyed_🦀  ( Annoyed_Crabby@monyet.cc ) 
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        Yeah, i tried posting portrait on lemmy.world and it auto landscape it too. So it’s lemmy jank

        • Naomikho ( Naomikho@monyet.cc ) 
          link
          fedilink
          arrow-up
          1
          ·
          3 years ago

          I haven’t read much of the source code(need some time to figure things out), but I hope I’ll find something eventually 🥹

          • Annoyed_🦀  ( Annoyed_Crabby@monyet.cc ) 
            link
            fedilink
            arrow-up
            1
            ·
            3 years ago

            Ohh man, thanks for the work!

            • Naomikho ( Naomikho@monyet.cc ) 
              link
              fedilink
              arrow-up
              1
              ·
              3 years ago

              We can open a GitHub issue on their repository too, but I’m not sure which part is causing the issue(the UI or the image storing) as I’m not home rn. I’d figure it would be better if I can at least figure out where the issue came from before reporting it

              • zen ( zen@monyet.cc ) 
                link
                fedilink
                arrow-up
                1
                ·
                3 years ago

                dont know if this is of any help, but from the docs I read, it seems lemmy is using pict-rs for image hosting, and pict-rs uses imagemagick.

                since you mentioned the Ansible script, I took a look at its repo, and perhaps dcx may also want to watch out for this issue: https://github.com/LemmyNet/lemmy-ansible/issues/87

                • Naomikho ( Naomikho@monyet.cc ) 
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  3 years ago

                  Oh no, not the log files nightmare :( this shit was haunting even my company lol because we started adding new tools But that part can be modified in the deployment script I think… I’ll take a look at the deployment scripts later.

                  Thanks, I’ll take a look at imagemagick too. I saw pict-rs yesterday but I haven’t looked up what’s that

    • dcx ( dcx@monyet.cc ) 
      link
      fedilink
      arrow-up
      1
      ·
      3 years ago

      Lemmy jank. These kinds of things will be fixed over time! Reddit was real janky when it first started too!

Café@monyet.cc

cafe@monyet.cc

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: !cafe@monyet.cc

Welcome to our virtual third place, The Café.

Come on in and make a new human connection over a cup of coffee (or Teh Tarik). This is a casual community, do whatever you want, share your oyen pics, your frustrations, and even organize a weekend picnic with the community. The world is your oyster.

Rules are simple, be kind and civil with each other. As with any other café, rude patrons will be kicked out.

Visibility: Public
globe

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

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 18 local subscribers
  • 819 subscribers
  • 413 Posts
  • 4.89K Comments
  • Modlog
  • mods:
  • imaginelizard ( imaginelizard@monyet.cc ) 
  • jellodi ( hyattpotter@monyet.cc ) 
  • Blahaj ( MonyetBot@monyet.cc ) 
  • Orangutan🦧 ( MonyetAdmin@monyet.cc ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code