RSS Feed/News Retina attachments

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,750
Points
823

Reputation:

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...

Read more

Continue reading...
 
Status
Not open for further replies.
Top