WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

715

(post is archived)

[–] 1 pt (edited )

Doesn't work correctly yet: https://poal.co/s/Politics/222935

Resolution's correct but the file size is "189.38 KB" not 31 Byte.

PS: A welcome change overall. Maybe there should be a threshold above which its inserted? Take this very HTML page for example. 72 KB. The resources are another 560 KB. At the very least it doesn't make sense to show it for images under 70-100 KB (edit: although the lack of the size might leave the user puzzled... OK, don't add a threshold).

I see you sorta added resolution for the sake of it, but is it really a needed or interesting information?

[–] 1 pt

Replying to your edit:

At the very least it doesn't make sense to show it for images under 70-100 KB.

That's a fair point. We might consider a threshold then.

I see you sorta added resolution for the sake of it, but is it really a needed or interesting information?

It's a new feature, so if some users don't like it much, we might reduce it like the (domain) information next to link post titles.

[–] 1 pt

Doesn't work correctly yet

Works correctly with non-corrupt metadata from jpg.

The image isn't downloaded, only the metadata are.

[–] 1 pt (edited )

I updated my comment with thoughts. Please check it out.

Oh, I didn't know JPEG had this in metadata. Anyway you don't need to download anything, just poke at it with a HEAD request:

curl -sI https://s01.geekpic.net/di-CF3ZOA.png | grep content-length

Output: content-length: 193925

PS: Maybe the HTTP spec requires 'Content-Length' - pay attention to case-sensitivity

[–] 0 pt

The problem with that command is that you have to download the image in its entirety to get its size.

Also poal uses python and JS only.

The code poal uses downloads the header only.

[–] 1 pt

Awesome. I like it.

[–] 1 pt

This is just annoying.

[–] 1 pt

If it annoys you, that means it’s alright 😉

[–] 1 pt

no u

[–] 1 pt

You better get your ass on the chat when @pmyb2 is done updating it.

Pauline has a few things to talk with you.

[–] 1 pt

Do we have a lot of users w/ slow connections? Seems like it's only a feature someone w/ a slow feature would enjoy. Thank you either way for all the cool improvements you make to the site. I guess it could be a security thing if the file is abnormally large but that could just be blocked.

[–] 4 pts

Might be useful for mobile users.

Sometimes the expando can take a decent amount of time before showing an image if it's several megabytes.

It's good to know in advance how big something is before you are about to load it.

I guess it could be a security thing if the file is abnormally large but that could just be blocked.

It would eventually time out.

[–] 1 pt

Well... that makes perfect sense. I never even consider mobile access unless a project requires it, people forever on smart phones is a pet peeve of mine even though I'm guilty as well but just generally read books on it. I've got a bad enough media addiction, and don't need to exacerbate it further.

[–] 0 pt

Hey AOU, I think there's a middle ground to keep everyone happy (except you because additional functionality server-side): make titles "modular."

This way their appearance can either be altered server-side (user settings) or titles can have HTML-tags as delimiters inside them, to allow people the use of custom CSS. Example:

<a href="https://pic8.co/sh/bNv0TA.png" class="title" id="title">Does GAB turn into a Christian site? [640x360 - 31.0B]</a>

Turns to:

<a href="https://pic8.co/sh/bNv0TA.png" class="title" id="title">Does GAB turn into a Christian site? <poaltitlemeta>[<poalimageres>640x360</poalimageres> - <poalimagesize>31.0B</poalimagesize>]</poaltitlemeta></a>

[–] 1 pt

Thanks for the suggestion, please submit it in /s/ideasforpoal

[–] 1 pt

Thanks for your patience with me :) Posted with better explanations for normies... I mean non-techies https://poal.co/s/IdeasForPoal/250706