Am working on a web-app, and currently am migrating some stuff from an old app, but I hate that I have to open an image editor to get some info about images I am migrating. Things like image dimensions.
Is there a command-line tool I can use for such tasks in Linux?
Best Answer
For some image formats you can just use the
file
command:Not all image formats report the size (JPEG most notably doesn't):
For those you will have to use something more elaborate, like:
The
convert
command is part of the ImageMagick package.