How to restrict wp generate attachment metadata() to certain intermediate image sizes

wp_generate_attachment_metadata() uses get_intermediate_image_sizes() to get the sizes to work on, which makes them filterable via intermediate_image_sizes.

Additionally, you can filter them after cleanup with intermediate_image_sizes_advanced, the result should be the same.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)