Commit 797b229
fix(ui): scale large images and preserve original dimensions
Detect large images exceeding 4096px in either dimension and scale them down
while maintaining aspect ratio for performance optimization. Store original
dimensions in metadata and display them in the information dialog when
available, falling back to scaled dimensions when original data is not
present.
log: scale large images and preserve original dimensions
bug: https://pms.uniontech.com/bug-view-333195.html1 parent a00745b commit 797b229
File tree
2 files changed
+53
-4
lines changed- src
- qml/PreviewImageViewer/InformationDialog
- src/unionimage
2 files changed
+53
-4
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
406 | 423 | | |
407 | 424 | | |
408 | 425 | | |
| |||
767 | 784 | | |
768 | 785 | | |
769 | 786 | | |
770 | | - | |
| 787 | + | |
771 | 788 | | |
772 | | - | |
773 | | - | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
774 | 816 | | |
775 | 817 | | |
776 | 818 | | |
| |||
0 commit comments