Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

should 'Fit to Window' zoom in if image is smaller than screen resolution?

Aperta
#241 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
c
Ambito
desktop

Direzione di ricerca

Start by tracing the existing “Fit to Window”, “Fit to Height”, and “Fit to Width” handling described in the issue, then compare how each mode chooses its scale. The change is complete when “Fit to Window” scales smaller images up to fit the window while retaining its existing behavior for larger images, with the relevant viewer behavior verified.

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

Descrizione

If I load an image that is smaller than the resolution, it'll show up with black bars on the sides. This issue added functionality to scale the image to the height or width of the screen.

If the image is bigger than the screen, "Normal Size" shows it at 100%, and "Best Fit" scales it down to the screen size.
If the image is smaller than the screen, "Normal Size" shows it at 100% and "Best Fit" also shows it at 100%.
In either case, "Fit to Height" scales it [up or down] so that the entire vertical area of the picture is visible, and ignores any horizontal 'extra' that is not visible, and "Fit to Width" does the same thing horizontally while ignoring extra vertical.

Can the "Fit to Window" option cause the image be scaled up to fit the window if the image is smaller than the screen resolution?

Lingua principale
C
Stelle
95
Fork
47
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 linuxmint/xviewer

Tutte le issue di linuxmint/xviewer

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.