Commit 5f68d1d
authored
Add file image preview for Graph Editor (#2710)
## Feature Update
For better user feedback on what images are being used from the UI, this change adds image previews for file image nodes
### Details:
- Adds a per `filename` input image preview
- Default size is `256` px but is settable from the command line using the `--previewWidth` argument. A size of <= 0 will turn off previews.
- Preview size will resize to fit up to the maximum property editor panel width if desired preview size is greater than the editor width.
### Implementation notes
- Adds fix to use document "resolved" image path otherwise relative path images may not be found (e.g. std surface brick)
#### Caveats
- There is no software (C++) color management support to display images in the input color space.1 parent 9875175 commit 5f68d1d
3 files changed
Lines changed: 83 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
903 | 905 | | |
904 | 906 | | |
905 | 907 | | |
906 | | - | |
| 908 | + | |
907 | 909 | | |
908 | 910 | | |
909 | 911 | | |
910 | 912 | | |
911 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
912 | 961 | | |
913 | 962 | | |
914 | 963 | | |
| |||
923 | 972 | | |
924 | 973 | | |
925 | 974 | | |
926 | | - | |
| 975 | + | |
| 976 | + | |
927 | 977 | | |
928 | 978 | | |
929 | 979 | | |
| |||
3382 | 3432 | | |
3383 | 3433 | | |
3384 | 3434 | | |
| 3435 | + | |
3385 | 3436 | | |
3386 | 3437 | | |
3387 | 3438 | | |
3388 | 3439 | | |
3389 | | - | |
| 3440 | + | |
3390 | 3441 | | |
3391 | 3442 | | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
3392 | 3450 | | |
3393 | 3451 | | |
3394 | 3452 | | |
3395 | 3453 | | |
3396 | 3454 | | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
3397 | 3461 | | |
3398 | 3462 | | |
3399 | 3463 | | |
3400 | 3464 | | |
3401 | | - | |
| 3465 | + | |
| 3466 | + | |
3402 | 3467 | | |
3403 | 3468 | | |
3404 | 3469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
347 | 351 | | |
348 | 352 | | |
349 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
224 | 230 | | |
225 | 231 | | |
226 | 232 | | |
227 | | - | |
| 233 | + | |
| 234 | + | |
228 | 235 | | |
229 | 236 | | |
230 | 237 | | |
| |||
0 commit comments