Replies: 7 comments 4 replies
-
Hi again @goldmerc, Do you have a sample image which shows this problem? |
Beta Was this translation helpful? Give feedback.
-
Hi @jcupitt :-) Original Image... This is optimised using newFromFile. The colour stays the same... But when it gets thumbnailed (thumbnail_buffer), it's darker... (same with jpg + webp) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
If I remove 'export_profile' => 'srgb' from the thumbnail options, the colour stays as it should... (ie, not darker!) |
Beta Was this translation helpful? Give feedback.
-
Huh that's weird, it looks like lcms isn't roundtripping correctly. If I do:
They don't match, but they should. I don't have time to investigate now, unfortunately, maybe next week. |
Beta Was this translation helpful? Give feedback.
-
Sure, no rush. I'll leave it with you as it's all beyond me! |
Beta Was this translation helpful? Give feedback.
-
Looks like this could be related: libvips/libvips#3150 (comment) |
Beta Was this translation helpful? Give feedback.
-
I'm using vips 8.14.1 and thumbnail_buffer. Following this advice...
https://www.libvips.org/API/current/Using-vipsthumbnail.html
I'm passing in 'export_profile' => 'srgb'
I notice that the thumbnailed images look darker. If I remove 'export_profile' => 'srgb' the thumbnail colour matches the original perfectly.
What's happening here? I could just remove 'export_profile' => 'srgb' but I want to understand whats happening in case I'm going to get different results with different images.
Thanks (as always!)
Beta Was this translation helpful? Give feedback.
All reactions