Souce Code of creating small image by PHP

https://grabify.icu
Email tracking pixels are a safe and secure tool that you can use to supercharge your marketing campaigns while giving your recipients exactly what they want.
An email tracking pixel is a 1px by 1px square image created by a line of code that is inserted into an email message. It’s not obvious to the recipient that email tracking pixels are present because they are often transparent and placed somewhere discreet in the header or footer of the email. Do you have question of :How many people open your emails, how many people click through links, and the general success rate of each campaign.


Source code of PHP to create a image:
                


   <?php 
        
        $im 
imagecreatetruecolor(11);
        
$text_color imagecolorallocate($im2331491);
        
imagestring($im155,  'A Simple Text String'$text_color);

        
// Use header to indicate file type —— For this example: image/jpeg
        
header('Content-Type: image/jpeg');

        
// Output image
        
imagejpeg($im);

        
// Free Memory
        
imagedestroy($im);
   
?>

Step One
MaiPDF
Step Two
MaiPDF
Step Three
MaiPDF

Some logging activity can be performed before displaying the image

Each link should be distinguished by some variables, for example, we can use "GET" to pass in different variables. Each varialbe can be assigned to different users!

                
   <?php 

    
//We can pass in 'Get' variable to make each link unique in order to track accordingly
    
if(isset($_GET['mail'])){
      
$keyhtmlspecialchars($_GET['mail']);
    }
   
    
//Below to line's function is to log device inforamtion and their ip address
    
$agent=$_SERVER['HTTP_USER_AGENT'];
    
$ip $_SERVER['REMOTE_ADDR'];


    
//Option1:we can use a SQL database to log details
    
$conn = new mysqli($servername$username$password$dbname);
    if (
$conn->connect_error){
        die(
"连接失败: " $conn->connect_error);
    } 
    
//Option2:we can also use a txt file to log data alternatively
    
$myfile fopen("feed.txt""a+") or die("Unable to open file!");
    
fwrite($myfile$rich);
    
fclose($myfile);

    
//After the log of data, we can use the code from part1 to display image afterward

   
?>

   <?php 
        
        $im 
imagecreatetruecolor(12020);
        
$text_color imagecolorallocate($im2331491);
        
imagestring($im155,  'A Simple Text String'$text_color);
        
header('Content-Type: image/jpeg');
        
imagejpeg($im);
        
imagedestroy($im);
   
?>

You can try https://grabify.icuto get some idea.

Other IP Logger web tool using the similar funciton
Isn’t it good to know if people have read my emails? All my messaging apps have read receipts and they can be handy... Both the sender and the recipient can clearly see whether their own messages are being read or ignored. You can also using some javascript and cookie to track more data!
MaiPDF is also a greate tool of free virtual data room. MaiPDF makes the pdf into a shareable link and QR code, and add free DRM to it. It can also track the file open information like email trackers do. Links to maipdf https://maipdf.com