e0qdk

joined 1 year ago
[–] [email protected] 9 points 3 days ago

You can run docker containers with multiple volumes. e.g. pass something like -v src1:dst1 -v src2:dst2 as arguments to docker run.

So -- if I understood your question correctly -- yes, you can do that.

[–] [email protected] 3 points 4 days ago (1 children)

OH. Took me a moment to realize those are knives and not kemonomimi.

Sharp indeed. O_O

[–] [email protected] 9 points 6 days ago (3 children)

Giant middle finger from me -- and probably everyone else who uses NoScript -- for trying to enshittify what's left of the good parts of the web.

Seriously, FUCK THAT.

[–] [email protected] 5 points 1 week ago (1 children)

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!

[–] [email protected] 6 points 1 week ago (5 children)

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.

[–] [email protected] 3 points 1 week ago

I have tried watering things down and I've tried using just sparkling water to keep the carbonation but water things down.

Personally, I like just plain seltzer water by itself, but have you tried (unsweetened) cranberry juice and seltzer water? Might help if you're craving the acidity but don't want the sugar.

[–] [email protected] 5 points 1 week ago

Sure, and if the Unhinged States of America decides to toss copyright completely overboard in its current thrashing, well, I won't be complaining. 🫠️

Until we hear otherwise though, I'll assume the findings of the Copyright Office are correct. They seem reasonable enough given current tech and the assumption that copyright does continue to exist.

[–] [email protected] 6 points 1 week ago (3 children)

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.

[–] [email protected] 8 points 1 week ago (5 children)

What do you think of the ruling today that AI art can't be copyrighted?

That's not what they ruled. They ruled that the AI itself can't hold a copyright -- which, given how current techniques work, seems like the correct judgement for now.

Works that use AI in their production can still be copyrighted, but that requires a human to be involved significantly in the creation of the work.

[–] [email protected] 17 points 1 week ago (1 children)

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.

[–] [email protected] 2 points 1 week ago

男: 「ほ…本当?」

ミク: 🎶️🎶️🎶️

男: 「歌つき!」

[–] [email protected] 4 points 2 weeks ago

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. :-)

47
anime_irl (reddthat.com)
 

Silver Spoon

 
 
 
view more: next ›