Files
photocraft/crates/io/tests/it/main.rs
T
Michael Higginsandkayrockscreenprinting 6a676ee1be Save over a flat JPEG: JPEG Options, then in place; transparent ones offered as PNG (#2223)
Fixes #2223. Carries the in-place flat Save of #5865 (closed as superseded by this PR) and revives what #2515 (@kayrockscreenprinting, closed when its author stepped away) added beyond it.

File › Save now writes back over a flat file when that file still holds the document: one plain opaque layer the format can store, and only when the file held a single image. A JPEG (and a TIFF, Targa or DDS) asks its format options first, as Photoshop does; Cancel writes nothing. A JPEG whose lone layer has transparency it can't keep is offered as a PNG. Multi-image files (animations, multi-page TIFFs, multi-size icons, multi-part EXRs) still go through Save As; the source image count is kept through crash recovery.

Co-authored-by: kayrockscreenprinting <257643019+kayrockscreenprinting@users.noreply.github.com>
2026-11-10 20:26:48 +01:00

94 lines
1.8 KiB
Rust

//! The crate's integration tests, linked into one test binary.
mod adjust_blend_roundtrip;
mod adjust_warnings;
mod affinity;
mod affinity_artboards;
mod affinity_corpus;
mod annotations;
mod artboard_guide_order;
mod banded;
mod blend_modes_corpus;
mod cancel;
mod channels;
mod cmyk_composite_export;
mod cmyk_export;
mod color;
mod common;
mod composite;
mod comps_artboards;
mod corpus;
mod corpus_regressions;
mod cylinder_warp;
mod deflate_compatibility;
mod effects_multi;
mod exif_resolution;
mod export_progress;
mod exr_part_profile;
mod flat;
mod flat_export_renderer;
mod gif_frames;
mod guides_v2;
mod heif;
mod heif_unsupported;
mod krita_corpus;
mod lab16;
mod large_files;
mod large_psb;
mod layer_labels;
mod layer_xmp;
mod modes;
mod multichannel;
mod native_vector_preview;
mod orientation;
mod pattern_fill_psd;
mod pcraft_full_composite;
mod pcraft_manifest_name;
mod pdf_import;
mod pdn_corpus;
mod png_steps;
mod png_text_metadata;
mod psd16_merged_transparency;
mod psd32_export;
mod psd_background;
mod psd_block_alignment;
mod psd_block_layout;
mod psd_damaged_merged;
mod psd_empty_channels;
mod psd_flat_spot_channels;
mod psd_font_identity;
mod psd_frame_stroke;
mod psd_import_file;
mod psd_kerning;
mod psd_layer_block_length;
mod psd_maximize_compatibility;
mod psd_noise_fill_roundtrip;
mod psd_recovery_generated;
mod psd_roundtrip_bytes;
mod psd_structure;
mod psd_style_sheets;
mod psd_thumbnail;
mod psd_type_bounds;
mod psd_type_photoshop_bytes;
mod psd_unknown_adjustment;
mod psd_vertical_type;
mod raw;
mod resolution_axes;
mod roundtrip;
mod smart_contents_identity;
mod smart_corpus;
mod source_images;
mod streaming_exr;
mod svg;
mod text_corpus;
mod text_styles;
mod tiff_banded_import;
mod tiff_corpus;
mod tiff_layers;
mod tiff_pages;
mod tiff_save_options;
mod tiff_type_geometry;
mod vector;
mod xcf;
mod xmp_export;