Portraits du site : Pexels à la place de randomuser.me

Camille et Alex (hero, « Pour qui ») venaient de randomuser.me, sans licence établie pour un site public. Remplacés par deux portraits Pexels recadrés en 400 x 400 (Clay Elliot, Vitaly Gariev), sources dans CREDITS.md. Images d'aperçu refaites depuis le hero actuel, sur le fond de la DA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
IliesAllaliandClaude Opus 5.5 committed 2026-09-30 18:37:26 +02:00
1 parent bd4f5856ad
commit a289c128f4
7 files changed
+8 -12

No files matched your search

+3 -6
View File
@@ -9,12 +9,9 @@ Les prénoms affichés sur le site (Camille, Alex, Lya...) sont fictifs. Les pho
| `souvenir-1511895426328.webp` | Unsplash, `https://images.unsplash.com/photo-1511895426328-dc8714191300` | Licence Unsplash |
| `souvenir-1519741497674.webp` | Unsplash, `https://images.unsplash.com/photo-1519741497674-611481863552` | Licence Unsplash |
| `lya-14.webp`, `marc-56.webp`, `jeanne-85.webp` | Pexels (page source non consignée à l'ajout, le 24/09/2026) | Licence Pexels |
| `women-44.webp` | randomuser.me, `https://randomuser.me/api/portraits/women/44.jpg` | Non établie, voir plus bas |
| `men-32.webp` | randomuser.me, `https://randomuser.me/api/portraits/men/32.jpg` | Non établie, voir plus bas |
| `women-65.webp` | randomuser.me, `https://randomuser.me/api/portraits/women/65.jpg` (plus utilisée par le site) | Non établie, voir plus bas |
| `camille-39.webp` | Pexels, photo de Clay Elliot, `https://www.pexels.com/photo/woman-in-black-shirt-smiling-14634932/` | Licence Pexels |
| `alex-41.webp` | Pexels, photo de Vitaly Gariev, `https://www.pexels.com/photo/confident-adult-man-in-outdoor-setting-36712860/` | Licence Pexels |
Les URL Unsplash ci-dessus viennent de la première version de la landing (commit fd58488), qui chargeait ces images en direct. Les auteurs ne sont pas notés.
## Portraits randomuser.me
randomuser.me indique seulement que ses photos ont été « choisies dans la section autorisée de UI Faces ». UI Faces a depuis retiré ces photos agrégées et précise qu'elles venaient de sources aux licences différentes, à vérifier avant tout usage public. Aucune licence ne couvre donc clairement leur usage sur un site public. À remplacer par des portraits dont la licence est connue (Pexels, Unsplash), avec la page source notée ici.
`camille-39` et `alex-41` (recadrés en 400 × 400) remplacent depuis le 30/09/2026 trois portraits de randomuser.me dont la licence n'était pas établie pour un site public.
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

+3 -3
View File
@@ -51,7 +51,7 @@ function HeroGraph({ className = '', label }) {
firstName: 'Camille',
years: '1987',
frameType: 'polaroid',
photo: '/hero/photos/women-44.webp',
photo: '/hero/photos/camille-39.webp',
x: 158,
y: 168,
medias: [
@@ -65,7 +65,7 @@ function HeroGraph({ className = '', label }) {
firstName: 'Alex',
years: '1985',
frameType: 'rect',
photo: '/hero/photos/men-32.webp',
photo: '/hero/photos/alex-41.webp',
x: 602,
y: 168,
medias: [
@@ -1050,7 +1050,7 @@ export default function App({ locale = 'fr' }) {
</div>
<div className="gens" aria-hidden="true">
<figure><div className="ph" style={{ '--s': 74, backgroundImage: 'url(/hero/photos/lya-14.webp)' }} /><figcaption>{t.who.captions[0]}</figcaption></figure>
<figure><div className="ph" style={{ '--s': 96, backgroundImage: 'url(/hero/photos/women-44.webp)' }} /><figcaption>{t.who.captions[1]}</figcaption></figure>
<figure><div className="ph" style={{ '--s': 96, backgroundImage: 'url(/hero/photos/camille-39.webp)' }} /><figcaption>{t.who.captions[1]}</figcaption></figure>
<figure><div className="ph" style={{ '--s': 118, backgroundImage: 'url(/hero/photos/marc-56.webp)' }} /><figcaption>{t.who.captions[2]}</figcaption></figure>
<figure><div className="ph" style={{ '--s': 140, backgroundImage: 'url(/hero/photos/jeanne-85.webp)' }} /><figcaption>{t.who.captions[3]}</figcaption></figure>
</div>
+2 -3
View File
@@ -45,7 +45,7 @@ const shotIllu = await p.send('Page.captureScreenshot', { format: 'png', clip: {
const hero = await p.eval(`(() => { const s = document.querySelector('section'); const r = s.getBoundingClientRect(); return { x: r.left, y: 0, w: r.width, h: Math.min(r.height, 900) } })()`)
const shotHero = await p.send('Page.captureScreenshot', { format: 'png', clip: { x: hero.x, y: hero.y, width: hero.w, height: hero.h, scale: 2 } })
// Composition 1200×630 : illustration centrée sur le fond crème (dégradé identique au hero)
// Composition 1200×630 : illustration centrée sur le fond de la DA (#FBFAF7, identique au hero)
function compose(pngBase64, srcW, srcH, { fit = 'contain', pad = 30, zoom = 1 } = {}) {
const W = 1200, H = 630
let w, h
@@ -53,8 +53,7 @@ function compose(pngBase64, srcW, srcH, { fit = 'contain', pad = 30, zoom = 1 }
else { const s = Math.min((W - pad * 2) / srcW, (H - pad * 2) / srcH) * zoom; w = srcW * s; h = srcH * s }
const x = (W - w) / 2, y = (H - h) / 2
const svg = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="${W}" height="${H}">
<defs><linearGradient id="bg" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#FFF5DF"/><stop offset="0.52" stop-color="#FEF9ED"/><stop offset="1" stop-color="#FFF5DF"/></linearGradient></defs>
<rect width="${W}" height="${H}" fill="url(#bg)"/>
<rect width="${W}" height="${H}" fill="#FBFAF7"/>
<image x="${x}" y="${y}" width="${w}" height="${h}" preserveAspectRatio="xMidYMid ${fit === 'cover' ? 'slice' : 'meet'}" xlink:href="data:image/png;base64,${pngBase64}"/>
</svg>`
return new Resvg(svg, { fitTo: { mode: 'width', value: W } }).render().asPng()