264
70
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?
1oh,
/dev/null
is an argument hehe – Aquarius Power – 2014-12-09T20:31:26.480FWIW this is what I used to get the creation datetime of a photo:
identify -format "%[EXIF:DateTimeOriginal]\n" foobar.jpg
– kralyk – 2016-08-13T22:13:44.4832Current version of
file
does support displaying the size of JPEG without additional parameter:$ file foo.jpg
returnsfoo.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 72x72, segment length 16, Exif Standard: [TIFF image data, big-endian, direntries=1], baseline, precision 8, 120x120, frames 3
– Cœur – 2016-12-23T09:42:47.3537Could just be me but it seems imagemagick is actually loading image data there as it runs pretty slowly. imo
identify
should be used instead – jozxyqk – 2014-06-05T11:23:20.743