Creates a ‘sizes’ attribute value for an image.
wp_get_attachment_image_sizes
Retrieves the value for an image attachment’s ‘sizes’ attribute.
wp_calculate_image_srcset
A helper function to calculate the image sources to include in a ‘srcset’ attribute.
wp_get_attachment_image_srcset
Retrieves the value for an image attachment’s ‘srcset’ attribute.
Advertisement
_wp_get_image_size_from_meta
Get the image size as array from its meta data.
_wp_get_attachment_relative_path
Get the attachment path relative to the upload directory.
wp_get_attachment_image_url
Get the URL of an image attachment.
wp_get_attachment_image
Get an HTML img element representing an image attachment
Advertisement
wp_get_attachment_image_src
Retrieves an image to represent an attachment.
wp_get_registered_image_subsizes
Returns a normalized list of all currently registered image sub-sizes.
get_intermediate_image_sizes
Gets the available intermediate image size names.
image_get_intermediate_size
Retrieves the image’s intermediate size (resized) path, width, and height.
Advertisement
wp_image_matches_ratio
Helper function to test if aspect ratios for two images match.
image_make_intermediate_size
Resizes an image to make a thumbnail or intermediate size.
image_resize_dimensions
Retrieves calculated resize dimensions for use in WP_Image_Editor.