Skip to content

Generates an image from a string passed via URL parameters

Notifications You must be signed in to change notification settings

beeve/MailToImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MailToJPEG

A small fun project that generates an image from an email string passed via URL parameters. Useful for if you want to hide your mail from scrapers to prevent receiving spam mail by implementing the generated image through an <img src="image.jpg"> tag.

Description

  • index.html - Simple HTML page with an input field and button to enter an email address. When submitted, it opens a new tab displaying a JPEG image with the entered text as text.
  • MailToJPEG.php - PHP script that creates a JPEG image with the email text using PHP's GD library.

Requirements

  • PHP with GD extension enabled
  • A local PHP development server (e.g. PHP built-in server)

Usage

  1. Start the PHP server in the project directory:

    php -S localhost:8000
  2. Open localhost:8000 in your browser

  3. Input a string into the input field and click on "Submit", the output opens itself in a new tab

Output example

Example of output

About

Generates an image from a string passed via URL parameters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published