• Resolved Morten Ross

    (@rosmo01)


    Hi,

    After I finally moved from PHP 7.4 to 8.1 I find that the image processing manipulates the image content to a darker state. If I disable Imagick in PHP, the image is uploaded as expected, but then I loose the all important EXIF data.

    How do I stop the content of the image from being manipulated?

    Morten

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Image manipulation is necessary in order to provide proper sized images for different viewport sizes. It’s inadvisable to prevent this. If manipulated images come out darker than the original, it’s likely due to a color profile mismatch between the uploaded image file and the default profile used by the editor. I think your best option would be to use a different color profile in your images.

    I believe sRGB is the default used by most browsers and I’d expect iMagick to do the same. Color management on the internet remains a disaster zone. Even when using the default profile, you can get different results depending on the browser and O/S being used.

    Thread Starter Morten Ross

    (@rosmo01)

    What made me not think of color profile issues, is that this is the same image, same browser, uploaded a second time, with Imagick off/on. But when I saved every instance of before/after Imagick, the images are identical on disk. However in different browser windows (Firefox in this case), the same image appear different. In any case, Imagick is cleared of any wrongdoings.

    Many thanks for your input!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images uploaded darker than source image’ is closed to new replies.