Skip to content

mustafaC0der/FileConvo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FileConvo

File conversion tools in Lua. These were made as practice to improve my skills in Lua.

⚠️ WARNING: This is in active development. Some features may not work as intended.

Functionality

  • Convert a PNG to JPEG, WebP, and BMP
  • Convert a .txt file to PDF, JSON, and CSV
  • Convert an audio file (e.g., MP3) to other formats (e.g., WAV)

Requirements

To use this tool, you need the following dependencies:

Installation

  1. Install Lua on your system.
  2. Install dependencies using LuaRocks:
    luarocks install magick
    luarocks install dkjson
    luarocks install ffmpeg
  3. Clone this repository:
    git clone https://github.com/yourusername/FileConvo.git
    cd FileConvo

Usage

Run the script with:

lua main.lua

Example

Here are some examples of how you can use the tool:

local image_converter = require("src.convert_image")
local text_converter = require("src.convert_text")
local audio_converter = require("src.convert_audio")

image_converter.convert_image("example.png", "jpg")
text_converter.txt_to_json("example.txt", "example.json")
text_converter.txt_to_csv("example.txt", "example.csv")
text_converter.txt_to_pdf("example.txt", "example.pdf")
audio_converter.convert_audio("example.mp3", "wav")

Contributions

Feel free to contribute by submitting issues or pull requests.

License

This project is licensed under the MIT License.


Designed and developed by Mustafa.

About

File conversion tools in lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published