insomniac_lemon
insomniac_lemon avatar

insomniac_lemon

@insomniac_lemon@kbin.social

Easy workflows for intentionally upscaled art?

So the basic idea here is using a low-resolution texture that is designed specifically to be upscaled (anything but the first 3) to a simpler smooth aesthetic. Pixel blob/triangle/hexagon etc in with a 32x-or-lower texture (which is all that is downloaded), crisp shape(s) out. Also probably things like lineart for faces (or...

e0qdk,
e0qdk avatar

The Wikipedia article for hqx points out that an implementation exists as a filter in ffmepg.

You can run a command line conversion of e.g. a PNG -> PNG using hqx upscaling like: ffmpeg -i input.png -filter_complex hqx=4 output.png

The =4 is for 4x upscaling. The implementation in my version of ffmpeg supports 2x, 3x, and 4x upscaling.

As a quick and dirty way to get semi-live preview, you can do the conversion with make and use watch make to try to rebuild the conversion periodically. (You can use the -n flag to increase the retry rate if the default is too long to wait.) make will exit quickly if the file hasn't changed. Save the image in your editor and keep an image viewer that supports auto-reload on change open to see "live" preview of the output. (e.g. eog can do it, although it won't preserve size of the image -- at least not in the copy I have, anyway; mine's a bit old though.)

Sample Makefile:

output.png : input.png Makefile
	ffmpeg -y -i input.png -filter_complex hqx=4 output.png

Note the -y option to tell ffmpeg to overwrite the file; otherwise it will stop to ask you if you want to overwrite the file every time you save, and in case you're not familiar with Makefiles, you need a real tab (not spaces) on the line with the command to run.

ffmpeg also appears to support xbr (with =n option as well) and super2xsai if you want to experiment with those too.

I'm not sure if this will actually do what you want artistically, but the existing implementations in ffmpeg makes it easy to experiment with.

DreamySweet,

Look at how much sugar is in the food you eat every day, then look up how much sugar you are recommended to consume every day. There isn't a daily value % next to the sugar content on food labels.

YSK: If you reply to a comment, you should probably give it a vote

Why YSK? Comments you reply positively to, should definitely get your upvote. Comments you disagree with should be at your discretion. Trolls deserve downvotes (seriously, they live for those). Disagreeing with someone in the midst of a good discussion doesn't necessarily warrant one, and might deserve an upvote. Even if you...

Rhaedas,
Rhaedas avatar

In addition, making a post with just a title and link with no commentary on the topic is low effort as well. It's acceptable for things like memes as they stand on their own, but I'm already getting tired of finding what I would call news spam from select users. There's a reason many subreddits had rules on adding comments and descriptions to a post, it was from years of dealing with drive-bys who didn't contribute to the actual discussions.

Ferk, (edited )
Ferk avatar

Honestly, they should put the downvote next to the boost and renamed to something more meaningful if it's not the opposite of an upvote. Everyone is bound to eventually get some amount of upvotes/downvotes, but boosts are not something given as easily (some people might not wanna use boosts at all!).

Then if something opposite to the upvote is wanted, add a different method. So we'll have upvote/downvote with no (or little) effect on reputation, and then something like boost/penalize.

The way it is now it kind of discourages participation in any popular topic if your opinion can be polarizing (even if it's totally respectful and valid) or if there's a significan minority of people who dislike what you said (even if most people upvoted it). Your reputation will be penalized, even when you are being polite, citing valid sources and your vote balance is still positive.

Whatever you do, make sure you don't bother Reddit's servers with these videos (snowdin.town)

i cannot stress this enough, do NOT run the command ffmpeg -filter_complex "nullsrc=s=1920x1080,geq=random(1)*255:128:128[vout]" -map "[vout]" -t 46 -c:v libx264 out.mp4 in order to generate one of these large video files then upload them en masse in order to slow down their servers,

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • thenastyranch
  • magazineikmin
  • ethstaker
  • InstantRegret
  • tacticalgear
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • cubers
  • DreamBathrooms
  • megavids
  • mdbf
  • modclub
  • GTA5RPClips
  • normalnudes
  • khanakhh
  • everett
  • cisconetworking
  • osvaldo12
  • anitta
  • Leos
  • Durango
  • tester
  • JUstTest
  • All magazines