M
M
Michael2015-06-21 21:41:36
PHP
Michael, 2015-06-21 21:41:36

How to determine and change the color profile of an image in PHP?

Working with an image.
Please tell me there is a picture.
If you open the image in a normal Windows viewer, the colors are quite bright.
If you open chrome, firefox, opera in browsers, everything is very dim. As I understood from wandering around Google, these are color profiles and bright colors are displayed in multi-channel mode.
The question is how to convert the file using php or force the file to display correctly in the browser?
Looked towards imagick, but did not understand.
It is not relevant to fix one image with handles in flash, since the pictures are streaming and there will be a lot of them.
image link https://yadi.sk/i/D3AJwVkohMva3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel K, 2015-06-21
@mix_gorbachev

php.net/manual/en/imagick.profileimage.php
But don't forget that everyone has different monitors and all regular users have unprofiled monitors.
Most likely, your profile is attached to the picture, but the browser does not take it into account when displaying it. You just need to save the picture already attached to the profile (via the link) and then display it in the browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question