Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm pretty sure I've commented this before, but it's just too ridiculous not to share again. About a year ago I needed to convert ~25k png images to webp. I happened to have them on a Windows machine, and I don't know powershell at all. I figured this would be a good thing for AI to so I asked the free version of chatGPT to write me a script to do the conversion. I was expecting a one-liner script, since I know this would be a simple bash script and there are command line tools available for this conversion on windows.

I must say, the solution was very creative. It involved using powershell to script autohotkey to open photoshop and use AHK to automate exporting each image as a webp, closing photoshop after exporting each image. I don't have a photoshop liscence, and I don't know why powershell would be needed to script another scripting tool. I also would suspect that photoshop or another Adobe tool probably has a bulk converter. But I do need to give points for originality, that is exactly the type of harebrained solution I would sarcastically suggest if I was wanting to mildly troll a coworker.



its a one liner with:

https://imagemagick.org/script/command-line-tools.php

The "solution" stated is hilarious.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: