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.
Questions tagged [srgb]
110 questions
1
vote
1 answer
How cast the ImagickPixel::getColorAsString to a Color HEX format
I am working with imagick extension from PHP, and i want get to the HEX Code from a ImagickPixel object, if i use getColorAsString the result is a srgb format color.
echo $pixel->getColorAsString();
//return…

mcuadros
- 4,098
- 3
- 37
- 44
1
vote
1 answer
OpenGL Automatic sRGB Conversion vs Manual sRGB Conversion
I've recently been reading up about sRGB conversion and some of the benefits that come with it. I read a very useful article in GPU Gems 3 which is now available for free which covers some automatic methods vs manual shader written methods. Here is…

Aequitas
- 181
- 2
- 13
0
votes
1 answer
Using sRGB colour in QGLFramebufferObject with multisampling
For performance reasons I have separated my 2D and 3D rendering. I have two QGLFramebufferObjects for each type because QGLFramebuffer does not support multisampling with GL_TEXTURE_2D as a target, so once drawing is done into the multisampled…

cmannett85
- 21,725
- 8
- 76
- 119
0
votes
0 answers
OpenGL with SRgb color space no longer works in Qt6.4+
I have an OpenGL application with a QWidget-based (no QtQuick/QML) Qt UI that I ported from Qt5 to Qt6. Most of it works fine, except that with Qt 6.4 and the Qt 6.5 beta (Qt up to 6.3 works fine!), the QSurfaceFormat color space setting no longer…

Joe
- 6,497
- 4
- 29
- 55
0
votes
0 answers
Gamma conversion in Colormath, Lab to RGB
I'm trying to convert Lab colors to RGB WITHOUT gamma correction (or with gamma = 1).
I use the colormath module from within Blender. https://python-colormath.readthedocs.io/en/latest/#
It seems to ignore my gamma setting. The conversion is right…

Ania
- 1
- 1
0
votes
2 answers
How does one properly scale an XYZ color gamut bounding volume after computing it from color matching functions?
After computing the XYZ gamut bounding mesh below from spectral samples/color matching functions, how does one scale the resulting volume for compatibility with popular color spaces such as sRGB? More specifically, the size and scale of the volume…

Ben McKenneby
- 481
- 4
- 15
0
votes
1 answer
OpenGL - RGB vs SRGB texture created in GIMP
GIMP by default uses sRGB color space. I have created a two simple png textures using GIMP. The textures contain a single RGB color [0, 0, 128]. The first texture has been exported without the "save gamma" option, the second with the "save gamma"…

Irbis
- 1,432
- 1
- 13
- 39
0
votes
1 answer
ghostscript converts my pdf to cmyk but not really
I run this command and the conversion is successful
gs \
-o converted-to-cmky.pdf \
…

Adrian Lopez
- 2,601
- 5
- 31
- 48
0
votes
0 answers
How does PIL open an sRGB image?
I have some pictures that I want to extract numerical value in RGB tuples using:
from PIL import Image
raw_data = np.array(Image.open("./image.jpg"))
However, I just realized that these images do not have build in icc profiles. In other words, when…

Patchouli_goo
- 11
- 2
0
votes
1 answer
Electron and Webkit browsers display wrong colors
I am developing an app using Electron. I have a color in Adobe XD, for example, rgb(0,55,200). When I set this color in my app, Electron display a different color: rgb(4,48,193).
The same happens in Safari and Chrome, but Firefox display the…

Yuzem
- 29
- 2
0
votes
1 answer
sRGB Conversion OpenGL
Let's say I load a texture from a jpg file that has the sRGB color profile and while loading there was no conversion to a linear RGB. When a rect is displayed on screen I don't see any problems with image. the color is the same as opening it in one…

Anton Stafeyev
- 37
- 7
0
votes
0 answers
Accuracy of Conversion between sRGB and Linear RGB and Displaying only the Luminance component of an image
Using an answer here: What are the practical differences when working with colors in a linear vs. a non-linear RGB space? to convert from sRGB to linear RGB, I have assumed the word intensity referred to in the formula as the red, green and blue…

it2901
- 69
- 8
0
votes
0 answers
RGB to Munsell/Hue-and-Tone Conversion
I want to convert colors from RGB to Hue and Tone(Chroma and Value) 130 System. I've searched but it seems there is no direct way for that, and no python library is available. Some references says RGB should be first convert to sRGB and after that…

Brad J. Hardey
- 1
- 1
0
votes
2 answers
10-bit alternative to GL_SRGB_ALPHA?
We are currently using GL_SRGB8_ALPHA8 for FBO color correction but it causes significant color banding in darker scenes.
Is there a version of GL_SRGB8_ALPHA8 that has 10 bit per color channel (e.g. GL_RGB10_A2)? If not, what workarounds are there…

Anton Duzenko
- 2,366
- 1
- 21
- 26
0
votes
1 answer
Color Intensity using Average RGB values
I am working on a project where I need to calculate a color gradient on various paper strips. I have used RGB color detector app (available on Google PlayStore) to obtain RGB values. Now to plot it I simple average RGB values : (R+G+B)/3 and get a…

Lokesh Sharma
- 13
- 1
- 3