Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#241 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
c
Lĩnh vực
desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?

Ngôn ngữ chính
C
Star
94
Fork
47
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxmint/xviewer

Tất cả issue của linuxmint/xviewer

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.