Interests: programming, video games, anime, music composition

I used to be on kbin as e0qdk@kbin.social before it broke down.

  • 2 Posts
  • 51 Comments
Joined 1 year ago
cake
Cake day: November 27th, 2023

help-circle







  • Two quick ideas on possible approaches:

    1. Static page route. You can just write some Javascript to load the image from a file input in HTML, draw it resized to a canvas (based on an input slider or other input element), then save the canvas to an image. (There might even be simpler approaches if I wasn’t stupidly tired right now…) This can be done in a single file (HTML with embedded JS – and CSS if you want to style it a little) that you toss on any web server anywhere (e.g. Apache, nginx, whatever). Should work for JPEG, PNG, and probably WebP – maybe other regular image types too. Benefit: data never needs to leave your device.

    2. Process on server route. Use Python with a simple web server library (I usually opt for tornado for stuff like this, but flask or cherrypy or similar would probably work). Set up a handler for e.g. an HTTP POST and either pass the image into a library like Pillow to resize it or shell out to ImageMagick as others have suggested. (If you want to do something clever with animated GIFs you could shell out to ffmpeg, but that’d be a fair bit trickier…) The image can be sent back as the response. Be careful about security if you take this route. Probably want some kind of login in front of it, and run it in a VM or some other secure environment – especially if you’re using AI to kludge it together…

    Best of luck and let me know if you need any help. Will probably have some time this weekend if you can’t get it on your own. Happy hacking!


  • I would be happy with a FOSS desktop app I can install in linux too

    On the command line, you can do this with ImageMagick (e.g. use the command convert once it’s installed).

    With a (desktop) GUI, there’s a bunch of programs. GIMP is probably the most well known and has a ton of capabilities but is a bit complex. I use Kolourpaint as a quick-and-dirty “MS Paint”-like program for very simple tasks where I want a GUI.

    If you want a simple web UI I’m sure there is one already, but I don’t know one specifically. It wouldn’t be too complicated to hack something up if all you need is a quick-and-dirty file input and percentage rescale or something like that. If you don’t get a better suggestion and don’t know how to make something like that yourself, let me know and I can write an example.


  • People have already covered most of the tools I typically use, but one I haven’t seen listed yet that is sometimes convenient is python3 -m http.server which runs a small web server that shares whatever is in the directory you launched it from. I’ve used that to download files onto my phone before when I didn’t have the right USB cables/adapters handy as well as for getting data out of VMs when I didn’t want to bother setting up something more complex.


  • I used to use Game Maker waaaay back in the day – starting from when Mark Overmars had it hosted on his university website (before the .nl site even) and checked out of that community sometime after YoYo Games took over – which was… 18 years ago!?

    I wrote a substantial amount of C++ code with GLFW and occasionally other libraries for many hobby projects over the years. I lost a lot of enthusiasm when Unity became popular, and at some point after that I realized that games are mostly art projects, and I was more interested in the tech side of it.

    These days I mostly write Python and JavaScript with the occasional bit of C++ (or whatever is needed) for work. Sometimes that work gets visual, but a lot of it is webdev.

    If I ever get back into gamedev, it’ll be indie dev to scratch a personal itch – most likely with my own code rather than an off-the-shelf engine.

    I’m glad you enjoyed my characters. :-)


  • I don’t know if I’m the kind of “artist” you’re interested in, but I’ve been making a bunch of silly drawings and posting them lately. Some people seem to enjoy them. I’ve also written a fair amount of music but I generally don’t share that. I used to want to be a game developer and ended up getting good at programming, so-so at music, and basically hated everything I tried to make as far as graphics went.

    Recently though, I’ve found it incredibly liberating to allow myself to make “bad” art – to not be too concerned with the quality and just concentrate on having fun trying to express an idea however I can.

    This has mostly taken the form of “MS Paint”-like drawings that I’ve posted to !sillydrawingrequests@sopuli.xyz (and occasionally other communities). Usually I make them with KolourPaint. Sometimes I also use the GIMP or my own custom software.

    I think my own overall personal favorite, so far, is “Sock Trek”. I posted it back in 2023 from kbin (RIP) to Otter’s sockpuppetsociety community, I think:

    Probably the best of my recent silly drawings in terms of technique is this one in response to “An expressive window suffering from / enjoying the weather”:

    The most popular (based on upvotes) seems to be my response to “E.T. (the alien) eating an unreasonable quantity of free samples at costco”:

    I’ve occasionally made some other things that might be interesting to look at, like this hypnotic color spiral animation (first 90 seconds) from a program I wrote to experiment with graphics techniques a few years ago – https://files.catbox.moe/8y6d0n.mp4 – and a number of custom composites from anime screenshots.







  •     {% if switch('firefox-tou') %}
          <p>Firefox is independent and a part of the not-for-profit Mozilla, which fights for your online rights, keeps corporate powers in check and makes the internet accessible to everyone, everywhere. We believe the internet is for people, not profit. You’re in control over who sees your search and browsing history. All that and exceptional performance too.</p>
        {% else %}
          <p>Firefox is independent and a part of the not-for-profit Mozilla, which fights for your online rights, keeps corporate powers in check and makes the internet accessible to everyone, everywhere. We believe the internet is for people, not profit. Unlike other companies, we don’t sell access to your data. You’re in control over who sees your search and browsing history. All that and exceptional performance too.</p>
        {% endif %}
    

    Top paragraph is what they’re changing it to (behind a feature flag) and bottom is what it currently is. i.e. they are REMOVING the bit you marked in bold in your quote when the new ToS is active.




  • e0qdk@reddthat.comtoFediverse@lemmy.worldKarma in lemmy?
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 month ago

    I’m under the impression the reputation points are either the combined number of upvotes or that minus downvotes

    IIRC from kbin – and assuming mbin didn’t change things – boosts counted for two points while upvotes (favorites) are one point and downvotes (reduces) are one point. Boosts are basically retweets, IIRC, and wouldn’t be coming from lemmy users – just from Mastodon, mbin, and other tools that support it.

    Edit: To clarify, I mean downvotes reduce by one point.