They helped in the Russian forum. (https://www.cyberforum.ru/soft-graphics)
Here is a completely correct working code.
@for /f "delims= eol=" %%d in ('dir/ad/b/s D:\SITE') do @pushd "%%d"&@D:\SOFT\NConvert\nconvert.exe -quiet -ratio -o $\### -out jpeg -rtype lanczos -resize longest 1024 -q 80 ...
Search found 4 matches
- Wed Mar 03, 2021 6:39 am
- Forum: NConvert
- Topic: CMD NConvert All images in the catalog
- Replies: 9
- Views: 7173
- Tue Mar 02, 2021 5:11 am
- Forum: NConvert
- Topic: CMD NConvert All images in the catalog
- Replies: 9
- Views: 7173
Re: CMD NConvert All images in the catalog
Code: Select all
@chcp 1251
@for /R D:\333\ %%A in (*.png *.jpg *.jpeg *.gif *.bmp) do "D:\111\NConvert\nconvert" -ratio -o $\### -out jpeg -rtype lanczos -resize longest 1024 -q 80 -opthuff "%%A"
How to exclude this.
- Mon Mar 01, 2021 1:33 pm
- Forum: NConvert
- Topic: CMD NConvert All images in the catalog
- Replies: 9
- Views: 7173
Re: CMD NConvert All images in the catalog
The code below works with subfolders.
BUT does not assign a name to the file.
Tell me how to complete the code.
BUT does not assign a name to the file.
Tell me how to complete the code.
Code: Select all
@chcp 1251
FOR /f "delims=*" %%A IN ('dir *.jpg /b /s') do "D:\111\NConvert\nconvert" -ratio -rtype lanczos -resize longest 1024 -o $ -q 80 -opthuff "%%A"
- Mon Mar 01, 2021 9:16 am
- Forum: NConvert
- Topic: CMD NConvert All images in the catalog
- Replies: 9
- Views: 7173
CMD NConvert All images in the catalog
Hello.
I use Google translate.
I ask for help.
The question is, for example, "resize the image on the long side" to 1024 pixels and rename it as ###.JPG with the removal of the source.
In the directory D:\222\ and all its subfolders.
What the command line code should look like using NConvert
I use Google translate.
I ask for help.
The question is, for example, "resize the image on the long side" to 1024 pixels and rename it as ###.JPG with the removal of the source.
In the directory D:\222\ and all its subfolders.
What the command line code should look like using NConvert