From 3a8e59de25b8f5318dd95ae3d1c44cb73f96601f Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 5 Mar 2024 00:30:52 -0500 Subject: Add batch image command --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 440c50b..c8e0d32 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,5 @@ This is my personal website that takes the place of [alexscerba.org](https://ale [] Image scraping and gallery: Scrape and agregate all images from the site into a lazy-loading image gallery. ## Useful Commands -* convert image.jpg -resize 1000x1000 image_1000.jpg \ No newline at end of file +* convert image.jpg -resize 1000x1000 image_1000.jpg +* for file in $(ls -1 | sed 's/\.[^.]*$//'); do convert "$file.jpg" -resize 1000x1000 "$(echo $file)_1000.jpg"; done \ No newline at end of file -- cgit v1.2.3