How to Combine Image & PDF in Python

Опубликовано: 14 Май 2026
на канале: Radzi Zamri
27
like

In this tutorial, I show how to create a polyglot file using Python. The output file can work as both an image and a PDF at the same time. This is for learning and understanding how file structures work in cybersecurity.

For educational purposes only.

Source code:
https://github.com/zis3c/Polyglot-File

0:00 Intro
0:05 Install Dependencies
0:22 Run the Tool
0:30 Upload Files
0:46 Name the Polyglot File
1:04 Open as Image
1:19 Open as PDF