how2 actual filename from the filelist for parameter -text ?

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

Moderators: XnTriq, helmut, 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 »

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: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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 »

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 »

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 »

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 »

Currently not possible
are there plans to integrate -text parameters?
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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 »

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