WP_Query attachments by multiple IDs

I think you need to use post__in . The code will be something like:

$args = array(
    'post__in' => array( 1, 2 ),
    'post_type' => 'attachment',
    'post_mime_type' => 'image',
    'no_found_rows' => true,
    'posts_per_page' => 2,
    'post_status' => 'any'
);

$query = new WP_Query($args);

techhipbettruvabetnorabahisbahis forumuedueduedusedusedueduedusedueduedus