Wednesday, March 1, 2017

How to convert PNG to JPG on Ubuntu

Using the 'convert' command you can also convert PNG to JPG and vice versa, all can be done through the command line, nice and easy, just make sure you have the 'imagemagick' package installed on your system.

If you don't have 'imagemagick' package yet, you can install with this command:
sudo apt-get install imagemagick
Convert PNG to JPG
You can convert PNG to JPG like this:
convert [image-png][image-jpg]
convert my-picture.png my-picture.jpg
convert ubuntulogo.png ubuntulogo.jpg
Convert JPG to PNG
For JPG to PNG is the same just switch the position
convert [image-jpg][image-png]
convert nude-photo.jpg nude-photo.png
convert dirty.jpg dirty.png

No comments:

Post a Comment