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.
- 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)
To use this tool, you need the following dependencies:
- Install Lua on your system.
- Install dependencies using LuaRocks:
luarocks install magick luarocks install dkjson luarocks install ffmpeg
- Clone this repository:
git clone https://github.com/yourusername/FileConvo.git cd FileConvo
Run the script with:
lua main.luaHere 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")Feel free to contribute by submitting issues or pull requests.
This project is licensed under the MIT License.
Designed and developed by Mustafa.