Refine recipe og content

This commit is contained in:
Sam Becker 2025-03-10 22:09:12 -05:00
parent 81b127468f
commit 38abb840fb
2 changed files with 7 additions and 11 deletions

View File

@ -78,9 +78,9 @@ export default function RecipeImageResponse({
display: 'flex',
flexDirection: 'column',
...smallText ? {
paddingTop: height * .03,
paddingTop: height * .04,
lineHeight: 1.45,
letterSpacing: '0.03em',
letterSpacing: '0.04em',
fontSize: height * .06,
} : {
paddingTop: height * .02,
@ -93,7 +93,7 @@ export default function RecipeImageResponse({
<div
tw="flex"
style={{
width: height * .141,
width: height * .143,
}}
/>
<div style={{

View File

@ -60,30 +60,26 @@ export const generateRecipeText = ({
}: RecipeProps) => {
const lines = [
`${labelForFilmSimulation(simulation).small.toLocaleUpperCase()}`,
`DR${recipe.dynamicRange.development} NR${formatNoiseReduction(recipe)}`,
// eslint-disable-next-line max-len
`${formatWhiteBalance(recipe).toLocaleUpperCase()} ${formatWhiteBalanceColor(recipe)}`,
`DR${recipe.dynamicRange.development} NR${formatNoiseReduction(recipe)}`,
];
if (recipe.highlight || recipe.shadow) {
lines.push(`HI/SH ${addSign(recipe.highlight)}/${addSign(recipe.shadow)}`);
// eslint-disable-next-line max-len
lines.push(`HIGH${addSign(recipe.highlight)} SHADOW${addSign(recipe.shadow)}`);
}
// eslint-disable-next-line max-len
lines.push(`CO${addSign(recipe.color)} SH${addSign(recipe.sharpness)} CL${addSign(recipe.clarity)}`);
lines.push(`COL${addSign(recipe.color)} SHARP${addSign(recipe.sharpness)} CLAR${addSign(recipe.clarity)}`);
if (recipe.colorChromeEffect) {
lines.push(`CHROME ${recipe.colorChromeEffect.toLocaleUpperCase()}`);
}
if (recipe.colorChromeFXBlue) {
lines.push(`FX BLUE ${recipe.colorChromeFXBlue.toLocaleUpperCase()}`);
}
if (recipe.grainEffect.roughness !== 'off') {
lines.push(`GRAIN ${formatGrain(recipe)}`);
}
if (recipe.bwAdjustment || recipe.bwMagentaGreen) {
// eslint-disable-next-line max-len
lines.push(`BW ADJ ${addSign(recipe.bwAdjustment)} BW M/G ${addSign(recipe.bwMagentaGreen)}`);