K
K
Kozlov2019-01-20 12:06:34
cmd/bat
Kozlov, 2019-01-20 12:06:34

How to execute a script for all files?

Help, I need a script to resize images. Wrote a batch file for imagemagick, but how to make several images resized.
I want all selected images to be resized. How to do?

@echo off
set in=%~dp1%~N1
set name=%1
%~dp0magick "%name%" -resize 253x434\! "%in%.jpg"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kozlov, 2019-01-20
@romandkoz

for %%i in (%*) do %~dp0magick "%%i" -resize 480x272\! "%%i-psp.jpg"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question