Home › Forums › ACF PRO › how to get image width and height › Reply To: how to get image width and height
Using your example, the width and height of the above images will be at
here is that output of all values from an example gallery with one image
Array (  => Array ( [ID] => 389 [id] => 389 [title] => atomic-bomb-explosion [filename] => atomic-bomb-explosion.jpg [url] => .../wp-content/uploads/jpg/atomic-bomb-explosion.jpg [alt] => [author] => 1 [description] => [caption] => [name] => atomic-bomb-explosion-2 [date] => 2017-06-14 16:20:25 [modified] => 2017-06-14 16:20:25 [mime_type] => image/jpeg [type] => image [icon] => .../wp-includes/images/media/default.png [width] => 1400 [height] => 1050 [sizes] => Array ( [thumbnail] => .../wp-content/uploads/jpg/atomic-bomb-explosion-150x150.jpg [thumbnail-width] => 150 [thumbnail-height] => 150 [medium] => .../wp-content/uploads/jpg/atomic-bomb-explosion-300x225.jpg [medium-width] => 300 [medium-height] => 225 [medium_large] => .../wp-content/uploads/jpg/atomic-bomb-explosion-768x576.jpg [medium_large-width] => 474 [medium_large-height] => 356 [large] => .../wp-content/uploads/jpg/atomic-bomb-explosion-1024x768.jpg [large-width] => 474 [large-height] => 356 [post-thumbnail] => .../wp-content/uploads/jpg/atomic-bomb-explosion-672x372.jpg [post-thumbnail-width] => 672 [post-thumbnail-height] => 372 [twentyfourteen-full-width] => .../wp-content/uploads/jpg/atomic-bomb-explosion-1038x576.jpg [twentyfourteen-full-width-width] => 1038 [twentyfourteen-full-width-height] => 576 ) ) )
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
🤔 Curious about the ACF user experience? So are we! Help guide the evolution of ACF by taking part in our first ever Annual Survey and guarantee you’re represented in the results. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 8, 2023
© 2023 Advanced Custom Fields.