Home   Help Search Login Register  

Author Topic: paa -> jpg  (Read 2836 times)

0 Members and 1 Guest are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
paa -> jpg
« on: 22 Sep 2005, 15:51:40 »
I know this sounds stupid, and I know I've done it before ... but I can't remember how, nor can I find it already mentioned here.

How do you convert a .paa file into a .jpg?

No I don't have photoshop or paint shop pro ... although I do have a horrible feeling that is the answer.   Please tell me I'm wrong.

BIS's texview doesn't do it.  It apparantly does jpg -> paa, but not the other way around.

Many thanks
Plenty of reviewed ArmA missions for you to play

Offline Pilot

  • Contributing Member
  • **
Re:paa -> jpg
« Reply #1 on: 22 Sep 2005, 15:56:42 »
Texview will save paa to tga.  Then, using any standard photo editor, convert the tga to jpg. 8)

-Student Pilot

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:paa -> jpg
« Reply #2 on: 22 Sep 2005, 15:59:25 »
If I recall correctly, you can save the image in targa format (.tga) from texview by writing .tga as file extension to the file name box in the save dialog.

Then you can use some general image editing program to save the image to whatever format you need.

I recommend GIMP for an image editor program. It is free and does the same job as photoshop. AND you get exactly the same interface also for Linux, if you happen to have a Linux OS installed.

:P
« Last Edit: 22 Sep 2005, 16:01:48 by Baddo »

Offline Pilot

  • Contributing Member
  • **
Re:paa -> jpg
« Reply #3 on: 22 Sep 2005, 16:03:44 »
Yes, GIMP is an awesome program.  It's the only editor I have that edits alpha channels.  I also highly recommend it.

-Student Pilot

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:paa -> jpg
« Reply #4 on: 22 Sep 2005, 17:28:30 »
Brilliant chaps, thank you.     Done and dusted.

I'll solve this in a day or so.
Plenty of reviewed ArmA missions for you to play

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:paa -> jpg
« Reply #5 on: 23 Sep 2005, 09:05:44 »
After editing the TGA file, how does one convert it back to .PAA?  If I save it as .JPG I lose the alpha channels and the part that was supossed to be clear becomes grey.

Offline Trapper

  • Honoured Contributor
  • ***
  • I'm a llama!
Re:paa -> jpg
« Reply #6 on: 23 Sep 2005, 12:24:47 »
Open the tga with Texview and save it as paa.

You have to change the file extension to .paa in the save as window to do so.

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:paa -> jpg
« Reply #7 on: 23 Sep 2005, 18:31:04 »
TextView will not open the TGA that I save using GIMP.  Do I have to save it using a certain color depth, I think GIMP defaults to 32 bit, do I have to save it at 24 bit?  If so how? I am just barely learning GIMP.
« Last Edit: 23 Sep 2005, 18:31:26 by Raptorsaurus »

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:paa -> jpg
« Reply #8 on: 23 Sep 2005, 18:35:07 »
Dunno Raptorsaurus, but what does Texview readme say about it? Don't have it here right now but it lists the requirements...?

#EDIT:

Quote
Supported formats
=================

Input:

JPG
TGA (24 bit / 32 bit with alpha channel )
PAA
PAC

Important note: All input textures should have resolution 2^x / 2^y (e.g. 16 / 16, 32 / 32, 64 / 64, 256 /256)

Output:
TGA (32 bit with alpha channel)
PAA/PAC ( 12 bit RGB + 4 bit alpha channer / 8 bit grayscale + 8 bit alpha channel / 16 bit DTX DirectX compressed texture format with optional 1 bit alpha channel)

Does your image fulfill all those requirements?

BTW, I think images can also be like 128x256, 64x256 etc... not just 256x256 128x128 and so on.
« Last Edit: 23 Sep 2005, 18:40:45 by Baddo »

Offline Raptorsaurus

  • Editors Depot Staff
  • *****
Re:paa -> jpg
« Reply #9 on: 23 Sep 2005, 20:08:06 »
Yes it does.  It was a .paa, I used textview to convert it to .tga, then I edited it in GIMP and resaved the file (32 bit TGA with alpha channel).  Now textview will not open it.  Just to experiment to see if my editing had some effect I tried to just open the orginal tga file using textview and it would not open it.  But I think this is getting off the orginal topic so I will PM someone with some experience with GIMP.  I must be doing something wrong somewhere.

Offline Baddo

  • Former Staff
  • ****
  • Reservist Jaeger
Re:paa -> jpg
« Reply #10 on: 23 Sep 2005, 20:28:12 »
You can open Texview's example targa image in GIMP and examine it there, what's different?

Then try to change it and open in Texview.

#EDIT 1:

There might be a bug in GIMP's tga plug-in which affects how alpha channel is marked to the saved tga file. Investigations continue...

#EDIT 2:

...and the solution for the problem is to uncheck the "RLE compression" checkbox when saving a TGA file in GIMP. Then Texview is able to open it.

#EDIT 3:

"RLE compression", not "RLE packing"...

 ::)

#EDIT 4: If you are saving an old targa image with GIMP, use the "Save as..." instead of "Save" and you'll get the popup box where you can disable "RLE compression". With "Save" it doesn't appear if it's an old file.
« Last Edit: 24 Sep 2005, 20:21:53 by Baddo »