@Ernesto TK
As the configuration file is a plain text JSON formatted .js file, you could manually update it instead of using the Generator Config panel.
EDIT: here is a copy of the default generator.js file created in the current user's ~/ home directory using the extension:
module.exports = {
"generator-assets": {
"svg-enabled": true,
"svgomg-enabled": true,
"css-enabled": false,
"use-smart-scaling": false,
"include-ancestor-masks": false,
"allow-dither": false,
"use-psd-smart-object-pixel-scaling": false,
"use-pngquant": true,
"convert-color-space": false,
"use-flite": true,
"embed-icc-profile": false,
"clip-all-images-to-document-bounds": true,
"clip-all-images-to-artboard-bounds": true,
"mask-adds-padding": true,
"expand-max-dimensions": false,
"webp-enabled": false,
"interpolation-type": "bicubicAutomatic"
}
}
Simply change the boolean value from false to true:
"embed-icc-profile": true,
Restart Photoshop and your Generator JPEG files should now include the ICC profile of the source document.
P.S. Here is a copy with all options on and the three dropdown menus set from the defaults:
module.exports = {
"generator-assets": {
"svg-enabled": true,
"svgomg-enabled": true,
"css-enabled": true,
"use-smart-scaling": true,
"include-ancestor-masks": true,
"allow-dither": true,
"use-psd-smart-object-pixel-scaling": true,
"use-pngquant": true,
"convert-color-space": true,
"use-flite": true,
"embed-icc-profile": true,
"clip-all-images-to-document-bounds": true,
"clip-all-images-to-artboard-bounds": true,
"mask-adds-padding": true,
"expand-max-dimensions": true,
"webp-enabled": true,
"interpolation-type": "bicubic",
"icc-profile": "sRGB IEC61966-2.1",
"use-jpg-encoding": "optimal"
}
}
EDIT: Another option to create the generator.js configuration file:
https://community.adobe.com/t5/photoshop-ecosystem-discussions/online-quot-generator-quot-config-file-creator-available/m-p/14971604