Hi,

just a quick question.

How do I display imagefield's image size (kb) and dimensions (pixels) in View?

Thanks a lot.
Petiar.

Comments

quicksketch’s picture

Add a relationship for your image field (Content: Field name), then you can add all the File view fields like File: File size. Note that you must install FileField Meta (part of FileField module) if you want to pull out dimensions, since these are not normally stored in the database without it.

petiar’s picture

Status: Active » Closed (fixed)

Thanks mate!

MohammadMoussa-Lebanon’s picture

Status: Closed (fixed) » Active

Sorry i have the same problem but the situation here is that
i have an image in the cck 350px x 350px
i want to represent the same image in two pages across the views but n each page with different dimensions.please help me , i tried the relation but i did not see boxes to select the dimensions

quicksketch’s picture

Status: Active » Closed (fixed)

@che_viva: Your question is a different one from the one asked here. Please file a new issue.

MohammadMoussa-Lebanon’s picture

ok thanks i got the solution , its sold from image cache i create the resizing needed then in the views i add contnet of type image and choosing from the list the name of the image cache i created before , thanks :D

Wolfgang Reszel’s picture

Is there a way for Drupal 7?

jwilson3’s picture

For a D7 solution, refer to FileEntity module issue: #1365206: Views filter handler for image dimensions... fyi, it hasn't been built yet :-/