Crop image sizes directly from Media Library across network (not attached to post or page but sidebar)

You could try

$images[]= wp_get_attachment_image_src($image->ID, 'thumbnail')

Or define a new image size in functions.php

add_image_size()

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