Media image information missing with new image after Umbraco upgrade from 8 to 10

, ,

I have upgrade my application from Umbraco 7 to 8 then 8 to 10. We notice, our newly uploaded image information is missing like, image height, width, size etc.

Also, wanted to add new properties to show image path but it’s also not working.

Note: We are using blob storage to save our images

From my experience, this happends if the blob is nog available. Or otherwise you can try to rebuild the different caches in the backoffice.

I’ve had this after an upgrade, though it was only an issue in the backoffice - the size/width/etc. properties were actually still there.

A few questions to help with debugging:

If you try and get one of those properties in the site (yourMediaItem.Size) is there a value there?

If you upload a new image are these properties correctly populated?

If you save and refresh do the values come back?

Hi Jason,

  1. Media Types properties for Image is default(ex:- umbracoWidth for Width, umbracoHeight for Height and so on) and yourMediaItem.Size means, do I need to add like this umbracoWidth.Size ? I tried this but no value coming.

  1. After uploading new image, properties value not coming.
  2. I tried to save and refresh as well but still value not coming.

Sorry, I mistyped - should have been UmbracoBytes :person_facepalming:

When you get the values in your site’s pages are the values there - as in
yourMediaItem.UmbracoBytes or yourMediaItem.Value("umbracoBytes")

Hi Luuk,

Yes, it is caches issue and It was only happening with blob storage.

Just one more things, How we set one properties in Image Media Types to show image path (blob storage image path)

Thank you

Hi Jason, I tried but it’s not working.