The powershell script ended up nicer than the batch file would have been, but then I realized I wanted to run it on macos too, so I had it translate it to a zsh script for macos. If I was doing this on my own, I'd have had to look up all the imagemagick parameters, I'd have done it as a batch file, and had to look up all the batch file scaffolding required. I also didn't know how to make the image mask so I had it teach me that too. apply a mask found in mask.png, convert to jpeg, and rename them removing all spaces from the name, and remove all leading digits and underscores from the name" pngs in a given directory, resize them to 400x400, don't squish them and put them in the bottom right if the aspect ratios don't match. Prompt: "write a powershell script that uses imagemagick to find all. Generally anything where I'm working with technology I'm not an expert on, and might not find it worth it to do learn the thing just to get the task at hand done. I'm not good at shell scripts, so this would typically never be worthwhile for me to do for any one-off task. By far the biggest timesaver has been having it write shell scripts for any task that's even a little tedious.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |