Register - Login
Views: 95495634
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
10-23-18 06:32:36 AM

Jul - Meta - Nearest neighbor upscaling? New poll - New thread - New reply
Next newer thread | Next older thread
JosJuice
Random nobody
Level: 3


Posts: 3/4
EXP: 89
For next: 39

Since: 06-21-18

Pronouns: she/they
From: Sweden

Since last post: 122 days
Last activity: 102 days

Posted on 06-21-18 11:23:58 AM Link | Quote
I noticed that the base CSS file for the forums tells the browser to use nearest neighbor upscaling for images. Is there any particular reason for that? I'm using a laptop with an 1080p screen set to 125% DPI scaling, and images look pretty bad when upscaled to 125% using nearest neighbor... But maybe there's a reason that the CSS is set up that way that I haven't realized.
Ketsuban

Level: 4


Posts: 3/3
EXP: 212
For next: 67

Since: 04-01-14

Pronouns: he/him

Since last post: 123 days
Last activity: 20 hours

Posted on 06-21-18 12:00:18 PM Link | Quote
At a guess: given the close association of Jul with TCRF there's going to be a higher-than-baseline amount of pixel art being posted, and if you think things look bad when upscaled using nearest-neighbour interpolation you've not seen the horrors wrought on pixel art by bilinear or bicubic interpolation. (And don't get me started on "pixel-art" algorithms like hq4x...)
devin

King Bowser Koopa
i'm mima irl
Level: 106


Posts: 3448/3465
EXP: 12620502
For next: 51441

Since: 04-29-08

Pronouns: any
From: FL

Since last post: 9 hours
Last activity: 9 hours

Posted on 06-21-18 12:05:34 PM Link | Quote
Originally posted by Ketsuban
At a guess: given the close association of Jul with TCRF there's going to be a higher-than-baseline amount of pixel art being posted, and if you think things look bad when upscaled using nearest-neighbour interpolation you've not seen the horrors wrought on pixel art by bilinear or bicubic interpolation. (And don't get me started on "pixel-art" algorithms like hq4x...)

Bingo. Of course, obviously it wasn't designed with DPI scaling in mind...

I know CSS has some ways to deal with DPI values but I'm not sure if it means there's a good solution here. Normally AFAIK it's meant more for Apple's retina displays and stuff like that.
Elemi
360
Nobody
Level: 39


Posts: 342/367
EXP: 388059
For next: 16712

Since: 06-20-10

From: Hell

Since last post: 33 days
Last activity: 24 days

Posted on 06-22-18 04:19:00 PM Link | Quote
The NN scaling looks good on forum images like avatars and minipics, but it could look better!

Jul does not use nearest neighbour but browser default AFAIK.

You can enable it and shit in CSS, I do on my sites for header images to retain the retro look everywhere!


Here's the deets.
Xkeeper

Level: 244


Posts: 23358/23358
EXP: 229420791
For next: 766475

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 6 hours
Last activity: 4 hours

Posted on 06-25-18 06:24:37 PM Link | Quote
yeah it's because a lot of things here are pixel art, which looks like garbage when resized. unfortuantely i guess it looks even more garbage when you're using dpi scaling, which is unfortunate

not really sure what i can do since there's no good way of saying "this image is pixel art and should be nn scaled" versus "this is a photo or whatever and should be turned into blurry soup".


tcrf has the same problem, because we require images to be uploaded at 1× and then upscaled via html for filesize + consistency. so if you're using something that isn't an even multiple of 100% it looks like dogshit.
Elemi
360
Nobody
Level: 39


Posts: 343/367
EXP: 388059
For next: 16712

Since: 06-20-10

From: Hell

Since last post: 33 days
Last activity: 24 days

Posted on 06-26-18 04:11:08 PM Link | Quote
Well, I would say most images < 256px′² could safely be classed as 72dpi web images, and there could be a filter that has a whitelist that could be called DISABLED_on the form page for anything that you don't want nn scaling used DISABLED_on.


Or even more and you could check pixel by pixel in php to see the gravity of pixel colour difference as photographs generally ease their colours into the others, it could be done but could be hard as shit and make you feel funny.

Also I don't know why but this post keeps replacing words with "DISABLED_" and I haven't put those there, idk.
RanAS
Member
Level: 40


Posts: 443/484
EXP: 408771
For next: 32538

Since: 10-10-14

From: Brazil

Since last post: 23 hours
Last activity: 33 sec.

Posted on 06-26-18 08:49:32 PM Link | Quote
Originally posted by Nyanners
Also I don't know why but this post keeps replacing words with "DISABLED_" and I haven't put those there, idk.

on to on
on to < on
< on to DISABLED_on
< test DISABLED_on

oh I see, I think it treats "< 256px" as the start of an HTML tag, and tries to disable the next "DISABLED_on" it finds after it (including this DISABLED_one) GODDAMMIT I CAN'T EVEN TYPE A NUMBER AND IT DOES IT

it's probably the no-JS regex filter

hold on maybe this will be easy to fix
Xkeeper

Level: 244


Posts: 23358/23358
EXP: 229420791
For next: 766475

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 6 hours
Last activity: 4 hours

Posted on 06-27-18 05:12:30 AM Link | Quote
that's absolutely correct. welcome to why we can't have nice things
Next newer thread | Next older thread
Jul - Meta - Nearest neighbor upscaling? New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

30 database queries.
Query execution time: 0.192973 seconds
Script execution time: 0.012976 seconds
Total render time: 0.205949 seconds
Memory used: 1048576