Skip to content

Instantly share code, notes, and snippets.

@ShockwaveNN
Created November 24, 2013 11:17
Show Gist options
  • Save ShockwaveNN/7626071 to your computer and use it in GitHub Desktop.
Save ShockwaveNN/7626071 to your computer and use it in GitHub Desktop.
Для работы требуется Imagick 1. Конвертирует в png 2. Меняет размер на 1200*800 учитывая соотношения сторон 3. Добавляет ватермарку "vk.com/club48760252"
MKDIR %1\converted
for %%f in (%1\*.jpg) do ( convert "%%f" -gravity southeast -stroke "#000C" -pointsize 24 -resize 1200x800 -strokewidth 2 -annotate 0 "vk.com/club48760252" -stroke none -fill white -annotate 0 "vk.com/club48760252" "%1\converted\%%~nf.png" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment