Commit dafaa8d
authored
SG-34355 - Fix wrong TIFF compression being displayed (#1054)
### **[SG-34355](https://jira.autodesk.com/browse/SG-34355): RV is not
returning proper compression information of TIFF files anymore**
### Summarize your change.
Made sure the compression variable is the same type as the one used to
store the compression type (changed to unsigned short from unsigned int)
so it is consistent with the function it is used with. Added
TIFFTAG_COMPRESSION to the list of tags that we handle manually.
### Describe the reason for the change.
Previously, the TIFFTAG_COMPRESSION was being overwritten every time we
call readAllTags() causing the compression type to be a numerical value
instead of the actual compression name.
### Describe what you have tested and on which operating system.
This fix was tested on macOS with Tiff sequences compressed using LZW
and RLE.
### If possible, provide screenshots.
Under TIFF/Compression, the correct compression type is displayed
instead of a number.
<img width="1024" height="663" alt="Screenshot 2026-01-09 at 12 02
45 PM"
src="https://github.com/user-attachments/assets/44185c22-0e50-4c18-8bc0-d85df540a086"
/>
Signed-off-by: chenl1 <ling.jie.chen@autodesk.com>1 parent 8c9d69c commit dafaa8d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| |||
1543 | 1545 | | |
1544 | 1546 | | |
1545 | 1547 | | |
1546 | | - | |
| 1548 | + | |
1547 | 1549 | | |
1548 | 1550 | | |
1549 | 1551 | | |
| |||
0 commit comments