Page 1 of 1

Win10: Resize all selected files via send-to bat file

Posted: 2019-06-26T11:27:49-07:00
by dnisn
Hello,
I'm on windows 10, ImageMagick-7.0.8-Q16

At the moment, when I resize pictures, I right-click on a picture,
choose "sent to" >> resize.bat , that has the following code

Code: Select all

magick mogrify -path "E:\1920px" -resize 1920x1920 -density 300 -quality 90 *
This resizes all pictures in the folder. When I only want to resize, let's say 5 selected
pictures, I know that I need to use the "convert" command. But somehow I don't get IM to resize
the selected files :(

Thanks for your help!

Re: Win10: Resize all selected files via send-to bat file

Posted: 2019-06-26T12:32:49-07:00
by snibgo
I suggest a BAT script something like this:

Code: Select all

echo Arg   = %*
echo CD    =%CD%
pause
:loop
if "%1"=="" (
  echo Finished
  pause
  exit
)
echo %1
magick %1 -resize 1920x1920 -quality 90 %1
shift
pause
goto loop

Re: Win10: Resize all selected files via send-to bat file

Posted: 2019-06-26T12:55:01-07:00
by dnisn
Thank you very much!!! This works great!