question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CMYK images don't work as textures on iPhone

See original GitHub issue

Describe 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: PC

iPhone: iPhone

Platform:

  • Device: Mobile
  • OS: iOS 15.5
  • Browser: Chrome, Safari
  • Three.js version: r143

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Mugen87commented, Aug 6, 2022

CMYK images should be supported on iPhone. If not, docs should clearly state that to avoid potentially very confusing bugs.

We do normally not note device specific restrictions in the API documentation.

What is your motivation for using CMYK images in the web?

0reactions
mrdoobcommented, Aug 9, 2022

When an image has CMYK color mode and is used as texture, the texture won’t show on iPhone IOS 15.5

Seems like this is an iOS issue anyway. Please, report this to Apple instead.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found