dsh-image-edge-cap: Restricting image dimensions sent to specific models based on the longest edge

dsh-image-edge-cap is a DSH community plugin maintained by mrbeandev that caps the longest edge of request images for selected providers or models (default: 2000 px) while maintaining the aspect ratio. It only affects the copy sent to the model. This solves the issue where Anthropic returns a 400 error for multi-image requests with edges exceeding 2000 px, while DSH's total pixel budget fails to constrain long screenshots. It also provides a Settings → Image size configuration. It supports DSH 0.2.0-rc.1 up to (but not including) 0.3.0, and Node ^22.19.0 or >=24. Installation: `dsh plugin --profile web add dsh-image-edge-cap`.

Read More