command line improvements

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

command line improvements

Post 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
User avatar
xnview
Author of XnView
Posts: 44297
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: command line improvements

Post by xnview »

You have NConvert for that
nconvert -clipboard -out png -o screenshot.png
Pierre.
User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

Re: command line improvements

Post by lukoie »

thanx pierre
User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

Re: command line improvements

Post 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
User avatar
xnview
Author of XnView
Posts: 44297
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: command line improvements

Post 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
Pierre.
User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

Re: command line improvements

Post by lukoie »

cool
thanx
i'll be waiting for it
User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

Re: command line improvements

Post by lukoie »

Dear Mr. Pierre
Did you implemented date/time stamps in your latest nconvert?
User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

Re: command line improvements

Post 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.
User avatar
xnview
Author of XnView
Posts: 44297
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: command line improvements

Post 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
Pierre.
User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

Re: command line improvements

Post 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?
User avatar
xnview
Author of XnView
Posts: 44297
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: command line improvements

Post by xnview »

lukoie wrote:Any chance you will implement that in nconvert, please?
Oh ok, i understand... I'll add such option
Pierre.
User avatar
xnview
Author of XnView
Posts: 44297
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: command line improvements

Post by xnview »

Pierre.
User avatar
lukoie
Posts: 39
Joined: Mon May 17, 2010 10:16 am

Re: command line improvements

Post by lukoie »

Thank you dear Pierre, this is it!
You made my day! Now Xnview is the only viewer stays on my pc.
Cheers