Backdrops make Alaska slow

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tuckbodi Offline
Senior Member
Posts: 291
Joined: Oct 2008
Reputation: 5
Location: A beach on Kepler 22-b
Post: #21
reaven Wrote:BTW. why all i get is
'ef898036.jpg' is not a supported image file.

How did you fix this? I'm getting this same message on all my files. The code I'm using is DV3B's:

Code:
cd ~/Desktop/Fanart && for f in *.tbn; do mv $f `basename $f .tbn`.jpg; done && for i in *.jpg; do nvcompress -fast -bc1 "${i}" "${i}.dds"; done && ls *.jpg.dds | sed 's/\(.*\)\.jpg\.dds/mv "\1.jpg.dds" "\1.dds"/'|sh && for f in *.jpg; do mv $f `basename $f .jpg`.tbn; done;

Thx
find quote
reaven Offline
Skilled Skinner
Posts: 1,101
Joined: May 2009
Reputation: 20
Post: #22
tuckbodi Wrote:How did you fix this? I'm getting this same message on all my files. The code I'm using is DV3B's:

Code:
cd ~/Desktop/Fanart && for f in *.tbn; do mv $f `basename $f .tbn`.jpg; done && for i in *.jpg; do nvcompress -fast -bc1 "${i}" "${i}.dds"; done && ls *.jpg.dds | sed 's/\(.*\)\.jpg\.dds/mv "\1.jpg.dds" "\1.dds"/'|sh && for f in *.jpg; do mv $f `basename $f .jpg`.tbn; done;

Thx

It was fix getting the texture tools 32bit version, restart and everything ok.
I have Windows 7 that code is for Mac.

anyway the code you type is wrong I think, why do you have in the same line a directory change command along with the rename from tbn to jpg and the nvcompress all in the same line ?
(This post was last modified: 2010-02-09 10:44 by reaven.)
find quote
DV3B Offline
Member
Posts: 72
Joined: Dec 2009
Reputation: 0
Post: #23
Yep, reavens right the command is for Mac.(not sure about Linux) I used "&&" which separates the commands so all you have to do is copy and paste and it will change file extensions, create the .dds images then change the file extensions back, all in one go.

tuckbodi you might want to try this http://forum.xbmc.org/showpost.php?p=501...tcount=132. It pretty much does the same thing, only its for windows.
find quote
reaven Offline
Skilled Skinner
Posts: 1,101
Joined: May 2009
Reputation: 20
Post: #24
Quote:*.jpg.dds
this mean that after the compressing you end with files named .jpg.dds ?

if so was happening to me too in windows I just eliminate the part and
use
Code:
nvcompress -fast -bc1 "${i}";
instead of
Code:
nvcompress -fast -bc1 "${i}" "${i}.dds";

Ex. Windows Batch (rename all .tbn to .jpg and compress all to dds, if windows is 32bits the path need to be check cause Program Files(x86) is only on x64 systems)
Code:
ren *.tbn *.jpg && for %f in (*.jpg) do "C:\Program Files (x86)\NVIDIA Corporation\NVIDIA Texture Tools 2\bin\nvcompress.exe" -fast -bc1 %f

if I add %f.dds after %f I end up with files named fanart.jpg.dds
(This post was last modified: 2010-02-09 10:43 by reaven.)
find quote
tuckbodi Offline
Senior Member
Posts: 291
Joined: Oct 2008
Reputation: 5
Location: A beach on Kepler 22-b
Post: #25
DV3B Wrote:Yep, reavens right the command is for Mac.(not sure about Linux) I used "&&" which separates the commands so all you have to do is copy and paste and it will change file extensions, create the .dds images then change the file extensions back, all in one go.

tuckbodi you might want to try this http://forum.xbmc.org/showpost.php?p=501...tcount=132. It pretty much does the same thing, only its for windows.

Actually I am on Mac. Got it working though! Just was missing a few port installs (ie JPEG) and once I figured that out your commands worked great! Thx! Big Grin

Can't wait for this to be part of the scraping process. Fanart is now useable with the AppleTV! Suhweet!
find quote
DV3B Offline
Member
Posts: 72
Joined: Dec 2009
Reputation: 0
Post: #26
reaven Wrote:this mean that after the compressing you end with files named .jpg.dds ?
Yes, directly after the compressing the file extention is .jpg.dds, but the next command removes .jpg from the file name.
Code:
&& ls *.jpg.dds | sed 's/\(.*\)\.jpg\.dds/mv "\1.jpg.dds" "\1.dds"/'|sh
Then it changes the original images from .jpg to .tbn .

I'm glad to hear it worked for you tuckbodi, I've just started messing around with terminal commands so wasn't sure if what worked for me would work for someone else.Smile
find quote
reaven Offline
Skilled Skinner
Posts: 1,101
Joined: May 2009
Reputation: 20
Post: #27
DV3B Wrote:Yes, directly after the compressing the file extention is .jpg.dds, but the next command removes .jpg from the file name.
Code:
&& ls *.jpg.dds | sed 's/\(.*\)\.jpg\.dds/mv "\1.jpg.dds" "\1.dds"/'|sh
Then it changes the original images from .jpg to .tbn .

thats what am telling you if you cut that part of the code there is no need to end up with .jpg.dds to begin with. you could eliminate like 2 chunk of your code.
find quote
DV3B Offline
Member
Posts: 72
Joined: Dec 2009
Reputation: 0
Post: #28
Thanks reaven, I've removed the unnecessary lines.
find quote
Muskyinoz Offline
Member
Posts: 84
Joined: Mar 2010
Reputation: 0
Location: Sydney
Post: #29
hi all, I'm getting stick on the first part of the process, I get the following when trying to get the tools (I'm on mac)

A nvidia-texture-tools-read-only/CMakeLists.txt
Checked out revision 1055.
Error - cmake is not available!

any help would be appreciated.
find quote
DV3B Offline
Member
Posts: 72
Joined: Dec 2009
Reputation: 0
Post: #30
Muskyinoz Wrote:hi all, I'm getting stick on the first part of the process, I get the following when trying to get the tools (I'm on mac)

A nvidia-texture-tools-read-only/CMakeLists.txt
Checked out revision 1055.
Error - cmake is not available!

any help would be appreciated.

Its because you dont have "make" installed its part of xcode developer tools, you will also need mac ports installed so you can install libpng and libjpeg. I didn't realise when I posted that there were so many dependencies that were not already on OSX sorry.
http://code.google.com/p/nvidia-texture-...structions
find quote