CMYK images don't work as textures on iPhone
See original GitHub issueDescribe the bug
When an image has CMYK color mode and is used as texture, the texture won’t show on iPhone IOS 15.5. Tested with Safari and iPhone Chrome. They work just fine on PC browsers.
I explicitly tested with images converted to CMYK color mode using Photoshop (from PSD main menu >> image >> mode >> CMYK color).
To Reproduce
Use any CMYK image as texture and check from an iphone device.
Code
// CMYK img - doesn't work in iphone
const geometry = new THREE.BoxGeometry(1, 1, 1);
const texture = new THREE.TextureLoader().load("img-cmyk.jpg");
const material = new THREE.MeshBasicMaterial({ map: texture });
const cube = new THREE.Mesh(geometry, material);
Live example
repo
Expected behavior
CMYK images should be supported on iPhone. If not, docs should clearly state that to avoid potentially very confusing bugs.
Screenshots
PC:
iPhone:
Platform:
- Device: Mobile
- OS: iOS 15.5
- Browser: Chrome, Safari
- Three.js version: r143
Issue Analytics
- State:
- Created a year ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
RGB or CMYK colour formatting for iPhoto - Apple Discussions
Hi. I'm putting my first iPhoto Album together. Info given from Apple about what colour format to use for your photos, says to...
Read more >[Help] On CMYK mode, the image colours and textures are ...
I know RGB is for screen and CMYK is for print. But photoshop is showing the image as I want it (and the...
Read more >Does Your Color Change After Export in Photoshop? - YouTube
In this tutorial, we will discuss the different color spaces like sRGB, AdobeRGB, and ProPhoto RGB and how it influences our images.
Read more >Color-managing imported images in Photoshop - Adobe Support
If you want your application to adjust color numbers based on an embedded profile, change the CMYK color policy to Preserve Embedded Profiles...
Read more >How to Create Textures in Photoshop CC - MakeUseOf
Make sure that under Color Mode you select RGB Color. This is because some filters don't work when you are in CMYK (Cyan,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We do normally not note device specific restrictions in the API documentation.
What is your motivation for using CMYK images in the web?
Seems like this is an iOS issue anyway. Please, report this to Apple instead.