Page 1 of 1
Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-02T07:32:45-07:00
by Rastar
I am trying to convert a Photoshop (psd) file to the TGA format. The original has an alpha channel, but I seem to be unable to get this over into the target image. I tried both convert and mogrify and all the different -alpha options (on, set etc), but to no avail.
What exactly would be the command line for doing this? Thanks!
Re: Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-02T08:23:20-07:00
by snibgo
As I understand it (I don't), PSD files have different types of alpha. IM understands only one of them.
If you put the PSD somewhere like dropbox.com and paste the URL here, someone can take a look.
Re: Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-02T09:33:17-07:00
by fmw42
What version of IM are you using and what platform? Please always provide that.
According to the changelog a bug was fixed for transparency in PSD files recently.
2014-05-12 6.8.9-2 Dirk Lemstra <dirk@snakeware...>
Fixed detecting transparency in PSD files (reference
viewtopic.php?f=3&t=25634).
But I am not sure if IM supports transparency in targa files.
Try converting a PNG with transparency to targa. If that works, then it might be the PSD fix and you might need to upgrade.
Re: Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-02T12:44:11-07:00
by Rastar
Well, I have 6.8.9-1 (on OSX 10.9 by the way). Alphas from other formats usually work, so I guess I have to update. Thanks!
Re: Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-02T12:45:40-07:00
by fmw42
Rastar wrote:Well, I have 6.8.9-1 (on OSX 10.9 by the way). Alphas from other formats usually work, so I guess I have to update. Thanks!
6.8.9.1 should be fine.
Please upload your PSD file to dropbox.com (public folder) and put a link here so the IM developers and others can see how your PSD file has defined transparency.
Re: Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-03T00:25:40-07:00
by Rastar
Hi,
this is a texture from a third-party (commercial) game asset package, so I don't feel comfortable putting it on a public drive. i wouldn't write sending it per PM though, so if a IM developer is interested in looking into this just let me know where to send it to. Thanks for your support!
Re: Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-03T00:29:26-07:00
by dlemstra
Send me a PM with a link to a dropbox file or your e-mail where I can contact you. Did you upgrade to 6.8.9-2?
Re: Convert PSD to TGA - preserve alpha channel
Posted: 2014-06-03T10:14:02-07:00
by fmw42
Try upgrading to 6.8.9.2. I notice there are some changes to fix issues with both PSD and Targa that dlemstra made. From the changelog
2014-05-12 6.8.9-2 Dirk Lemstra <dirk@snakeware...>
Added support for writing RLE compressed TGA files (reference
viewtopic.php?f=3&t=12335).
Fixed detecting transparency in PSD files (reference
viewtopic.php?f=3&t=25634).