Focal point editor performance

Aperta
#15,270 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@duncanmcclean ci sta già lavorando.

Dal 31/8/2026.

  • #15311 di @duncanmcclean — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
laravel, php

Direzione di ricerca

Start by locating the focal point editor and how it builds the nine aspect-ratio previews; the issue does not name a file or test. Reproduce with a large uploaded image in Safari and compare the current previews with the proposed resized-image approach. Done means the previews remain correct while performance improves; linked pull request #15311 indicates work is already underway.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

assets performance
Bug description

The focal point editor uses the asset 9 times to preview the focal crops in various aspect ratio's. This is great, but it uses the original image. When you work with large source images the performance gets really really bad. Perhaps it could use resized images for those previews.

How to reproduce
  1. Upload a large image
  2. Set the focal point
  3. I use Safari
Environment
Environment
Laravel Version: 13.26.1
PHP Version: 8.5.8
Composer Version: 2.10.1
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 5
License Key: Set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.28.0 PRO

Statamic Addons
rias/statamic-color-swatches: 3.1.1
statamic-rad-pack/shopify: 7.8.3
studio1902/statamic-peak-commands: 10.7.4
studio1902/statamic-peak-seo: 11.9.2
studio1902/statamic-peak-tools: 9.2.0
Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Lingua principale
PHP
Stelle
4.9k
Fork
647
Merge medio
1g 45m
PR unite (30g)
221

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di statamic/cms

Tutte le issue di statamic/cms

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.