The script will check if ImageMagick is installed, if the input file is specified and exists, if it is a PNG image, and then it will convert it to SVG format using the convert command from ImageMagick. The output file will have the same name as the input file, with the extension changed to .svg.
Install in Ubuntu:
git clone https://github.com/SathiraSriSathsara/image-coverter-for-linux.git
sudo apt-get update
sudo apt-get install imagemagick
on your Ubuntu machine, and make it executable using the command:
chmod +x png-to-svg.sh
Then, to convert a PNG file to SVG format, run the script with the PNG file as an argument, like this:
./png-to-svg.sh input_file.png