-
Hi again @rbuchberger! The color of some of my images are becoming dull when using JPT. Before I make an issue I want to see if it's something I'm doing wrong. I've tried setting the quality to 100 but colors are still dull. Here's the image generated by JPT (unfortunately github doesn't support uploading a And here's an image I used a script to generate. My script uses ImageMagick, but I also tested with vips, which I believe is used by JPT under the hood, and got the same result -- no dulling of colors. If you open each in a browser tab and swap between them, it's easy to see the difference in color quality. Here's the profile:
formats: [webp, original]
base_width: 160 # How wide the 1x image should be.
fallback_width: 160
size: 160px
pixel_ratios: [1, 1.5, 2]
quality: 100
format_quality:
webp: 100
avif: 100
jp2: 100 Any ideas what's going on here? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
This is only a vague idea, but this seems like it’s an issue with color profiles. I don’t have anything specific to note here, but perhaps that might help steer you in the right direction? |
Beta Was this translation helpful? Give feedback.
-
So I'll say I have no idea what's causing this, but if you dig around in the vips documentation for a fix, you can pass those settings to vips using the image_options key in a preset: I added it because for avif to work within browsers, we need to specify a compression algorithm: image_options:
avif:
compression: av1
speed: 8 I'd love to hear what the solution is; possibly we need to make a change to the default settings. |
Beta Was this translation helpful? Give feedback.
-
The solution was to turn off Evidently that was stripping color profile metadata that told the browser how to render the image properly.
...
presets:
profile:
...
strip_metadata: false
...
... Note: turning this setting on/off will not cause JPT to regenerate images; |
Beta Was this translation helpful? Give feedback.
The solution was to turn off
strip_metadata
in my preset.Evidently that was stripping color profile metadata that told the browser how to render the image properly.
_data/picture.yml
:Note: turning this setting on/off will not cause JPT to regenerate images;
_site/generated
must be deleted manually to see the result of changing this setting.