My new ExpressionEngine plugin, CG FileInfo was released today on Devot://ee.
Currently, there is no way to access all of the file metadata from within the Channel Entries loop, and it’s a highly requested feature:
http://ellislab.com/forums/viewthread/188900
CG FileInfo aims to solve this problem by giving you direct access to the native File Manager’s metadata and image manipulations within your templates.
Here’s an example of how you would use it:
{exp:channel:entries entry_id="1" dynamic="no"}
<h4>Original File Field</h4>
<p>{file}</p>
<p>{exp:cg_fileinfo file="{file}"}<br />
<br />
</p><h4>Mimetype</h4>
<p> {mime_type}</p>
<p> </p><h4>Thumbnail</h4>
<p> {thumbnail}</p>
<p> </p><h4>Caption</h4>
<p> {caption}</p>
<p> </p><h4>Size (human-readable size)</h4>
<p> {size} ({human_size})</p>
<p> </p><h4>Upload Date</h4>
<p> {upload_date format="%M %d %Y"}</p>
<p> </p><h4>Height and Width</h4>
<p> {height} x {width}</p>
<p> </p><h4>Is it an image?</h4>
<p> {if is_image}<br />
I say yes.<br />
{if:else}<br />
I say no.<br />
{/if}</p>
<p>{/exp:cg_fileinfo}<br />
{/exp:channel:entries}Check it out on Devot://ee.
Also, full documentation is provided.