{"record":{"id":"16c6dc7b64ce962d","repo":"gatsbyjs/gatsby","slug":"the-requested-fixeddimension","errorCode":null,"errorMessage":"\n                 The requested ${fixedDimension} \"${options[fixedDimension]}px\" for a resolutions field for\n                 the file ${file.absolutePath}\n                 was larger than the actual image ${fixedDimension} of ${dimensions[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/index.js","lineNumber":657,"sourceCode":"  const options = healOptions(getPluginOptions(), args, file.extension)\n\n  // if no width is passed, we need to resize the image based on the passed height\n  const fixedDimension = options.width === undefined ? `height` : `width`\n\n  // Create sizes for different resolutions — we do 1x, 1.5x, and 2x.\n  const sizes = []\n  sizes.push(options[fixedDimension])\n  sizes.push(options[fixedDimension] * 1.5)\n  sizes.push(options[fixedDimension] * 2)\n  const dimensions = await getImageSizeAsync(file)\n\n  const filteredSizes = sizes.filter(size => size <= dimensions[fixedDimension])\n\n  // If there's no fluid images after filtering (e.g. image is smaller than what's\n  // requested, add back the original so there's at least something)\n  if (filteredSizes.length === 0) {\n    filteredSizes.push(dimensions[fixedDimension])\n    console.warn(\n      `\n                 The requested ${fixedDimension} \"${options[fixedDimension]}px\" for a resolutions field for\n                 the file ${file.absolutePath}\n                 was larger than the actual image ${fixedDimension} of ${dimensions[fixedDimension]}px!\n                 If possible, replace the current image with a larger one.\n                 `\n    )\n  }\n\n  // Sort images for prettiness.\n  const transforms = _.sortBy(filteredSizes).map(size => {\n    const arrrgs = createTransformObject(options)\n    arrrgs[fixedDimension] = Math.round(size)\n\n    // Queue images for processing.\n    if (options.width !== undefined && options.height !== undefined) {\n      arrrgs.height = Math.round(size * (options.height / options.width))\n    }","sourceCodeStart":639,"sourceCodeEnd":675,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-plugin-sharp/src/index.js#L639-L675","documentation":"Error \"\n                 The requested ${fixedDimension} \"${options[fixedDimension]}px\" for a resolutions field for\n                 the file ${file.absolutePath}\n                 was larger than the actual image ${fixedDimension} of ${dimensions[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/index.js:657 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a larger source image","Request smaller resolutions for the fixed 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-14T00:17:10.932Z"}