Please install the following software on your server to support different file formats. For example converting a JPG format image to SVG, AI, PNG, JPEG, and many more.
Inkscape:
Inkscape is a free and open-source vector graphics editor. This software can be used to create or edit vector graphics such as illustrations, diagrams, line arts, charts, logos, icons, and complex paintings.
To install Inkscape run the following commands:
For Ubuntu Operating System
sudo add-apt-repository ppa:inkscape.dev/stable-daily
sudo apt-get update
sudo apt-get install inkscape
For CentOS
yum update
yum install inkscape
Ghostscript:
Ghostscript can be used as a Raster Image Processor (RIP) for raster computer printers for instance, as an input filter of line printer daemon or as the RIP engine behind PostScript and PDF viewers. Ghostscript can also be used as a file format converter, such as PostScript to PDF converter.
To install Ghostscript run the following commands
For Ubuntu Operating System
sudo apt update
sudo apt install ghostscript
For CentOS
yum update
yum install ghostscript
ImageMagick:
ImageMagick is a software suite that creates, edits, composes, or converts bitmap images. It can read and write images in over 200 formats. We may use ImageMagick commands to resize, rotate, and transform images, adjust image colors, apply various special effects, or draw text, lines, and shapes.
To install ImageMagick run the following commands:
For Ubuntu Operating System
sudo apt-get install php-imagick -y
sudo apt-get install build-essential checkinstall libx11-dev libxext-dev zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev libxml2-dev -y
wget https://www.imagemagick.org/download/ImageMagick.tar.gz && tar -xvzf ImageMagick-7.1.0-9.tar.gz && cd ImageMagick-7.1.0-9 && ./configure && make && make install && make distclean && sudo ldconfig
For CentOS
yum install php-pear php-devel gcc
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
tar -vxf ImageMagick.tar.gz
sudo yum -y install libpng-devel libjpeg-devel libtiff-devel
cd ImageMagick
/configure --without-x
make && make install