Lorthiz Posted September 17, 2019 Share Posted September 17, 2019 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 Quote Link to comment Share on other sites More sharing options...
Staff Sean P Posted September 17, 2019 Staff Share Posted September 17, 2019 Hi Lorthiz, Thanks for letting us know. I've reproduced this here and I believe there is a fault in both saving and loading the TGA. For example opening a TGA saved in Photoshop will display 1 inverted pixel as well! I will get it passed on to development. Lorthiz 1 Quote Link to comment Share on other sites More sharing options...
Lorthiz Posted April 6, 2020 Author Share Posted April 6, 2020 @Sean P Hello, do you know what is the state of this issue? I can see my post has an issue number label pinned to it but I don't have access to your internal issue tracker so I can't check it myself Quote Link to comment Share on other sites More sharing options...
Staff Affinity Info Bot Posted January 9 Staff Share Posted January 9 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.