5cc8fea7e99144f0e25076edb29309385bcf013b
Fix several issues found while investigating missing browser thumbnails. TIFF, PSD, and PNG now use their old file check code. This is due to OIIO not having an early-out check within `.open`. Calling `.open` required a large portion of the file to be available (more than 8192 bytes). The code here can be removed in the future if/when a new API is available which alleviates this problem. PSD files often carry along a large blob of ICCProfile metadata. Attempting to roundtrip this metadata when we cache the thumbnail to .png was leading to problems. We suppress this metadata now as ICC profiles are not supported in general and are quite large. Lastly, even after the mentioned new API is available, OIIO will want to validate the full header of some file formats. DPX is the largest at a full 2048 bytes so we must have this as our minimum now too. OS's should be servicing this read call just as efficiently as when using 64. I could spot no performance difference here at least. This was missed during development because Blender will cache thumbnails into a special .thumbnails directory and the images I was using to test had already been cached there. Pull Request: https://projects.blender.org/blender/blender/pulls/107515
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
