{"id":5494,"date":"2026-02-12T20:44:37","date_gmt":"2026-02-13T01:44:37","guid":{"rendered":"https:\/\/chubes.net\/?documentation=image-php"},"modified":"2026-03-13T03:27:45","modified_gmt":"2026-03-13T07:27:45","slug":"image-php","status":"publish","type":"documentation","link":"https:\/\/chubes.net\/docs\/wordpress-core\/admin-includes\/image-php\/","title":{"rendered":"image.php"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Overview<\/h2><p>Core image handling helpers used by the media library and image processing workflows.<\/p><h2 class=\"wp-block-heading\">Functions<\/h2><ul class=\"wp-block-list\"><li><code>wp_crop_image()<\/code> \u2014 File contains all the administration image manipulation functions.<\/li><li><code>wp_get_missing_image_subsizes()<\/code> \u2014 Compare the existing image sub-sizes (as saved in the attachment meta)<\/li><li><code>wp_update_image_subsizes()<\/code> \u2014 Filters the array of missing image sub-sizes for an uploaded image.<\/li><li><code>wp_create_image_subsizes()<\/code> \u2014 Creates image sub-sizes, adds the new data to the image meta <code>sizes<\/code> array, and updates the image metadata.<\/li><li><code>wp_copy_parent_attachment_properties()<\/code> \u2014 Copy parent attachment properties to newly cropped image.<\/li><li><code>wp_generate_attachment_metadata()<\/code> \u2014 Generates attachment meta data and create image sub-sizes for images.<\/li><li><code>wp_exif_frac2dec()<\/code> \u2014 Filters the parameters for the attachment thumbnail creation.<\/li><li><code>wp_exif_date2ts()<\/code> \u2014 Converts the exif date format to a unix timestamp.<\/li><li><code>wp_read_image_metadata()<\/code> \u2014 Gets extended image metadata, exif or iptc as available.<\/li><li><code>file_is_valid_image()<\/code> \u2014 Filters the image types to check for exif data.<\/li><li><code>file_is_displayable_image()<\/code> \u2014 Validates that file is suitable for displaying within a web page.<\/li><li><code>load_image_to_edit()<\/code> \u2014 Filters whether the current image is displayable in the browser.<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>Overview Core image handling helpers used by the media library and image processing workflows. Functions wp_crop_image() \u2014 File contains all the administration image manipulation functions. wp_get_missing_image_subsizes() \u2014 Compare the existing&#8230;<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"footnotes":""},"tags":[],"project":[596],"project_type":[749],"class_list":["post-5494","documentation","type-documentation","status-publish","hentry","project-admin-includes","project_type-wordpress-reference"],"project_info":{"id":589,"name":"WordPress Core","slug":"wordpress-core"},"project_type_info":{"id":749,"name":"WordPress Reference","slug":"wordpress-reference"},"_links":{"self":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/types\/documentation"}],"version-history":[{"count":2,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5494\/revisions"}],"predecessor-version":[{"id":7921,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5494\/revisions\/7921"}],"wp:attachment":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/media?parent=5494"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/tags?post=5494"},{"taxonomy":"project","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project?post=5494"},{"taxonomy":"project_type","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project_type?post=5494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}