Watermark Text enhancements

Aperta
#1,690 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
go
Ambito
backend

Direzione di ricerca

Start by locating the watermark text handling and how the existing wms dimensions are applied; the issue does not name files or tests. Then investigate whether Pango can wrap text within those dimensions and ellipsize it at the maximum number of lines. Done means establishing or implementing behavior that meets both requirements while keeping the specified box dimensions.

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

Descrizione

Hi all!

We would like to understand watermark text capabilities.
It's clear to us that we can use Pango Markup to enhance the rendered text, however we would like to understand if with Pango we are able to achieve our target result.

We would like text to automatically go to multiple lines if it does not fit one line, while keeping the same dimension (we are currently using wms to specify dimensions)
We also would like text to be ellipsized if it does not fit the maximum number of possible lines (according to the box size)

We know that the result is more a "overlay" than a "watermark", but watermark has many of the features we already need so we're trying to understand is this could be achievable as well.

Thanks and BR!

Lingua principale
Go
Stelle
11.1k
Fork
777
Merge medio
9h 37m
PR unite (30g)
2

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 imgproxy/imgproxy

Tutte le issue di imgproxy/imgproxy

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.