this post was submitted on 20 Jun 2023
9 points (100.0% liked)

Café

18 readers
1 users here now

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.

founded 1 year ago
MODERATORS
 

Joke of the day

I'm a big fan of whiteboards. I find them quite re-markable.

you are viewing a single comment's thread
view the rest of the comments
[–] Naomikho@monyet.cc 2 points 1 year ago (2 children)

Interesting... thanks for the information! Please let me use your post as reference while opening the ticket Previously it seems like it could the auto orient issue, as the ansible-playbook is using asonix/pictrs:0.3.1 but Lemmy's dependency for pict-rs is written as pict-rs = { version = "0.4.0-rc.3", optional = true } :/ I'm not exactly sure what's going on here

[–] zen@monyet.cc 1 points 1 year ago (1 children)

if you are referring to https://github.com/LemmyNet/lemmy/blob/0.18.0-rc.4/Cargo.toml#L140 then it most likely has something to do with lemmy having its own embedded pict-rs, which is at version 0.4.0; whereas the ansible-playbook is still using an external pict-rs 0.3.1, maybe due to some issues with the 0.3 to 0.4 migration

to check if lemmy is using its embedded pict-rs, I think you can see if lemmy was started with the --features embed-pictrs command line option

[–] Naomikho@monyet.cc 1 points 1 year ago

Oh... that'll probably be in the docker container log. I'm not sure if I can dig back that far... probably not :(

Yep aarrrrrghhhh it's at when the container is initialized. Too late T_T Maybe I can tell if I manage to start a separate instance, but I'm not sure if there's enough hardware resources on my side to try. But I'll open the ticket first regardless based on Crabby's findings

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago* (last edited 1 year ago) (2 children)

I hope i can understand what that line mean so i can help you further but alas, i'm just a car mechanic 😂

But i have a feeling that it's because of height limit, the top picture in portrait mode is 2250x4000 while the bottom one is 1080x1985. Maybe it exceed the height limit so it turn to portrait mode?

Edit: Okay i tested using a picture with height = 3965 and it displayed portrait, so maybe the height limit is 4k?

[–] Naomikho@monyet.cc 1 points 1 year ago (2 children)

Ooh... good find! I think you'll make a good tester lol 😝I never thought about finding the height limit, but yeah that's a really good find. In quality assurance there's a lot of boundary testing done ~~and I guess they didn't do that~~

Now I can post the issue

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago (1 children)

Okay i'm not entirely sure if it's the height issue now, i've transfer a picture taken from my camera and then open it up with graphic gale(editing software), the thing turn landscape :/

[–] Naomikho@monyet.cc 1 points 1 year ago (1 children)

huh... that's weird. but at least the 4000px height rule applies from images on your mobile right?

[–] Annoyed_Crabby@monyet.cc 2 points 1 year ago* (last edited 1 year ago) (2 children)

Initially i thought so too because i simply resized it just a tiny bit to test the theory, thought it could be it but now i learned it might not be the case, and could be the camera app issue, some encoding of sort idk. Lets take this two pic for example:

This is the original, unedited. It rotated

This is the edited but without resize, it didn't rotated

Both image is same sized, both displayed in my phone gallery as portrait. So it could be...something. I haven't tried using ~~other camera app~~ or another phone tho.

edit: tried using pro cam x lite and it also get rotated :\

[–] frieslovingvampire@monyet.cc 1 points 1 year ago (1 children)
[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago

Haha, that's her punishment for playing with tissue roll >:)

[–] Naomikho@monyet.cc 1 points 1 year ago (1 children)

it's ok at least we have some progress!

Quoted fromDivephotoguide : defining Landscape vs. Portrait Orientation

Unless your images are cropped or captured as a square—i.e., equal dimensions on all sides—they belong to two categories of orientation: landscape or portrait. The length of the longest side determines the orientation. For example, if the height of the image is longer than the width, it is a “portrait” format. Images where the width is longer are called “landscape.”

I think it's related to this? ~~Damn it I never realized this despite studying multimedia in final year... (we did study image transformations)~~

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago* (last edited 1 year ago) (1 children)

But the one that get rotated have the same dimension though, that's what confused me. I checked the detail of both file, other than dpi difference, both have the same data.

the left one is edited

[–] Naomikho@monyet.cc 1 points 1 year ago (1 children)

hmm... any way I can access these image files directly? it doesn't make sense anymore

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago (1 children)

Hmm, i could send it to you, but i think you could also make it yourself and i bet the result will still be the same since it shouldn't be unique to my phone. Just took a photo in portrait and tried upload it here, then click preview(result will be the same as reply)

Maybe it's the lemmy dev's way to protest against portrait mode 😂

[–] Naomikho@monyet.cc 1 points 1 year ago* (last edited 1 year ago) (2 children)

hmm alright lemme go get some pics and try later

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago

Thanks for the work!

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago (2 children)
[–] Naomikho@monyet.cc 1 points 1 year ago* (last edited 1 year ago) (2 children)

Yep, the metadata got screwed up! This is the image you sent, and...

Maybe you could post the original image under that ticket too? plus what I sent in this comment(basically, the result that occured - the height and weight in the exif data terbalik) :D case closed? how it occurred is another mystery tho

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago (1 children)

Nice, hahaha

Do you mind submit it? I don't have a github account 👉👈

[–] Naomikho@monyet.cc 1 points 1 year ago (1 children)

I can, but do you have the original image with the correct orientation? 🙏because the one I have is already corrupted

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago (1 children)

Sure! How do i send you without messing it up?

[–] Naomikho@monyet.cc 1 points 1 year ago (1 children)

hmm... I think google drive shouldn't mess it up. In my case I tried grabbing an image from my google photos and it seems fine

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago

Sending you now

[–] Naomikho@monyet.cc 1 points 1 year ago

@Annoyed_Crabby@monyet.cc pinging jic you miss it, thanks for the work o7

[–] Naomikho@monyet.cc 1 points 1 year ago

Oh... I was looking at the other repository (the server one) so I missed this. They're right though, it's probably the metadata. Time to play around a bit.

[–] Annoyed_Crabby@monyet.cc 1 points 1 year ago

gimme a sec i'm still testing haha

load more comments (1 replies)