@@ -151,37 +151,37 @@ export default function SpeakerOpengraphImage({
151
151
display : "flex" ,
152
152
overflow : "hidden" ,
153
153
borderLeft : `2px solid ${ colors . neu600 } ` ,
154
+ width : RIGHT_COLUMN_WIDTH_PX + 2 ,
155
+ height : RIGHT_COLUMN_WIDTH_PX ,
154
156
} }
155
157
>
156
- { /* <div
157
- style={{
158
- position: "absolute",
159
- inset: 0,
160
- zIndex: 1,
161
- backgroundColor: colors.secLighter,
162
- mixBlendMode: "multiply",
163
- }}
164
- />
165
158
< img
166
159
src = { normalizeProtocolRelativeUrl ( speaker . avatar ) }
167
160
alt = ""
168
161
style = { {
169
162
objectFit : "cover" ,
163
+ // @vercel /og doesn't support mix blend mode
164
+ // and SVG `<image>` is crashing similarly to
165
+ // https://github.com/vercel/satori/issues/650.
166
+ // So we use `sepia` and `hue-rotate` to change
167
+ // the hue to around 79deg from the design system's
168
+ // secondary color (yellowish green).
169
+ filter : "sepia(1) hue-rotate(37.5deg)" ,
170
170
} }
171
171
width = { RIGHT_COLUMN_WIDTH_PX }
172
172
height = { RIGHT_COLUMN_WIDTH_PX }
173
- /> */ }
174
- < svg
175
- viewBox = { `0 0 ${ RIGHT_COLUMN_WIDTH_PX } ${ RIGHT_COLUMN_WIDTH_PX } ` }
176
- width = { RIGHT_COLUMN_WIDTH_PX }
177
- height = { RIGHT_COLUMN_WIDTH_PX }
178
- >
179
- < image
180
- href = { normalizeProtocolRelativeUrl ( speaker . avatar ) }
181
- width = { RIGHT_COLUMN_WIDTH_PX }
182
- height = { RIGHT_COLUMN_WIDTH_PX }
183
- />
184
- </ svg >
173
+ />
174
+ < div
175
+ style = { {
176
+ position : "absolute" ,
177
+ top : 0 ,
178
+ left : 0 ,
179
+ width : RIGHT_COLUMN_WIDTH_PX ,
180
+ height : RIGHT_COLUMN_WIDTH_PX ,
181
+ backgroundColor : colors . secLighter ,
182
+ opacity : 0.25 ,
183
+ } }
184
+ / >
185
185
</ div >
186
186
) }
187
187
</ div >
0 commit comments