ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Accessing Image MetaData

October 07, 2011 6:20am

Subscribe [3]
  • #1 / Oct 07, 2011 6:20am

    welshfusion

    19 posts

    I have a project requiring images as headings (no not my idea) & I wanted to set it up so the client can change the image headings themselves via file manager.

    We want to use CSS to set the image as a background image for a H3 tag- so the text is hidden and BG image displayed unless CSS is disabled.

    I had a look through the Db and there are Width & Height fields in the ‘exp_file_dimensions’ table. So I was wondering if there was a way to access these Width & Height values via the channel entries tag when outputting the image?

  • #2 / Oct 07, 2011 8:31pm

    Dan Decker

    7338 posts

    welshfusion,

    I looked through the User Guide for some clues. Width and Height are available as variables when using the File Module, but the don’t show as available when calling a file field. However, if you use a text input field in your channel and set the “Show File Browser” option, when you select and image to be place in that field, it will include the width and height automatically. Let me know if you have any further questions.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases