Commit 833c99a
committed
Fix Black thumbnail when adding cover via scraping.
The `ThumbnailImage.CreateFrom` used when adding thumbnail via `AddCustomThumbnail` that the plugins uses.
It would only work with the `ThumbnailResampling = FastBilinear`. These custom thumbnail are the only that support transparency and are saved in PNG format.
The code that forced creating the alpha channel was moved out of the general resize code and inside only Billinear. So only that resampling would create a proper 32bit image.1 parent 75d7f81 commit 833c99a
2 files changed
Lines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
952 | 956 | | |
953 | 957 | | |
954 | 958 | | |
| |||
973 | 977 | | |
974 | 978 | | |
975 | 979 | | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1038 | 1033 | | |
1039 | 1034 | | |
1040 | 1035 | | |
| |||
0 commit comments