Page 1 of 1

command line improvements

Posted: Mon May 17, 2010 10:24 am
by lukoie
dear xnview team
thank you so much for your application

so far i need to keep irfanview for my daily purpose, which xnview can't do
in my total commander i have a button with such a command line: "C:\Program Files\IrfanView\i_view32.exe" /clippaste /convert=%Pscreenshot.png
so when i press printscreen, all i have to do next is to press this button in total commander, and i have my screenshot in active folder saved in png format(or whatever else extention i put there in command line - it saves in the format given by extention!)
could you please implement such functionality too? you only have clippasete, but no way to save automatically this clip in desired file format.
(it would be great also if you add a small variable, like %D, so one can save screenshot with date stamp in the filename)
thanx in advance

Re: command line improvements

Posted: Mon May 17, 2010 11:11 am
by xnview
You have NConvert for that
nconvert -clipboard -out png -o screenshot.png

Re: command line improvements

Posted: Mon May 17, 2010 11:19 am
by lukoie
thanx pierre

Re: command line improvements

Posted: Mon May 17, 2010 1:53 pm
by lukoie
is there any chance you can add date/time variable or number count?
now when i use this command line: -quiet -clipboard -out png -o %Pscreenshot#.png
its just creates the file screenshot0.png, and i cant add next screenshot automatically so it would be screenshot1.png screenshot2.png screenshot3.png and so on.
if you can add for exapmle something like "-o filename@"DD MM YYYY HH MM SS", so one can create something like:
c:\applications\XnView\nconvert.exe -quiet -clipboard -out png -o screenshot@"YYYY.MM-HH-MM".png
is it possible you implement that?
thanx in advance

Re: command line improvements

Posted: Tue May 18, 2010 8:54 am
by xnview
lukoie wrote: c:\applications\XnView\nconvert.exe -quiet -clipboard -out png -o screenshot@"YYYY.MM-HH-MM".png
is it possible you implement that?
Yes

Re: command line improvements

Posted: Tue May 18, 2010 9:05 am
by lukoie
cool
thanx
i'll be waiting for it

Re: command line improvements

Posted: Wed Aug 04, 2010 4:04 pm
by lukoie
Dear Mr. Pierre
Did you implemented date/time stamps in your latest nconvert?

Re: command line improvements

Posted: Wed Aug 04, 2010 4:10 pm
by lukoie
And could you also make sure nconvert checks if the file name already exists, and create the file with some suffix?

For example, i have a button in my TotalCommander with the arguments "-quiet -clipboard -out png -o %Pscreenshot.png"
If the same file already exist, nconvert does nothing (irfanview, by the way, simply rewrites the file without any notifications).
Would be nice if nconvert adds any suffix, like numerical value.
Thanx in advance.

Re: command line improvements

Posted: Thu Aug 05, 2010 5:08 pm
by xnview
lukoie wrote:And could you also make sure nconvert checks if the file name already exists, and create the file with some suffix?

For example, i have a button in my TotalCommander with the arguments "-quiet -clipboard -out png -o %Pscreenshot.png"
If the same file already exist, nconvert does nothing (irfanview, by the way, simply rewrites the file without any notifications).
Would be nice if nconvert adds any suffix, like numerical value.
Thanx in advance.
You have -overwrite

Re: command line improvements

Posted: Wed Dec 08, 2010 3:51 am
by lukoie
But i dont need to overwrite! And anyway even without this argument its overwrites.

I'm making many screenshots. What i do for that is a pushing PrnScr button, and then in TotalCommander in the folder i need i click a toolbar button with the commend line described above. But if there's already a file called screenshot.png, the file will be simply overwriten, even without -overwrite argument!

What i need is a simple duplicate file checking. Like XnView do in GUI mode, and if file exist - adds any suffix.
Addind date, or any custom patern will be perfect! As i described above.

Any chance you will implement that in nconvert, please?

Re: command line improvements

Posted: Wed Dec 08, 2010 8:05 am
by xnview
lukoie wrote:Any chance you will implement that in nconvert, please?
Oh ok, i understand... I'll add such option

Re: command line improvements

Posted: Thu Mar 03, 2011 9:54 am
by xnview

Re: command line improvements

Posted: Fri Jun 03, 2011 9:13 pm
by lukoie
Thank you dear Pierre, this is it!
You made my day! Now Xnview is the only viewer stays on my pc.
Cheers