loadAttachmentContext

This loads an attachment's contextual data including, most importantly, its size if it is an image. It requires the view_attachments permission to calculate image size. It attempts to keep the "aspect ratio" of the posted image in line, even if it has to be resized by the max_image_width and max_image_height settings.
Parameters Summary
int $id_msg
array $attachments