From 20349d2ff553d51b6c1eca54f52411250ec52c78 Mon Sep 17 00:00:00 2001 From: Maxim Lihachev Date: Wed, 20 Jan 2016 11:59:21 +0500 Subject: [PATCH] =?UTF-8?q?th:=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BC=D0=B8=D0=BD=D0=B8=D0=B0=D1=82=D1=8E=D1=80?= =?UTF-8?q?=20=D0=B8=D0=B7=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- th | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 th diff --git a/th b/th new file mode 100755 index 0000000..48e42ee --- /dev/null +++ b/th @@ -0,0 +1,13 @@ +#!/bin/bash + +#Создан: Вт 27 янв 2015 21:41:37 +#Изменён: Ср 20 янв 2016 11:59:05 + +#Создание миниатюр изображений + +mkdir -p "${1:-.}/th"; +for i in *.jpg; { + convert -define jpeg:size=95x95 "$i" -thumbnail 95x95^ \ + -gravity center -extent 95x95 "th/$i" +} +