G
G
grechnik2282018-11-07 21:59:40
Google Blogger
grechnik228, 2018-11-07 21:59:40

How to find Image Metadata in blogspot?

There is an operator <data:view.featuredImage/>
I would like to know the Metadata of the photo in the blogger template. Namely width, height.
Found

<!-- WIDTH -->
<data:view.featuredImage.width/>

<!-- HEIGHT -->
<data:view.featuredImage.height/>

But it did not lead to anything good .. Can anyone tell me how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web_xaser, 2018-11-07
@webxaser

The tags you provided are valid if you explicitly specify the width and height of the image. For example:

<!-- Добавлено изображение -->
<img expr:src='data:view.featuredImage' expr:alt='data:post.title' height='200' width='300'/>
<!-- Добавлен блок с высотой изображения -->
<div expr:style=&quot;height: &quot; + data:view.featuredImage.height + &quot;;&quot;>...</div>

More details are here and here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question