Page 1 of 1

How to extract metadata like width and height from pictures?

Posted: Wed Aug 21, 2019 1:21 pm
by bonkabonk
How do I extract metadata like width and height from pictures and put them into a -CSV file, or even a text file?

I see XnView uses Exiftool or something like that, which makes me believe it is possible

Re: How to extract metadata like width and height from pictures?

Posted: Tue Aug 27, 2019 12:45 pm
by xnview
you have 'Create>File listing'

Re: How to extract metadata like width and height from pictures?

Posted: Tue Aug 27, 2019 12:54 pm
by cday
xnview wrote: Tue Aug 27, 2019 12:45 pm you have 'Create>File listing'

Code: Select all

DirectoryFilename With Ext	Size	Format	Comment	
/home/chris/Test_images/Desert.jpg	578.44 KiB	JPEG TrueColor (v1.1)	
/home/chris/Test_images/Tulips.jpg	106.22 KiB	JPEG TrueColor (v1.1)	
Create>File listing shows file size in KiB, but not image width and height in pixels? :(

Re: How to extract metadata like width and height from pictures?

Posted: Tue Aug 27, 2019 4:05 pm
by xnview
you can add fields {Width} or {Height}

Re: How to extract metadata like width and height from pictures?

Posted: Tue Aug 27, 2019 5:26 pm
by cday
xnview wrote: Tue Aug 27, 2019 4:05 pm you can add fields {Width} or {Height}

Thanks, but not so obvious to just type those headings into the rows...

Code: Select all

Directory Filename With Ext	 Size height width	Format	
/home/chris/Test_images/ Desert.jpg	 578.44 KiB 768 1024	JPEG TrueColor (v1.1)
/home/chris/Test_images/ Tulips.jpg	 106.22 KiB 768 1024	JPEG TrueColor (v1.1)
Are there other unlisted parameters that can be displayed?

Re: How to extract metadata like width and height from pictures?

Posted: Wed Aug 28, 2019 7:51 am
by xnview
you can choose fields with menu

Re: How to extract metadata like width and height from pictures?

Posted: Wed Aug 28, 2019 8:19 am
by cday
xnview wrote: Wed Aug 28, 2019 7:51 am you can choose fields with menu
Right, the small arrows to the right of the boxes open a drop-down list! :D