image
image copied to clipboard
image colors changed after saving the image
For some jpg images(see attached 'initial image' file) colors being changed after performing make -> save sequence. Example code:
protected $imageManager;
public function __construct(.....)
{
....
$this->imageManager = new ImageManager();
....
}
public function doSave(){
$this->imageManager->make($imagePath)->save('/path/to/folder/image.jpg');
}
After performing this operation(with both gd and imagick), it seems like the image after processing is increased in color saturation(see attached 'result image' file).
Intervention applies few parameters by default, like sharpen for example. You can setter this parameters to 0 if you dont want to apply them.
Intervention applies few parameters by default, like sharpen for example. You can setter this parameters to 0 if you dont want to apply them.
I have the same problem as @dmitriykivkin.
@DanielGilB can you please give an example where to change these parameters?
You can read doc to see all parameters and their default values.
An example is sharpen. Method accepts values between 0 and 100. Default: 10
// create new Intervention Image
$img = Image::make('public/foo.jpg');
// sharpen image
$img->sharpen(15);
I have the same problem with the saturation
it should look like this when i create thumbnails:
but i get this:
does anyone know what i have to do so that the colors do not lose their saturation? If I set the sharpness to 0 it has no effect on the color
@motosha in my case such an issue occurred only with images based on CMYK color model and after converting to RGB the problem is gone
The pictures are not in CMYK they are in RGB
I found out that it has to do with the ICC color profiles, but still no idea how to solve that.
Am Di., 14. Juli 2020 um 21:39 Uhr schrieb Salah Ait Mokhtar < [email protected]>:
Hello I'm glad that you answer, how is the situation in Venezuela are you and your family doing well? Just wanted to say that I understand your situation and I hope that normality will return to your life soon.
The pictures are not in CMYK they are in RGB I guess the problem is to target somewhere here vendor\intervention\image\src\Intervention\Image\Gd\Commands
Best wishes Salah
Same problem here. Any solution?
Same problem, did not found any solution yet
Same problem, did not found any solution yet
Solution is to use "imagick" driver instead of default "gd".
This seems to be an issue with Version 2 of Intervention Image ignoring color profiles.
Version 3 of Intervention Image supports color profiles. But only with the Imagick driver. Unfortunately, it is still not possible to interpret color profiles with the GD library and therefore also not with Intervention Image and the driver for this library.
See https://github.com/Intervention/image/issues/707#issuecomment-1870271306