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
26
votes
7 answers

iccp:Not recognizing known sRGB profile that has been edited

The following warning keeps arising in my Xamarin cross platform PCL project: iccp:Not recognizing known sRGB profile that has been edited What should I do ?
Balaji
  • 372
  • 1
  • 4
  • 18
22
votes
2 answers

What is the default color space for UIColor?

I can not find an article or a document describing which color space should be used for RGB values when initialising an instance from UIColor class. The article Getting the right colors in your ios app says we should use Generic RGB. On the other…
Vladimír Slavík
  • 1,727
  • 1
  • 21
  • 31
20
votes
1 answer

When to call glEnable(GL_FRAMEBUFFER_SRGB)?

I have a rendering system where I draw to an FBO with a multisampled renderbuffer, then blit it to another FBO with a texture in order to resolve the samples in order to read off the texture to perform post-processing shading while drawing to the…
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
18
votes
2 answers

Mathematical conversion sRGB and AdobeRGB

It is very clear question, but I've done a lot of research and didn't find answer. StackOverflow question as this or this are about jpeg converting. This is about python build-in library. So, how to convert sRGB to AdobeRGB and vice versa??? I mean…
lenden
  • 800
  • 2
  • 14
  • 38
15
votes
3 answers

Color spaces, gamma and image enhancement

Color space. Well, everybody knows about RGB: three values normalized in the range [0.0,1.0], which have the meaning of the intensity of the color components Red Green Blue; this intensity is meant as linear, isn't? Gamma. As far I can understand,…
Luca
  • 11,646
  • 11
  • 70
  • 125
9
votes
3 answers

SRGB-aware image resize in Pillow

Pillow's basic Image.resize function doesn't appear to have any options for SRGB-aware filtering. Is there a way to do SRGB-aware resizing in Pillow? I could do it manually by converting the image to float and applying the SRGB transforms…
Nathan Reed
  • 3,583
  • 1
  • 26
  • 33
8
votes
2 answers

How to convert sRGB to CIELAb and CIELab to sRGB efficiently?

I don't understand how to convert sRGB to CIELab and backward. Help me please. it's desirable in с++ code
Conficker
  • 103
  • 1
  • 2
  • 6
8
votes
3 answers

Picture loaded from my server has wrong colors on iPad app

I am developing an iPad app which presents pictures from a photographer. Those photos are uploaded on a webserver, and served directly through the app, where they are downloaded and displayed using the method below : if([[NSFileManager…
PhilippeAuriach
  • 2,418
  • 2
  • 22
  • 41
6
votes
4 answers

Which matrix is correct to map XYZ to linear RGB for sRGB?

It seems there are 3 main variations on the mapping matrix, and they diverge from about the 3rd or 4th decimal place. Which would be considered the standard matrix? Bruce Lindbloom…
boot-and-bonnet
  • 731
  • 2
  • 5
  • 16
6
votes
1 answer

When should I use GL_SRGB8 instead of GL_RGB8?

With respect to RGB and sRGB, are the following understandings I have (or not) true? I read an authored image (a .png) into a GL_SRGB8 format texture. (q) When sampling the texture from (1) the hardware will convert from sRGB to linear colour…
Robinson
  • 9,666
  • 16
  • 71
  • 115
6
votes
1 answer

Does glGenerateMipmap perform its averaging in linear space for sRGB textures?

The OpenGL 3.3 specification does not seem to ask that the mipmap generation be done in linear space. All I can find is the following: The internal formats of the derived mipmap arrays all match those of the levelbase array, and the dimensions…
Niriel
  • 2,605
  • 3
  • 29
  • 36
5
votes
1 answer

Color Profile strategies for developing web sites with sRGB photos and Monitor RGB comps

Overview I'm looking for advice / solutions on standardizing color profiles on comps so colors of HTML/CSS gradients/blends match effects achieved in a comp. I often get PSDs using the sRGB color profile so when I color pick something to recreate a…
potench
  • 3,802
  • 1
  • 28
  • 39
5
votes
1 answer

Should the result of sRGB->CIEXYZ->discard luminance be convertible back to sRGB?

I'm writing shadow removal for my pony detector. After I've converted a PNG image from sRGB to CIE XYZ I remove the luminance as per instructions: When I try to convert the image back to sRGB for display, I get RGB values that fall outside the…
Ansis Māliņš
  • 1,684
  • 15
  • 35
5
votes
1 answer

What is the correct gamma correction function?

Currently I use the following formula to gamma correct colors (convert them from RGB to sRGB color space) after the lighting pass: output = pow(color, vec3(1.0/2.2)); Is this formula the correct formula for gamma correction? I ask because I have…
janekb04
  • 4,304
  • 2
  • 20
  • 51
5
votes
2 answers

What kind of RGB color space is used by Matplotlib?

What kind of RGB color space is used by Matplotlib? I am especially interested, whether it is sRGB. Matlab definition of RGB: RGB and RGBA are sequences of, respectively, 3 or 4 floats in the range 0-1.
abukaj
  • 2,582
  • 1
  • 22
  • 45
1
2 3 4 5 6 7 8