Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Site I'm building needs to use one of the already uploaded images (different one for each template and clone) as the 'OG' image for OG and Twitter image head tags.

These tags need to know the image width and height.

Is there an easy way without enabling EXIF to get the width and height of an uploaded image. I'll likely enforce width with the cms:thumbnail tag to generate suitably sized images but they all will have different aspect ratios so need to know resulting height.

Is this a get_image_size() task or has something been coded for this already?

TY
Perhaps @tim's solution would help? -
viewtopic.php?f=8&t=10386&p=25442#p26494
Great stuff, thank you :)
3 posts Page 1 of 1