Do anyone know how to encode logos and picture messages using PHP?

I have looked all over PHP.net's site... have found nothing to help me encode anyting usefull!