rodrigosantosbr

[Ubuntu] How to convert a PNG to JPG using GraphicsMagick

Dec 29th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Install GraphicsMagick on Ubuntu

sudo apt-get install graphicsmagick

Convert PNG file to JPG

gm convert file.png file.jpg

Convert JPG file to PNG

gm convert street.jpg street.png

GraphicsMagick supports many more file formats, not just PNG and JPEG

Add Comment
Please, Sign In to add comment