Interests: programming, video games, anime, music composition

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

  • 1 Post
  • 87 Comments
Joined 1 year ago
cake
Cake day: November 27th, 2023

help-circle
rss

  • 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.




  • The US Copyright Office made a report about copyrightability of AI works a while back: https://copyright.gov/ai/Copyright-and-Artificial-Intelligence-Part-2-Copyrightability-Report.pdf

    Based on an analysis of copyright law and policy, informed by the many thoughtful comments in response to our NOI, the Office makes the following conclusions and recommendations:

    • Questions of copyrightability and AI can be resolved pursuant to existing law, without the need for legislative change.
    • The use of AI tools to assist rather than stand in for human creativity does not affect the availability of copyright protection for the output.
    • Copyright protects the original expression in a work created by a human author, even if the work also includes AI-generated material.
    • Copyright does not extend to purely AI-generated material, or material where there is insufficient human control over the expressive elements.
    • Whether human contributions to AI-generated outputs are sufficient to constitute authorship must be analyzed on a case-by-case basis.
    • Based on the functioning of current generally available technology, prompts do not alone provide sufficient control.
    • Human authors are entitled to copyright in their works of authorship that are perceptible in AI-generated outputs, as well as the creative selection, coordination, or arrangement of material in the outputs, or creative modifications of the outputs.
    • The case has not been made for additional copyright or sui generis protection for AI- generated content.

    The Office will continue to monitor technological and legal developments to determine whether any of these conclusions should be revisited. It will also provide ongoing assistance to the public, including through additional registration guidance and an update to the Compendium of U.S. Copyright Office Practices.

    So, you can have copyright if you used an AI to assist in the production of a work – not just on edits – but case-by-case judgement is needed.



  • 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.