id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 42745,Pass $attachment_id to intermediate_image_sizes_advanced filter,robbie505,johnbillion,"I'm requesting that the following patch be added, which simply passes the $attachment_id of the image to be used for the new post thumbnail sizes to the '''intermediate_image_sizes_advanced''' filter in the ''wp_generate_attachment_metadata'' function. The purpose of this is for unsetting intermediate sizes based on conditions for specific images. For example, I have a need for creating large private galleries with thumbnails-only. So to save hosting storage, I could unset several image-sizes in the '''$sizes''' array, depending on a post_meta of the '''$attachment_id'''.",enhancement,closed,normal,5.1,Media,2.9,normal,fixed,,,