|

ATF to PNG Converter Tool

A few days ago a client asked me if I can convert ATF (Adobe Texture Format) to PNG images. Knowing that ATF files are used by some Starling developers when developing games and applications with Adobe Air, I knew that I could build a tool that will load the graphic, add it to the stage, then basically, take a screenshot of the entire stage and save it as a PNG image file. It took a a few hours to get the final application done. I’ve made it available for download in case anyone else needs to convert ATF to PNG (with transparency).

  ATF2PNG (139.8 KiB, 9,115 hits)

Similar Posts

17 Comments

  1. Hello Mr. vamapaull.com

    Can You build Your Tool so i can use atf Images v0.6 ?
    Only ATF Tools 0.6 from Adobe Gaming Sdk 1.4 can View
    this Images.

    https://github.com/yinqiang/atf2png/commit/58d7e46bae571aedd6079e165de902f92c55ab96
    https://github.com/xenocracy/atf-Picture-and-Viewer/releases from me and Adobe
    https://github.com/messi89/ATF2PNG
    https://github.com/yinqiang/atf2png
    https://github.com/yinqiang/atf2png/tree/master/build/Atf2png.air Ok v0.6 atf ?!

    https://github.com/xenocracy
    atf-Picture1.zip and ATF.Tools.0.6.zip (v0.5 and v0.6)
    Pictures in it, From Adobe Gaming Sdk 1.4 extracted Tools.

    Mr. Yinqiang Zhu from China has for me actually already be project for atf v0.6
    extended and completed successfully. He gave me
    then finished atf 0.6 images successfully converted to png.
    Only for me His tool has never worked. Why I do not know.
    Only v0.5 Pictures ok to convert to png from him.

    I have tested on all Windows System with all Adobe AIR Installer.
    Your Tool atf2png /PNG/testfile.png the same Error only 17 kbyte with empty contents.

    Can You Help me ? Thank You for a Info or else

    Greets from Germany Europe me
    I speak a little English and ohter is Google Translator sorry.

    Tools I have:
    Adobe Flash Builder 4.7, Adobe Gaming Sdk 1.4 and other

  2. I’ve looked through Yinqiang Zhu code and he’s doing what I’m also doing. He adds the image to the stage and then make draws a BitmapData that he later saves as a PNG. His tool is not working for me either for V0.6 ATF files. I’m not sure if I can help you convert those images.

    Also, the xenocracy picture viewer does not have the source code available on github. Those are just some empty files.

  3. “Those are just some empty files”
    I do not understand quite what they mean.
    ATFViewer.exe can open atf Picture\v6\alliance0.atf
    Yes only Adobe has the Sourcecode from ATFViewer.exe sorry
    Your ATF2PNG.air can open and convert: atf-Picture1\atf Picture\v5\lena.atf

    https://github.com/yinqiang/atf2png
    But Yinqiang Zhu should be able to open v06
    see it as something in the code that is helpful.
    And that is exactly what allows the successful
    convert v06 atf?. He told me yes my successful atf06
    converted.

    Have You tested Atf2png.air build v0.2 by him ?
    https://github.com/yinqiang/atf2png/tree/master/build

    have an idea?

    Thank You for Help me 🙂

  4. and what exactly is crucial if the atf images in version 5 or 6 is stored correctly in the source code. I’m just not a programmer. Can you enlighten me then after area?
    they have no possibility of your code to change so that you can convert atf 0.6?.

    Thanks for a hint regards

  5. Doesn’t work. Everything I try converting just becomes a 256 x 256 white square.

  6. I was able to get atf2png to work on approximately 15% of the files I was using. Now I have been forced to upgrade to Windows 10 and I cannot seem to get the program to initialize. Is ATF2PNG compatible with Windows 10?

    Thank you.

  7. Hi, This tool is very good, thank you.
    But
    It can’t convert big file for example 8 megabyte , or 4 mb and more.
    when i choose the big file, the program will be white !!!
    any help or idea?

  8. Today I built a tool in AIR to convert ATF spritehseets to PNG components and I encountered the issue where a large amount of my PNG’s would be output as white images. To fix the issue, I made sure my stage size was at least as big as the largest asset: problem solved.

    Not sure if this is related to the issues mentioned above, but worth a shot.

  9. Hi there Mr.Paul

    Your tool is definitely something that is amazing.

    I would like to ask your assitance with an issue i am having. Whenever the files ar roughly around 1Mb or less, they get converted really easly and quickly, but if i try to convert ATF files that are about 2Mb or more.. they seems to never getting converted to PNG. The tool seems to be stuck into the work of converting them but never seems to end the conversion. I tried to wait even 10-20m for each image, as i was thinking that since the files are big, the tool would need more time to do that, but nothing.

    How can i convert those files (they are all around 3MB each) to PNG?

  10. Hi Bryan !

    If you are using tool like PNG2ATF to convert back your images to .ATF i think that the images are or Protected from decomplation or a bit corrupted and that prohibit the Convertion back to PNG so if you still have your main image or texture thats probably the only way you can get trough this.

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? Please solve:Captcha