Register - Login
Views: 95199336
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
09-23-18 05:44:13 PM
0 users currently in Meta. | 1 guest

Jul - Meta - Nearest neighbor upscaling?
  
Login Info: Username: Password:
Reply: Mood avatar list:

















 
Options: - -

Thread history
UserPost
Xkeeper
Posts: 23358/23358
that's absolutely correct. welcome to why we can't have nice things
RanAS
Posts: 443/468
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 on
< test on

oh I see, I think it treats "< 256px" as the start of an HTML tag, and tries to disable the next "on" it finds after it (including this 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
Elemi
Posts: 343/367
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 on the form page for anything that you don't want nn scaling used 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.
Xkeeper
Posts: 23358/23358
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
Posts: 342/367
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.
devin
Posts: 3448/3462
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.
Ketsuban
Posts: 3/3
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...)
JosJuice
Posts: 3/4
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.
Jul - Meta - Nearest neighbor upscaling?



Rusted Logic

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

18 database queries.
Query execution time: 0.159752 seconds
Script execution time: 0.003856 seconds
Total render time: 0.163608 seconds
Memory used: 524288