Questions tagged [srgb]

sRGB refers to the sRGB color space used in digital imaging. Use this tag if you want to ask a question about converting to/from sRGB or modifying images in the sRGB spectrum.

Wikipedia Link

110 questions
3
votes
2 answers

Chrome 65 on Windows : Some colors are incorrecly displayed

Chrome 65 for Windows has an endless issue with colors. It just display some of them differently than FF and IE. Even Chrome on MacOS does not have this problem. See the picture here : Left Chrome, Right Firefox On the left, the color displayed on…
the duck
  • 375
  • 3
  • 13
3
votes
1 answer

Does OpenGL image load/store require manual sRGB to linear conversions?

Am I correct in assuming that you can only get SRGB conversions for free in modern GPU's on texture reads via samplers if an SRGB texture format is used? So if I want to access the same SRGB textures via images with image load/store I will have to…
iam
  • 1,623
  • 1
  • 14
  • 28
3
votes
1 answer

Linear to sRGB conversion

I'm trying to convert values from to srgb/linear. I have this equation which works great, but I can't get it back after wards: if(C <= 0.0404482362771082): lin = C/12.92 else: lin = pow(((C+0.055)/1.055), 2.4) But getting it back using this…
Dariusz
  • 960
  • 13
  • 36
3
votes
1 answer

Difference between colors with a same rgb value in sRGB space and CIE RGB space

Could someone tell me why colors with a same rgb value (for example 127, 127, 127) look the exactly same in an image using sRGB space and one using CIE RGB space? Since one is non-linear (with gamma correction) and the other one is linear (without…
EternalWind
  • 137
  • 9
3
votes
4 answers

linearRGB conversion to/from HSL

Does anyone know of a way to get HSL from an linearRGB color (not an sRGB color)? I've seen a lot of sRGB<->HSL conversions, but nothing for linearRGB<->HSL. Not sure if it is fundementally the same conversion with minor tweaks, but I'd appreciate…
Todd Main
  • 28,951
  • 11
  • 82
  • 146
2
votes
1 answer

sRGB FBO render to texture

In my renderer, I produce an anti-aliased scene on a multisampled FBO, which is blitted to an FBO whose color attachment is a texture. The texture is then read during rendering to the framebuffer. I'd like to update it so that I get gamma-correct…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
2
votes
1 answer

Three.js show sRGB colors wrong

I have problem with PNG sRGB rednering in Three.js. I have this piece of code where I am generation texture from SVG file: (...) // managing whole SVG data which is long and not important as I will show below window.temCanvas = …
arrowman
  • 424
  • 6
  • 19
2
votes
1 answer

I believe I converted between sRGB and linear RGB correctly, so why do the results look worse for dark colors?

After a study of the Wikipedia entry on sRGB I implemented a set of functions to help with color conversions: import "math" // https://en.wikipedia.org/wiki/SRGB#Transformation var byteDecoded [256]float32 = func() (floats [256]float32) { for…
Zyl
  • 2,690
  • 2
  • 22
  • 27
2
votes
0 answers

Enforce sRGB for images in a web page

I am using Format (https://www.format.com), a managed service for my photo portfolio website https://www.the-ninth.com. To that website, I upload images in the sRGB color space. Unfortunately Format will strip any color space information from the…
2
votes
1 answer

(DirectX9) sRGB conversion after blending

I recently came across this blog post Yet another post about gamma correction which taught me the availability of the D3DPMISCCAPS_POSTBLENDSRGBCONVERT capability flag. This should allow for proper sRGB conversion after blending on DirectX9. What I…
Ozirus
  • 1,216
  • 13
  • 13
2
votes
1 answer

Using EXIFTool to create sRGB images?

I would like to ask a question about sRGB, ICC profiles, and exiftool. I've found that you can use exiftool to embed sRGB profiles into images. Does this mean I can create a picture in Paint.NET and use exiftool to embed an sRGB ICC profile in it...…
Tod
  • 21
  • 2
2
votes
1 answer

What should be the input to skimage.color.rgb2lab?

I've been using linear rgb (no gamma correction) with rgb2lab. However I just noticed that rgb2lab is really rgb2xyz followed by xyz2lab, and that rgb2xyz actually expects sRGB. So it would seem that if I have an sRGB image with RGB in (0,255) I…
Eduardo
  • 1,235
  • 16
  • 27
2
votes
2 answers

opencv sRGB to RGB Conversion

I have iphone photos which are non-linear sRGB format. I need linear RGB. I couldnt find a way in opencv(python) to convert them to linear RGB. Also tried ImageMagick convert : convert output0.jpg -colorspace RGB output0.jpg Still same sRGB no…
2adnielsenx xx
  • 488
  • 1
  • 5
  • 22
2
votes
1 answer

Do i need to remove the p3 color gamut from an image before to send it to a device?

I have a web server that store user images and I need to know how to store each image (ie: my problem is to know if I need to store each picture with or without color space profile). I don't quite understand how Color Space profile work. I know…
zeus
  • 12,173
  • 9
  • 63
  • 184
2
votes
2 answers

8bit sRGB and OpenGL confusion

I would like to ask a clarification about the sRGB color space and its 8bit per channel representation in OpenGL. After digging in the subject, I found out that storing images in sRGB is just made to compensate the opposite gamma operation done by…
user1417683
  • 239
  • 3
  • 10