MCPcopy Create free account
hub / github.com/AntonPalmqvist/physically-based-api / image-processor.mjs

File image-processor.mjs

scripts/image-processor.mjs:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// 1. Run: "npm run image-processor [folder]" where the "folder" argument is an optional argument and defaults to "cycles". (only new or modified images are added to Git, so it's safe to run on all images)
2// Optional. Assign a custom ICC profile to the original renders before doing step 1. Consider using sharp if all you need is sRGB and/or P3 https://sharp.pixelplumbing.com/api-output#withiccprofile
3// Linux: "./exiftool "-icc_profile<=sRGB2014.icc" -overwrite_original /home/anton/Git/physically-based-web/static/images/renders/cycles/original/"
4// Mac: "exiftool "-icc_profile<=sRGB2014.icc" -overwrite_original /Users/anton/Git/physically-based-web/static/images/renders/cycles/original"

Callers

nothing calls this directly

Calls 1

processImagesFunction · 0.85

Tested by

no test coverage detected