View unanswered posts | View active topics It is currently June 25th, 2017, 9:53 pm



Welcome
Welcome to WADder

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
 TPL Converter that adds type to PNG filename (is there 1?) 
Author Message
User avatar

Joined: March 21st, 2010, 3:04 am
Posts: 3
Location: Hesperia, California
Has thanked: 0 time
Have thanks: 0 time
Post Re: TPL Converter that adds type to PNG filename (is there 1
Can this batch convert files? I have over 500 TPL files that need to be converter to PNG (with transparency if possible).

_________________
Image


August 18th, 2011, 1:15 pm
Report this post
Profile WWW
Site Admin
User avatar

Joined: November 18th, 2010, 9:14 am
Posts: 22
Has thanked: 2 time
Have thanks: 4 time
Post Re: TPL Converter that adds type to PNG filename (is there 1
Jose Gallardo wrote:
Can this batch convert files? I have over 500 TPL files that need to be converter to PNG (with transparency if possible).


You could try Fastzone Photo Resizer? (Google it! - YES it's free) :|

_________________
Image


August 18th, 2011, 5:14 pm
Report this post
Profile
User avatar

Joined: March 21st, 2010, 3:04 am
Posts: 3
Location: Hesperia, California
Has thanked: 0 time
Have thanks: 0 time
Post Re: TPL Converter that adds type to PNG filename (is there 1
FastStone Photo Resizer doesn't seem to support TPL image conversion. Is there something I'm missing here?

EDIT: Nevermind. I was able to batch convert my TPL files with pbsds' TPL.exe via command line. Thanks for the TPL.exe pbsds!

_________________
Image


August 18th, 2011, 6:36 pm
Report this post
Profile WWW
Site Admin
User avatar

Joined: March 14th, 2010, 10:21 am
Posts: 252
Location: Røros
Has thanked: 12 time
Have thanks: 14 time
Post Re: TPL Converter that adds type to PNG filename (is there 1
Glad someone had use of it. :)

_________________
My website: http://pbsds.net/blog


August 18th, 2011, 10:58 pm
Report this post
Profile
Site Admin
User avatar

Joined: March 13th, 2010, 11:57 am
Posts: 457
Has thanked: 29 time
Have thanks: 72 time
Post Re: TPL Converter that adds type to PNG filename (is there 1
For those looking for a batch script to achieve this. Try:

Code:
for %%z in (*.tpl) do start tpl.exe "%%z" "%%~fz".png -tf


The "-tf" is optional and will include the TPL image format in the filename. Also, if you want it to look through all sub folders and convert those too, then use this:

Code:
for /r %%z in (*.tpl) do start tpl.exe "%%z" "%%~fz".png -tf


That used to remove the .tpl from the filename, but it doesn't do it on my computer anymore. Once you have all of your png files run this one to clean the filenames (remove the .tpl from the middle of the filename):

Code:
echo off

setlocal enableextensions
for %%f in (*) do call :process "%%f"
endlocal
goto :eof

:process
pushd "%~dp1"
set fn=%~nx1
set fn=%fn:.tpl.=.%

REM The following lines have been commented out
REM set fn=%fn:.brlyt.xmlyt=.xmlyt%
REM set fn=%fn:.brlan.xmlan=.xmlan%
REM set fn=%fn:.xmlyt.brlyt=.brlyt%
REM set fn=%fn:.xmlan.brlan=.brlan%
REM End of commented out lines

ren "%~nx1" "%fn%"
popd

goto :eof


Again, if you wish to look through sub folders, change the third line to:

Code:
for /r %%f in (*) do call :process "%%f"

_________________
. This signature is loading. Please wait.
Image


August 22nd, 2011, 6:10 am
Report this post
Profile
User avatar

Joined: March 21st, 2010, 3:04 am
Posts: 3
Location: Hesperia, California
Has thanked: 0 time
Have thanks: 0 time
Post Re: TPL Converter that adds type to PNG filename (is there 1
wilsoff wrote:
For those looking for a batch script to achieve this. Try:

Code:
for %%z in (*.tpl) do start tpl.exe "%%z" "%%~fz".png -tf


That used to remove the .tpl from the filename, but it doesn't do it on my computer anymore.

Actually, that won't work at all, at least on my end. You don't need the extra % on %%z (which causes it not to work). And if you don't want the .tpl in the filename, change "%~fz" to "%~nz". You also don't need to add start before tpl.exe, otherwise this will cause tpl.exe to launch in separate windows for each file being converted.

So a shorter and more stable parameter would be:
Code:
for %z in (*.tpl) do tpl.exe "%z" "%~nz".png

That will convert all TPL files in the same window, without leaving the .tpl in the file names.

And if you want to specify a folder in which to input and output your files and the .exe, it would be:

Code:
FOR %G IN ("path\to\input\folder\*.tpl") DO "path\to\tpl.exe" "%G" "path\to\output\folder\%~nG.png"

That is the one I used to convert my files. And I like the fact I could specify where to output my files, otherwise I would have to use another parameter to sort out the TPLs from PNGs. I am not a command line Guru, so I am just stating what has worked for me. Hope this helps.

_________________
Image


August 22nd, 2011, 9:57 pm
Report this post
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 16 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Donate Now
Donate Now


Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
suspicion-preferred