Retina attachments

Mike Creuzer

Well-known member
I was wondering if maybe XF could support retina for attachments.

Two main way I can think of but maybe something better Im not familiar with.
1. Read in the EXIF data, find out if Pixels Per Unit X is larger than Image Size X - if they are divisible by a value greater than 2, floor to nearest integer, then resize that image with CSS by using some data-retina attribute on the image
2. If the attachment is uploaded with a @2x or @3x somewhere in the file name

Probably something better than this but could be nice to have!