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
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