add_image_size() cropped only if width of the image matches or is higher

You will need to do a check for the image size before you add the add_image_size in that case. You can use wp_get_attachment_metadata() to find the size of the image. https://codex.wordpress.org/Function_Reference/wp_get_attachment_metadata

Leave a Comment

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