{"record":{"id":"09f2f49a5b3f4d04","repo":"gatsbyjs/gatsby","slug":"the-requested-fixeddimen","errorCode":null,"errorMessage":"\n                       The requested ${fixedDimension} \"${fixedDimension === `width` ? width : height}px\" for a resolutions field for\n                       the file ${file.absolutePath}\n                       was larger than the actual image ${fixedDimension} of ${imgDimensions[fixedDimension]}px!\n                       If possible, replace the current image with a larger one.\n                       ","messagePattern":"\n                       The requested (.+?) \"(.+?)px\" for a resolutions field for\n                       the file (.+?)\n                       was larger than the actual image (.+?) of (.+?)px!\n                       If possible, replace the current image with a larger one\\.\n                       ","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-plugin-sharp/src/utils.js","lineNumber":86,"sourceCode":"  }\n  if (!width && !height) {\n    width = 400\n  }\n\n  // if no width is passed, we need to resize the image based on the passed height\n  if (!width) {\n    width = Math.round(height * aspectRatio)\n  }\n\n  const originalWidth = width // will use this for presentationWidth, don't want to lose it\n  const isTopSizeOverriden =\n    imgDimensions.width < width || imgDimensions.height < height\n\n  // If the image is smaller than what's requested, warn the user that it's being processed as such\n  // print out this message with the necessary information before we overwrite it for sizing\n  if (isTopSizeOverriden) {\n    const fixedDimension = imgDimensions.width < width ? `width` : `height`\n    reporter.warn(`\n                       The requested ${fixedDimension} \"${\n      fixedDimension === `width` ? width : height\n    }px\" for a resolutions field for\n                       the file ${file.absolutePath}\n                       was larger than the actual image ${fixedDimension} of ${\n      imgDimensions[fixedDimension]\n    }px!\n                       If possible, replace the current image with a larger one.\n                       `)\n\n    if (fixedDimension === `width`) {\n      width = imgDimensions.width\n      height = Math.round(width / aspectRatio)\n    } else {\n      height = imgDimensions.height\n      width = height * aspectRatio\n    }\n  }","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-plugin-sharp/src/utils.js#L68-L104","documentation":"Error \"\n                       The requested ${fixedDimension} \"${fixedDimension === `width` ? width : height}px\" for a resolutions field for\n                       the file ${file.absolutePath}\n                       was larger than the actual image ${fixedDimension} of ${imgDimensions[fixedDimension]}px!\n                       If possible, replace the current image with a larger one.\n                       \" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-plugin-sharp/src/utils.js:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a larger source image","Request smaller dimensions for the fixed/resolutions image"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}