mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-01 06:26:59 -06:00
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:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user