diff options
Diffstat (limited to 'content/bulk-make-thumbnails.md')
| -rw-r--r-- | content/bulk-make-thumbnails.md | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/content/bulk-make-thumbnails.md b/content/bulk-make-thumbnails.md deleted file mode 100644 index 4bab661..0000000 --- a/content/bulk-make-thumbnails.md +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | --- | ||
| 2 | title: "Bulk thumbnails" | ||
| 3 | url: bulk-make-thumbnails.html | ||
| 4 | date: 2023-06-04T20:46:56+02:00 | ||
| 5 | type: note | ||
| 6 | draft: false | ||
| 7 | tags: [bash] | ||
| 8 | --- | ||
| 9 | |||
| 10 | Make bulk thumbnails of JPGs with ImageMagick. | ||
| 11 | |||
| 12 | ```sh | ||
| 13 | #!/bin/bash | ||
| 14 | |||
| 15 | directory="./images/" | ||
| 16 | dimensions="360x360" | ||
| 17 | |||
| 18 | for file in "$directory"*.jpg; do | ||
| 19 | convert "$file" -resize $dimensions "$file" "${file%.*}-thumbnail.jpg" | ||
| 20 | done | ||
| 21 | ``` | ||
