diff options
author | Alex <alex@scerba.org> | 2024-03-05 00:30:52 -0500 |
---|---|---|
committer | Alex <alex@scerba.org> | 2024-03-05 00:30:52 -0500 |
commit | 3a8e59de25b8f5318dd95ae3d1c44cb73f96601f (patch) | |
tree | 5cea7dc4c8a7a44c151f084601643aecd3cbed97 /README.md | |
parent | d28ad5a41db89b57c524582834c9a1055a704b97 (diff) |
Add batch image command
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |