15
2020
Encode/Decode Audio To/From PNG Alpha Channel
Small test on embedding Audio data into PNG alpha channel.
With added option to shuffle pixels to hide/”encrypt” original image and sound.
To make sound file small enough, use this option to set low hz.
Ideas for later:
– Compress audio (tested RLE but didn’t do much with audio)
– Use full texture size automatically (currently just fills as long as have data)
– Resample audio in script, instead setting sample rate in audio importer
– Option to encode seed and/or hz value into texture
Sources: (take both scripts)
https://gist.github.com/unitycoder/6fece768157c038fb4c28d4b59931625

(note the alpha channel values starting from bottom)

(seed=123 and samplerate=1000 if you want to decode)
Example results
Related Posts
2 Comments + Add Comment
Leave a comment
Recent posts
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
Recent Comments
- on Mesh Exploder (sources)
- on Sprite Sheet Flip Book Shader
- on Sprite Sheet Flip Book Shader
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












Very interesting, thanks for your work.
spore png image hidden data:
http://www.rouli.net/2008/08/spores-png-format-illustrated.html