i learned that it is best to start with the original problem before going to the specific way of solution. I'm open to other tools, if you can recommend a solid, preferably freeware one for the purpose.
So here we go...
Problem:
As i am about to prepare my laptop for vacation i thought i'd finally bother with a quick way of converting Photos using IrfanView - because i'm using it for several years now and like the batch processing feature - to make them uploadable to social networks using TotalCommander as the tool for selecting them.
My targeted solution:
I read a few times about tools which can execute commands based on the selected files in TotalCommander. I found lst2multi and MDocExec to be the ones that should do the job.
The Problem/s:
Now i face two problems.
1) The first one is that IrfanView shows an error telling that it cant read the File Header properly when i call it via TC.
So, whenever i create a button to either run mdocexec to run i_view32.exe with the Files as Parameter (at the moment i'm still trying to accomplish steps with a single selected files!) i get this error.
When i call
C:\Program Files\irfanView\i_view32.exe T:\path\to\image.jpg
from Commandline irfanview doesnt complain.
Is there any difference in the way the parameters are passed or the programm is run?
2) The second part is where i might have to quit thinking of irfanview as the best tool to do the processing
Irfanview has the /advancedbatch parameter, so i can run
C:\Program Files\irfanView\i_view32.exe %INPUTFILE /advancedbatch=settings.ini /convert=%OUTPUTFILE
and it will apply the processing settings that i saved into settings.ini to %INPUTFILE and will save the processed image into %OUTPUTFILE. Irfanview wont open but will do the job silently in the background (which is fine!)
If %OUTPUTFILE is omitted, the processed image will just be shown in the UI.
If i really accomplish to pass problem1 is see that if i select e.g. 3 files in TC and have a setup similar to below...
COMMAND: %COMMANDER_PATH%\tools\mdocexec.exe
PARAMETER: -X:"C:\Program Files\irfanView\i_view32.exe" -L:"%L" -e:"/advancedbatch=settings.ini /convert=%OUTPUTFILE"
... How would i accomplish that image1.jpg as inputfile will be image1_small.jpg as output file?
If for %OUTPUTFILE i choose %P%N then irfanview will always use the same filename and thus overwriting every image until the last one which will remain.
I hope you understood my problems and can help me to find a solution.
Please remember the initial problem, if you know how to accomplish this with different tools, i'm fine to give it a try. The requirements are that it must be able to resize the picture (resample) and add a watermark text.
Thanks for your help
