How create a .bat file for Light Image Resizer 6

previously known as VSO Image Resizer

Moderator: Fabrice

khalid hosain
Junior Member
Posts: 4
Joined: Fri Aug 27, 2021 5:56 am

How create a .bat file for Light Image Resizer 6

Post by khalid hosain »

Hello every one!
This is my first post.
I want to create a .bat file for resize Selected Image with the Settings
Action: Replace original
Size = 500KB
How can I do that?
User avatar
Phil
ObviousIdea
Posts: 281
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Re: How create a .bat file for Light Image Resizer 6

Post by Phil »

Not all of the options are available as command line parameters. We will add more in the next release.
You can create a profile with your options though, and call that via command line.
For example:

Code: Select all

resize.exe /profile="my profile"
Depending on the image content and output dimensions, setting the file size can lead to bad image quality in some cases. Keep that in mind, especially when overwriting originals.
khalid hosain
Junior Member
Posts: 4
Joined: Fri Aug 27, 2021 5:56 am

Re: How create a .bat file for Light Image Resizer 6

Post by khalid hosain »

Code: Select all

"%ProgramFiles(x86)%\ObviousIdea\Light Image Resizer 6\Resize.exe"
When I Run This command in Command Prompt then it's run Light Image Resizer fine But When I Run

Code: Select all

"%ProgramFiles(x86)%\ObviousIdea\Light Image Resizer 6\Resize.exe /profile=coverart"
This command in CMD then it's returns "The directory name is invalid."
My Profile name is "coverart"
What the wrong I am doing
User avatar
Phil
ObviousIdea
Posts: 281
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Re: How create a .bat file for Light Image Resizer 6

Post by Phil »

You need to enclose the path in double quotes as it contains spaces. This is also recommended for the profile name.
This should work:

Code: Select all

"%ProgramFiles(x86)%\ObviousIdea\Light Image Resizer 6\Resize.exe" /profile="coverart"
khalid hosain
Junior Member
Posts: 4
Joined: Fri Aug 27, 2021 5:56 am

Re: How create a .bat file for Light Image Resizer 6

Post by khalid hosain »

After using this code in CMD, Light Image Resizer has Run & Show a Dialogbox:

Code: Select all

Invalid parameter or Value: profile=coverart
User avatar
Phil
ObviousIdea
Posts: 281
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Re: How create a .bat file for Light Image Resizer 6

Post by Phil »

It means no profile with this name was found. You need to make sure the profile exists and name is correct.
You can check the exact name and/or rename the profile by clicking the "..." button, and selecting "Rename".
khalid hosain
Junior Member
Posts: 4
Joined: Fri Aug 27, 2021 5:56 am

Re: How create a .bat file for Light Image Resizer 6

Post by khalid hosain »

Finally its Wroked. The Profile Name is Case Sensitive. I should type

Code: Select all

Coverart
Thanks for the support. What is the Keyboard shortcut key for the

Code: Select all

Next button
after I add the Images, Enter doesn't work here,
I have another issue, Should I asked in this Post or Should I Create a New Post for that?
User avatar
Phil
ObviousIdea
Posts: 281
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Re: How create a .bat file for Light Image Resizer 6

Post by Phil »

Are you adding your images via command line as well? In that case you can add the /run parameter to start processing directly.
Please see this reference for all the parameters: https://www.obviousidea.com/windows-sof ... arameters/

If your other question is related to command line use, feel free to post it here. If not, better create a new topic.
Post Reply