Applications Home|Email

 GIFText - Write Invisible Text To GIF Images

Version 1.2

GIFText is a vbscript class that lets you write text to GIF images. Invisible text can be stored in special built-in comment blocks, without affecting the actual display of the image.


How to use it:

Set oGif = New cGIFText

With oGif
    '// File path to GIF
    .FilePath = "C:\original.gif"
    '// Save new GIF to this path
    .SavePath = "C:\new.gif"
    '// Should we delete all existing text?
    .DeleteExisting = True
    '// Write this text to the new GIF
    .Comment = "This is my secret text."
    '// Call the one public method.
    bSuccess = .WriteGIFText
    '// Return a human readable error message
    If Len(.ErrorMessage) > 0 Then Response.Write .ErrorMessage
End With

Set oGif = Nothing


- Not all GIF images contain these text blocks because they are optional.
- Any software capable of displaying GIF images, like web browsers, Photoshop, IrfanView etc, will ignore the comment blocks.
- See GIFFormat and GIFInfo for more information on the GIF file format.



- Hiding a message inside another message is called Steganography: http://en.wikipedia.org/wiki/Steganography
- http://www.w3.org/Graphics/GIF/spec-gif89a.txt


View cGIFText.txt

  Download demo project

Therefore: For that or this for it.
© www.u229.no