Skip to content

This is a simple program that detects the real format of any specific file

Notifications You must be signed in to change notification settings

capt-jack00/ImageFormatChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageFormatChecker (IFC)

Overview

As we know the extension at the end of the file name doesn't determine the real file extension. It only tells the PC which program to use when trying to open the file. This way there may be a case where the file is named image.jpg but in reality it's just a PNG file. This program solves that problem. It checks the header bytes of the file to tell which format it's in.

Building

To build the program follow below steps:

  1. Create build directory and change the cwd to build
mkdir build && cd build
  1. Create build files
cmake ../
  1. Build the project
cmake --build ../build

After building the program the executable file will be created in build directory. Use below command to run it

./main

If it doesn't work change the permission of the main file to make it executable

sudo chmod +x main

Resources used in this project

About

This is a simple program that detects the real format of any specific file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published