Skip to content

Keep an image's format when downscaling it - #509

Merged
shellicar merged 2 commits into
mainfrom
fix/keep-the-source-image-format
Aug 16, 2026
Merged

Keep an image's format when downscaling it#509
shellicar merged 2 commits into
mainfrom
fix/keep-the-source-image-format

Conversation

@shellicar

@shellicar shellicar commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Resizing an image takes its output format from a table.
  • Resizing is now lossy, at sips' default quality.

Conditioning re-encoded every image as PNG. PNG is lossless, so a photograph comes out larger than the JPEG it came from despite having fewer pixels: ten photos totalling 7.6 MB became 30.6 MB, and the request carrying them was refused for exceeding the maximum size. A webp source is the one that cannot keep its format, because sips reads webp but cannot write it.
@shellicar shellicar added this to the 1.0 milestone Aug 16, 2026
@shellicar shellicar added bug Something isn't working pkg: claude-sdk-cli The new SDK-based CLI pkg: claude-sdk-tools The SDK tools package pkg: claude-core Core utilities — ansi, reflow, rendering labels Aug 16, 2026
@shellicar shellicar self-assigned this Aug 16, 2026
@shellicar
shellicar marked this pull request as ready for review August 16, 2026 10:39
@shellicar
shellicar merged commit c779158 into main Aug 16, 2026
23 checks passed
@shellicar
shellicar deleted the fix/keep-the-source-image-format branch August 16, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working pkg: claude-core Core utilities — ansi, reflow, rendering pkg: claude-sdk-cli The new SDK-based CLI pkg: claude-sdk-tools The SDK tools package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant