Pictures: compress pictures to a target resolution

Picture Format › Adjust gains Compress Pictures, with PowerPoint's
options: HD 330, Print 220, Web 150 or E-mail 96 ppi, apply to the
selected pictures or all, and delete cropped areas. The new
picture.compress command downsamples each PNG, JPEG, BMP, TIFF or WebP
picture to the pixels its shown size needs at that resolution (JPEG
stays JPEG at quality 85, the rest become PNG), cuts away cropped areas
when asked, and only replaces a picture when the result is smaller or a
crop was removed. Originals nothing else uses are dropped so the saved
file shrinks; one shared with a picture that wasn't compressed stays.
One undo step restores everything.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nikita Rakitin
2026-10-13 22:21:57 +03:00
co-authored by Cursor
parent 457406a7a5
commit 5eef9fb55a
6 changed files with 343 additions and 2 deletions
+2
View File
@@ -2,6 +2,7 @@
pub mod animation;
pub mod arrange;
pub mod compress;
pub mod design;
pub mod edit;
pub mod file;
@@ -142,6 +143,7 @@ pub fn command_specs() -> &'static [CommandSpec] {
v.extend(review::specs());
v.extend(inspect::specs());
v.extend(media::specs());
v.extend(compress::specs());
v
})
}