Jump to content
You must now use your email address to sign in [click for more info] ×

TGA corner pixels have Red and Blue channels swapped after export


Lorthiz

Recommended Posts

TLDR: When exporting to TGA(Targa) format UpperRight and LowerRight corners have their Red and Blue channels swapped.

 

Steps to reproduce:

1) Create any document.

2) Place in UpperRight or LowerRight corner object with color that has different Red and Blue channels. eg. R:125 G:00 B:00

3) Export image as TGA(Targa)

4) Load exported TGA image to AffinityDesigner.

 

Actual result:

One pixel in both right corners has Red and Blue components swapped. If we saved this color in one of corners: (R:125 G:00 B:00) the loaded pixel in that corner will be: (R:00 G:00 B:125)

Expected result: components are not swapped during export. Especialy useful if you are writing TGA loaders/converters and you are expecting that data you are loading is correct...

 

Additional info:

I have not experienced any problems with Green or Alpha chanel so it seems to be affecting only Red and Blue.'

Export size seems to not have affect it's always one pixel from both corners.

It's not loading problem. After checking TGA files with Hex editors and checking values stored inside the incorrect values are saved during export.

 

Files to reproduce and screenshots are attatched:

2 .afdesign files with sources that can be used to export check source files.

3 Exported TGA images where inproper behaviour can be spotted

3 Screenshots from symetric gradient presenting incorrect data after export.

4x4.tga

TGABug.afdesign

4x4GreenEdition.tga

TGAGradientBug.afdesign

TGAGradientBugBig.tga

LeftBottomCorner.png

RightTopCorner.png

RightBottomCorner.png

Link to comment
Share on other sites

  • 6 months later...
  • 3 years later...
  • Staff

The issue "TGA Export and Import is inverting a single pixel value." (REF: AF-478) has been fixed by the developers in internal build "2.4.0.2222".
This fix should soon be available as a customer beta and is planned for inclusion in the next customer release.
Customer beta builds are announced here and you can participate by following these instructions.
If you still experience this problem once you are using that build version (or later) please reply to this thread including @Serif Info Bot to notify us.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.