Answer the question
In order to leave comments, you need to log in
How to automate routine actions?
I fill the content for the site and do the same actions when I want to add pictures. Namely, I rename everyone under one mask, then through Photoshop (file-script-image processor) I change the size of all pictures to 300x300, and then I put the ending _m on these 300x300 pictures, after that I take all the pictures and run them through the WatermarkForHameleon program to put them on on all watermark, and then upload to ftp. Actions I repeat every day dohrena times. Is it possible to implement all this through some thread cmd script? As I understand it, I just need to change photoshop and watermak to something else.
UPDATE:
Looking for answers to my questions, I found an example with the simplest loop that I actively used. And I got this script
#!/bin/bash
mkdir jpg_s;
mkdir watermark;
for file in *.jpg
do
convert $file -resize 300x300 jpg_s/"`basename $file .jpg`_s.jpg"
done;
for file in jpg_s/*.jpg
do
composite -dissolve 70% -gravity center -quality 100 \( d:/watermarks/water-logo.png -resize 18.5% \) $file watermark/"`basename $file .jpg`.jpg"
done;
for file in *.jpg
do
composite -dissolve 70% -gravity center -quality 100 \( d:/watermarks/water-logo.png -resize 50% \) $file watermark/"`basename $file .jpg`.jpg"
done;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question