command line /Mask not working in v4.7.2.0

previously known as VSO Image Resizer

Moderator: Fabrice

leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

command line /Mask not working in v4.7.2.0

Post by leeuk »

i have the latest version installed (4.7.2.0 as of today 3-aug-2015) but when i'm running the program from the command line it was putting "(copy)" in the destination file name. even though i have the parameter "/Mask=%%F" in my batch file! btw double % is required otherwise the batch file will looks for a variable. I eventually got the problem solved by removing the parameter "/Run" but it should be working without me removing this.. i think a bug was introduced with v4.7.2.0 or perhaps earlier?

everything ok with the below params but if i add "/Run" the dest. file has "(copy)" in it!
/W=500
/H=667
/Filter=lanczos
/Quality=80
/Exif=0
/Xmp=0
/Iptc=0
/Icc=0
/Mask=%%F
/AutoClose
/Conflict=overwrite
/Minimized
/Dest="%dest_full%"

any help here?
User avatar
Phil
ObviousIdea
Posts: 305
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

As you have guessed, this seems to be a bug. I'll have it fixed for the next release!
User avatar
Phil
ObviousIdea
Posts: 305
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

I've prepared a pre-release version with the fix. Could you test it and let me know if it works correctly for you?

light_image_resizer4_setup_4.7.2.2.exe
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

hi Phil,

thanks for reply. sorry for slow reply as i only just read your reply - i was not subscribed to the thread (default). i've subscribed now :)

i just installed the latest 4.7.3.0 today. it fixed the file name mask problem when running the program from the command line but there is a new problem. i have "/W=500 /H=667" but the program runs as if i had used "/W=667 /H=667" so my images were resized to 667 pixels wide instead of a maximum of 500.. i tried your earlier version posted above (light_image_resizer4_setup_4.7.2.2.exe) and that problem does not exist in that version so i'll use that until you investigate the problem and release a new update.

one other problem i had with 4.7.3.0 (when run from the command line) was that the unit setting was not defaulting to pixels as stated in the switches.txt file. i had to add "/Unit=pixel" to my batch file.

Lee
User avatar
Phil
ObviousIdea
Posts: 305
Joined: Wed Mar 16, 2011 11:51 pm
Contact:

Post by Phil »

I made some changes to the command line parsing, and apparently it switched the unit to percent.

Please try this version and let me know if it works correctly:
light_image_resizer4_setup_4.7.3.1.exe
leeuk
Junior Member
Posts: 19
Joined: Mon Aug 03, 2015 3:08 pm
Location: UK
Contact:

Post by leeuk »

works great :D i installed it over the 4.7.2.2 and took out the "/Unit=pixel" from my batch file. also took out "/Mode=fit" as thats the default anyway.

i'm really impressed with the speed the program is running. it seems alot faster. i think start up and shut down was alot slower before.
Post Reply