How to print alt or title field image in custom block programmatically?
You can load the node and then fetch the paragraph targetid . Later you can load paragraph targetid and then get all attributes of the image.

use Drupal\paragraphs\Entity\Paragraph; 
use Drupal\node\Entity\Node;

$node = Node::load($nid);
$paragraph_field = $node-&gt;get("field_paragraph")-&gt;getValue();
$paragraph = Paragraph::load($paragraph_field[0]['target_id']);
$image_alt = $paragraph-&gt;my_image_field-&gt;alt;
$image_title= $paragraph-&gt;my_image_field-&gt;title;