how2 actual filename from the filelist for parameter -text ?

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
tom*de
Posts: 40
Joined: Wed Mar 22, 2006 1:08 pm

how2 actual filename from the filelist for parameter -text ?

Post by tom*de » Tue May 15, 2012 3:42 pm

Hallo,

how can I get the actual filename from the filelist or the parameter -text?
"%" only works with parameter -o "i.g.: -o %.jpg", not with parameter -text "i.g.: -text %"

Code: Select all

nconvert.exe -resize 320 320 -text_font Verdana 14 -text_color 200 200 0 -text_flag bottom-left -text_pos 5 0 -text "%" -out jpeg -o "%.jpg" -L "TEST.LST"
only puts "%" into jpg, not the filename.

Any idea? Thanks, Tom

User avatar
xnview
Author of XnView
Posts: 31798
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: how2 actual filename from the filelist for parameter -te

Post by xnview » Wed May 16, 2012 7:26 am

Currently not possible
Pierre.

tom*de
Posts: 40
Joined: Wed Mar 22, 2006 1:08 pm

Re: how2 actual filename from the filelist for parameter -te

Post by tom*de » Wed May 16, 2012 7:29 am

Thanky you, for answering. Any workaround possible - or could I wait to next version?

tom*de
Posts: 40
Joined: Wed Mar 22, 2006 1:08 pm

Re: how2 actual filename from the filelist for parameter -te

Post by tom*de » Sun May 20, 2012 7:19 pm

Are any time-variables or EXIF-variables available to insert it with "-text"

tom*de
Posts: 40
Joined: Wed Mar 22, 2006 1:08 pm

Re: how2 actual filename from the filelist for parameter -te

Post by tom*de » Mon May 21, 2012 1:42 pm

if anybody would like to know:

irfanview knows such variables in listfiles too, but i prefer nconvert and I solved the problem with totalcommander (button) and lst2run.exe:

Code: Select all

cmd70=%COMMANDER_PATH%\lst2run.exe
param70=?-e "%%COMMANDER_PATH%%\..\Foto\xnview\nconvert.exe" -s " -keepfiledate -resize 320 320 -ratio -q 85 -text_font Verdana 14 -text_color 200 200 0 -text_flag bottom-left -text_pos 5 0 -text #f -out jpeg -o "%T%%.jpg" \"#p\#f.#e\" " -l %L
menu70=nconvert: markierte Dateien konvertieren (320x320, Dateiname als Text ins Bild)
It converts all marked the files into target dir with options and insert each filename as text into picture. The disadvantage is that nconvert is started for each file (slower than nconverts internal -list)

Is it possible to give the text only a frame or a border instead of -text_back?

tom*de
Posts: 40
Joined: Wed Mar 22, 2006 1:08 pm

Re: how2 actual filename from the filelist for parameter -te

Post by tom*de » Thu Jun 14, 2012 5:49 pm

Currently not possible
are there plans to integrate -text parameters?

User avatar
xnview
Author of XnView
Posts: 31798
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: how2 actual filename from the filelist for parameter -te

Post by xnview » Thu Jun 14, 2012 6:42 pm

tom*de wrote:
Currently not possible
are there plans to integrate -text parameters?
yes i'll add them
Pierre.

tom*de
Posts: 40
Joined: Wed Mar 22, 2006 1:08 pm

Re: how2 actual filename from the filelist for parameter -te

Post by tom*de » Thu Jun 14, 2012 7:59 pm

Thanks in advance, and I hope that also other needs and see the benefits...

Post Reply