How to display image file size, extension, name, type?
I need to display display some image information on post page from featured image of that page. I need:
image file size (in kb or MB),
image type (.jpg,.gif…),
bare image name, with and/or without image extension (some-image-file-name.jpg)
Maybe it would be helpful if I say that I do not have any image in post content, one, and only image associated with post it is, and will be featured image.
It would be great to have separate functions to display that info of “medium” and image in “full” size, or at least of “full” size.
Could you please give me some functions which I can put in my theme files to display that info of featured image?
- The topic ‘How to display image file size, extension, name, type?’ is closed to new replies.