The other day, while using LL3.6, I needed to convert a
*.png image file to an
*.jpg one, before I could upload it to a website. I found the solution and thought I would share it with you - it's dead easy, which is what I like ...
It works in the terminal, through the
imagemagick application (which is pre-installed on LL3.6), as far as I'm aware.
1. Open terminal
2. Type:
convert image.png image.jpg
... where "image" is the name of your image file
However, you will need to indicate where image.png is located. For example, if it is in 'Downloads' folder, then type:
convert /home/[username]/Downloads/image.png image.jpg
It will then leave an image.jpg version of the file in 'Downloads', alongside the image.png one.
Other information:- it will keep the original file you started with, i.e. it won't be deleted during conversion
- other image file types can be converted (e.g. *.gif, *.bmp, *.tif), and in any direction, e.g. bmp to jpg or jpg to bmp, etc
- for batch files (those which contain commands), replace convert with mogrify
- the convert command can be used to rotate or resize images - for further details see https://www.lifewire.com/convert-linux-command-unix-command-4097060