mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
JPEG Options: show how big the file will be (FILE-215-19, #7843)
Choosing a JPEG quality is a trade between how the picture looks and how
big the file gets, but the dialog gave no idea of the size. It now shows
it at the left of OK and Cancel ("152.3K", "1.5M"), updated as Quality
and Format Options change.
The size is the file's: the document is encoded in memory with the
settings OK writes (same encoder and ExportSettings as the save, so the
file's own quality, profile and metadata count). The encode runs on a
worker thread in the native app and in the frame on the web; one runs at
a time and its answer is kept per settings, so a frame that changes
nothing encodes nothing, and the last size stays up while a new one is
worked out. Documents over 40 MP (4 MP on the web) read "—".
Docs: gaps (G10), file-format and target-app parity, the scorecard row
and the book drop the size preview from what JPEG Options lacks.
This commit is contained in:
30 files changed
+413
-11
No files matched your search
@@ -19,7 +19,7 @@ Every route that writes a document to a flat format (Save As, the CLI, MCP `doc_
|
||||
- Formats without transparency (JPEG, Radiance HDR) get the image composited over white, as Export As and Quick Export do; in CMYK, white is no ink.
|
||||
- Formats that can't embed an ICC profile (GIF, BMP, TGA, QOI, ICO, Netpbm/PFM) get RGB documents in another profile (linear light, Display P3, …) converted to sRGB through the colour engine (perceptual intent), since an untagged file is read as sRGB. OpenEXR and Radiance HDR get linear sRGB instead (linear gray for a grayscale OpenEXR), which is how they are tagged when opened.
|
||||
- TGA, as Photoshop's Targa: an RGB Targa is 24 or 32 bits per pixel. Save As and Save a Copy ask (Targa Options, starting at 32 with an alpha channel, else 24); Export As has a Resolution choice (Auto, 24 or 32 bits/pixel); scripts pass `tgaBits` (`--tga-bits` on the CLI). At 32 bits the document's alpha channel is the file's alpha when it has exactly one (spot channels don't count; with several, none is used), and the colours are written exactly, never premultiplied or cleared where the alpha is 0, so a game texture's mask and its colours both survive. Without a usable alpha channel the layers' transparency is the alpha (opaque without any). 24 bits write no alpha, compositing transparency over white. Without a choice: 32 with an alpha channel or transparency, else 24. A 32-bit Targa opens as an opaque Background with its alpha as "Alpha 1", so it round-trips. Grayscale Targas are 8-bit.
|
||||
- JPEG, as Photoshop's JPEG Options: File › Save, Save As and Save a Copy ask for the Quality on Photoshop's 0–12 scale (with its Low, Medium, High and Maximum presets) and a Format Option: Baseline ("Standard"), Baseline Optimized (Huffman tables fitted to the image) or Progressive. The quality starts at the opened JPEG's own quality, else at the Export preference's JPEG quality; left there, an opened JPEG is written at exactly its own quality. Scripts pass `"quality": 0..12` and `"jpegFormat": "baseline" | "optimized" | "progressive"` (on the CLI, `--quality` on the encoder's 1–100 scale and `--jpeg-format`) and aren't asked; recorded actions replay the answer. The scale maps onto the encoder's 1–100 as `round(q / 12 × 99 + 1)`. RGB JPEGs are written 4:2:0, where Baseline Optimized keeps the standard tables for now (Gray and CMYK, written 4:4:4, get fitted ones). Matte, the progressive scan count (Scans 3–5) and the file-size preview aren't offered.
|
||||
- JPEG, as Photoshop's JPEG Options: File › Save, Save As and Save a Copy ask for the Quality on Photoshop's 0–12 scale (with its Low, Medium, High and Maximum presets) and a Format Option: Baseline ("Standard"), Baseline Optimized (Huffman tables fitted to the image) or Progressive. The quality starts at the opened JPEG's own quality, else at the Export preference's JPEG quality; left there, an opened JPEG is written at exactly its own quality. Scripts pass `"quality": 0..12` and `"jpegFormat": "baseline" | "optimized" | "progressive"` (on the CLI, `--quality` on the encoder's 1–100 scale and `--jpeg-format`) and aren't asked; recorded actions replay the answer. The scale maps onto the encoder's 1–100 as `round(q / 12 × 99 + 1)`. RGB JPEGs are written 4:2:0, where Baseline Optimized keeps the standard tables for now (Gray and CMYK, written 4:4:4, get fitted ones). Below the Format Options the dialog shows how big the file will be ("152.3K", "1.5M"), so the quality can be chosen with the size in view; it is worked out in the background as the options change, for documents up to 40 megapixels (4 on the web), and reads "—" for larger ones. Matte and the progressive scan count (Scans 3–5) aren't offered.
|
||||
- DDS, for game and 3D textures: Save As and Save a Copy ask (DDS Options) for the compression (None, uncompressed and lossless; BC1/DXT1, whose alpha is on or off; BC2/DXT3; BC3/DXT5) and whether to generate mipmaps (the full chain down to 1×1, each level a box filter of the one above). Scripts pass `ddsCompression` (`none`, `bc1`, `bc2`, `bc3`) and `ddsMipmaps` (`--dds-compression`, `--dds-mipmaps` on the CLI). Opening one reads its top mip level.
|
||||
|
||||
Flat TIFF and JPEG exports of composited CMYK documents convert the RGB composite back through
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
//! a JPEG, as Photoshop's JPEG Options does. Quality is Photoshop's 0–12 scale (Low 0–4, Medium
|
||||
//! 5–7, High 8–9, Maximum 10–12), mapped to the encoder's 1–100 by
|
||||
//! `photocraft_engine::file_cmds::jpeg_quality`; Format Options are Baseline ("Standard"), Baseline
|
||||
//! Optimized and Progressive. Matte, Scans and the size preview aren't offered yet. Re-saving an
|
||||
//! opened JPEG starts at the file's own quality, as File › Save keeps it (#4032).
|
||||
//! Optimized and Progressive, and the dialog shows the size the file will have. Matte and Scans
|
||||
//! aren't offered yet. Re-saving an opened JPEG starts at the file's own quality, as File › Save
|
||||
//! keeps it (#4032).
|
||||
//!
|
||||
//! The save is parked in [`Prompt`] while the modal is up (egui is immediate-mode) and written
|
||||
//! once answered. Cancel drops the save. Scripts skip the prompt by passing `quality` or
|
||||
@@ -21,6 +22,8 @@ use serde_json::Value;
|
||||
|
||||
use crate::{ExportSettings, PhotocraftApp};
|
||||
|
||||
mod size_readout;
|
||||
|
||||
/// The highest quality on Photoshop's JPEG scale.
|
||||
pub const MAX_QUALITY: u8 = 12;
|
||||
|
||||
@@ -193,6 +196,7 @@ pub fn park_at(app: &mut PhotocraftApp, path: String, copy: bool, record: &'stat
|
||||
}
|
||||
|
||||
pub fn show(app: &mut PhotocraftApp, ctx: &egui::Context) {
|
||||
let size_source = size_readout::Source::of(app);
|
||||
let Some(p) = &mut app.jpeg_options else { return };
|
||||
let (mut ok, mut cancel) = (false, false);
|
||||
let (mut quality, mut format) = (p.quality, p.format);
|
||||
@@ -227,6 +231,8 @@ pub fn show(app: &mut PhotocraftApp, ctx: &egui::Context) {
|
||||
ui.spacing_mut().item_spacing.x = 10.0;
|
||||
ok = crate::widgets::primary_button(ui, tl!("OK"), 84.0).clicked();
|
||||
cancel = crate::widgets::secondary_button(ui, tl!("Cancel"), 84.0).clicked();
|
||||
// How big the file will be with these options, at the left of the buttons.
|
||||
ui.with_layout(egui::Layout::left_to_right(egui::Align::Center), |ui| size_readout::show(ui, size_source.as_ref(), quality, format));
|
||||
});
|
||||
});
|
||||
cancel |= modal.should_close();
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
//! JPEG Options' file size: while choosing a quality, the dialog shows how big the JPEG will be
|
||||
//! ("152.3K"), and updates it as Quality and Format Options change. The dialog's document is
|
||||
//! encoded in memory with the settings OK would write it with (the same encoder and
|
||||
//! [`ExportSettings`] as the save, so the size is the file's, metadata and profile included).
|
||||
//!
|
||||
//! The encode runs on a worker thread in the native app, so the dialog never waits for it; the web
|
||||
//! build has no threads and encodes in the frame, so its limit is lower. One encode runs at a time,
|
||||
//! and its answer is kept for its settings: a frame that changes nothing encodes nothing, and
|
||||
//! while a new size is worked out the last one for the same document stays up. Documents over
|
||||
//! [`MAX_PX`] aren't encoded and read "—".
|
||||
|
||||
use std::sync::{Arc, Mutex, PoisonError};
|
||||
|
||||
use photocraft_codecs::JpegFormat;
|
||||
use photocraft_doc::{DocId, Document};
|
||||
|
||||
use crate::{ExportSettings, PhotocraftApp};
|
||||
|
||||
/// The largest document, in pixels, whose size is worked out. Flattening and encoding 40 MP takes
|
||||
/// a second or two on a worker and about 160 MB at 8 bits, as Export As's exact size does (#6595).
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
const MAX_PX: u64 = 40_000_000;
|
||||
/// The web build encodes in the frame: up to 4 MP keeps a settings change under a frame or so.
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
const MAX_PX: u64 = 4_000_000;
|
||||
|
||||
/// Whether a document of `size` gets a size readout (see [`MAX_PX`]).
|
||||
pub(super) fn estimable(size: photocraft_doc::Size) -> bool {
|
||||
size.area() <= MAX_PX
|
||||
}
|
||||
|
||||
/// A size as the readout shows it: kilobytes with one decimal under a megabyte
|
||||
/// ("152.3K"), megabytes above ("1.5M"), in units of 1024.
|
||||
pub(super) fn size_label(bytes: u64) -> String {
|
||||
const K: f64 = 1024.0;
|
||||
let kilo = (bytes as f64 / K * 10.0).round() / 10.0;
|
||||
if kilo < K { format!("{kilo:.1}K") } else { format!("{:.1}M", bytes as f64 / (K * K)) }
|
||||
}
|
||||
|
||||
/// The bytes `doc` takes written as a JPEG with `settings`, as the save writes it; `None` when it
|
||||
/// can't be encoded.
|
||||
pub(super) fn encoded_size(doc: &Document, settings: &ExportSettings) -> Option<u64> {
|
||||
let bytes = photocraft_io::export(doc, "size.jpg", &settings.io_options()).ok()?.bytes;
|
||||
u64::try_from(bytes.len()).ok()
|
||||
}
|
||||
|
||||
/// What one size is for: the document as it is, and the encoder quality (1–100) and format.
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub(super) struct Key {
|
||||
doc: DocId,
|
||||
revision: u64,
|
||||
quality: u8,
|
||||
format: JpegFormat,
|
||||
}
|
||||
|
||||
/// Where a worker leaves its answer: `Some` once done (`Some(None)`: couldn't be encoded).
|
||||
type Slot = Arc<Mutex<Option<Option<u64>>>>;
|
||||
|
||||
/// The readout between frames (kept in egui's temporary data).
|
||||
#[derive(Default)]
|
||||
pub(super) struct Readout {
|
||||
/// The last size worked out, and what it is for.
|
||||
shown: Option<(Key, Option<u64>)>,
|
||||
/// The encode running, and what it is for.
|
||||
running: Option<(Key, Slot)>,
|
||||
}
|
||||
|
||||
impl Readout {
|
||||
/// The size to show for `key`. Unless `key`'s size is known or being worked out, starts the
|
||||
/// job `make` returns, which calls `done` when it finishes; a change made while another
|
||||
/// encode runs starts once that one is done. Until `key`'s size is known, the last size of
|
||||
/// the same document as it is now shows (`None` if there is none).
|
||||
pub(super) fn update<J>(&mut self, key: Key, make: impl FnOnce() -> J, done: impl FnOnce() + Send + 'static) -> Option<u64>
|
||||
where
|
||||
J: FnOnce() -> Option<u64> + Send + 'static,
|
||||
{
|
||||
self.collect();
|
||||
if self.running.is_none() && !self.is_current(key) {
|
||||
let slot = Slot::default();
|
||||
run(make(), Arc::clone(&slot), done);
|
||||
self.running = Some((key, slot));
|
||||
// The web build encodes in the frame: its answer is already there.
|
||||
self.collect();
|
||||
}
|
||||
self.shown.filter(|(k, _)| k.doc == key.doc && k.revision == key.revision).and_then(|(_, size)| size)
|
||||
}
|
||||
|
||||
/// Whether the size shown is `key`'s.
|
||||
pub(super) fn is_current(&self, key: Key) -> bool {
|
||||
self.shown.is_some_and(|(k, _)| k == key)
|
||||
}
|
||||
|
||||
/// Takes a finished encode's answer.
|
||||
fn collect(&mut self) {
|
||||
let Some((key, slot)) = &self.running else { return };
|
||||
let Some(size) = slot.lock().unwrap_or_else(PoisonError::into_inner).take() else { return };
|
||||
self.shown = Some((*key, size));
|
||||
self.running = None;
|
||||
}
|
||||
}
|
||||
|
||||
/// Runs `job` on a worker (in the web build, right here), leaves its answer in `slot`, then calls
|
||||
/// `done`. A job that panics answers `None`.
|
||||
fn run(job: impl FnOnce() -> Option<u64> + Send + 'static, slot: Slot, done: impl FnOnce() + Send + 'static) {
|
||||
let answer = Arc::clone(&slot);
|
||||
let work = move || {
|
||||
let size = std::panic::catch_unwind(std::panic::AssertUnwindSafe(job)).unwrap_or(None);
|
||||
*answer.lock().unwrap_or_else(PoisonError::into_inner) = Some(size);
|
||||
done();
|
||||
};
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
if std::thread::Builder::new().name("jpeg-options-size".into()).spawn(work).is_err() {
|
||||
*slot.lock().unwrap_or_else(PoisonError::into_inner) = Some(None);
|
||||
}
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
{
|
||||
let _ = slot;
|
||||
work();
|
||||
}
|
||||
}
|
||||
|
||||
/// What the readout encodes: the waiting save's document, with the settings its save starts from.
|
||||
/// Taken before the dialog is drawn, which borrows the prompt.
|
||||
pub(super) struct Source {
|
||||
doc: Arc<Document>,
|
||||
revision: u64,
|
||||
base: ExportSettings,
|
||||
own_quality: Option<u8>,
|
||||
}
|
||||
|
||||
impl Source {
|
||||
/// For the JPEG Options prompt waiting, if any.
|
||||
pub(super) fn of(app: &PhotocraftApp) -> Option<Self> {
|
||||
let p = app.jpeg_options.as_ref()?;
|
||||
let st = app.session.documents().iter().find(|st| st.doc.id == p.doc)?;
|
||||
Some(Source { doc: Arc::clone(&st.doc), revision: st.revision, base: app.save_settings(), own_quality: p.own_quality })
|
||||
}
|
||||
|
||||
/// The encoder quality (1–100) OK writes for `quality` (0–12): the opened file's own when left
|
||||
/// on its step, as `confirm` keeps it.
|
||||
fn encoder_quality(&self, quality: u8) -> u8 {
|
||||
let own = self.own_quality.filter(|&q| super::quality_from_percent(u32::from(q)) == quality);
|
||||
own.unwrap_or_else(|| photocraft_engine::file_cmds::jpeg_quality(f64::from(quality)))
|
||||
}
|
||||
|
||||
/// The settings OK writes with for `quality` (0–12) and `format`.
|
||||
fn settings(&self, quality: u8, format: JpegFormat) -> ExportSettings {
|
||||
ExportSettings { jpeg_quality: Some(self.encoder_quality(quality)), jpeg_format: format, ..self.base.clone() }
|
||||
}
|
||||
|
||||
/// The readout for `quality` (0–12) and `format`: the size, or "—" while there is none.
|
||||
fn text(&self, ctx: &egui::Context, quality: u8, format: JpegFormat) -> String {
|
||||
if !estimable(self.doc.size) {
|
||||
return "—".into();
|
||||
}
|
||||
let key = Key { doc: self.doc.id, revision: self.revision, quality: self.encoder_quality(quality), format };
|
||||
let state = ctx.data_mut(|d| Arc::clone(d.get_temp_mut_or_default::<Arc<Mutex<Readout>>>(egui::Id::unique("jpeg-options-size"))));
|
||||
let mut readout = state.lock().unwrap_or_else(PoisonError::into_inner);
|
||||
let make = || {
|
||||
let (doc, settings) = (Arc::clone(&self.doc), self.settings(quality, format));
|
||||
move || encoded_size(&doc, &settings)
|
||||
};
|
||||
let repaint = ctx.clone();
|
||||
readout.update(key, make, move || repaint.request_repaint()).map_or_else(|| "—".into(), size_label)
|
||||
}
|
||||
}
|
||||
|
||||
/// Draws the readout for the dialog's current `quality` (0–12) and `format`.
|
||||
pub(super) fn show(ui: &mut egui::Ui, source: Option<&Source>, quality: u8, format: JpegFormat) {
|
||||
let text = source.map_or_else(|| "—".into(), |s| s.text(ui.ctx(), quality, format));
|
||||
let weak = ui.visuals().weak_text_color();
|
||||
ui.label(egui::RichText::new(text).color(weak)).on_hover_text(tl!("Estimated file size"));
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
@@ -0,0 +1,154 @@
|
||||
use super::*;
|
||||
use egui_kittest::kittest::Queryable;
|
||||
use serde_json::json;
|
||||
use std::sync::atomic::{AtomicU32, Ordering};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
/// A 96 × 64 RGB document of 2 × 2 noise and gradients: detail a JPEG's quality shows in its size.
|
||||
fn detailed() -> Arc<Document> {
|
||||
let mut doc = Document::with_background(
|
||||
"x",
|
||||
photocraft_doc::Size::new(96, 64),
|
||||
photocraft_doc::ColorMode::Rgb,
|
||||
photocraft_doc::SampleType::U8,
|
||||
photocraft_doc::Color::WHITE,
|
||||
);
|
||||
let id = doc.layers[0].id;
|
||||
let surf = doc.layer_mut(id).unwrap().surface_mut().unwrap();
|
||||
let mut seed = 12345u32;
|
||||
for y in (0..64).step_by(2) {
|
||||
for x in (0..96).step_by(2) {
|
||||
seed = seed.wrapping_mul(1664525).wrapping_add(1013904223);
|
||||
let v = (seed >> 24) as f32 / 255.0;
|
||||
surf.fill_rect(photocraft_geom::Rect::new(x, y, x + 2, y + 2), &[v, x as f32 / 96.0, y as f32 / 64.0, 1.0]);
|
||||
}
|
||||
}
|
||||
Arc::new(doc)
|
||||
}
|
||||
|
||||
fn source(own_quality: Option<u8>) -> Source {
|
||||
Source { doc: detailed(), revision: 1, base: ExportSettings::default(), own_quality }
|
||||
}
|
||||
|
||||
/// The readout: kilobytes with one decimal under a megabyte, then megabytes.
|
||||
#[test]
|
||||
fn sizes_read_in_kilobytes_then_megabytes() {
|
||||
assert_eq!(size_label(0), "0.0K");
|
||||
assert_eq!(size_label(155_955), "152.3K");
|
||||
assert_eq!(size_label(1023 * 1024), "1023.0K");
|
||||
assert_eq!(size_label(1024 * 1024 - 1), "1.0M", "1024.0K would round up past a megabyte");
|
||||
assert_eq!(size_label(1024 * 1024), "1.0M");
|
||||
assert_eq!(size_label(3 * 1024 * 1024 / 2), "1.5M");
|
||||
assert_eq!(size_label(8_703_181), "8.3M");
|
||||
}
|
||||
|
||||
/// The readout is the size of the file the save writes: Maximum (12) is larger than Low (0), and
|
||||
/// each matches the bytes written with the settings OK would use.
|
||||
#[test]
|
||||
fn quality_12_reads_larger_than_quality_0() {
|
||||
let src = source(None);
|
||||
let (low, high) = (src.settings(0, JpegFormat::Baseline), src.settings(12, JpegFormat::Baseline));
|
||||
let size = |s: &ExportSettings| photocraft_io::export(&src.doc, "a.jpg", &s.io_options()).unwrap().bytes.len() as u64;
|
||||
assert_eq!(encoded_size(&src.doc, &low), Some(size(&low)));
|
||||
assert_eq!(encoded_size(&src.doc, &high), Some(size(&high)));
|
||||
assert!(size(&high) > size(&low), "quality 12: {} bytes, quality 0: {} bytes", size(&high), size(&low));
|
||||
assert!(size(&high) > 2 * size(&low), "the quality is what is encoded, not a default");
|
||||
}
|
||||
|
||||
/// Left on an opened JPEG's own quality, OK writes that quality exactly, so the readout encodes
|
||||
/// it too; another step encodes the step's quality.
|
||||
#[test]
|
||||
fn the_files_own_quality_is_what_is_estimated() {
|
||||
let src = source(Some(95));
|
||||
assert_eq!(src.settings(11, JpegFormat::Progressive).jpeg_quality, Some(95));
|
||||
assert_eq!(src.settings(11, JpegFormat::Progressive).jpeg_format, JpegFormat::Progressive);
|
||||
assert_eq!(src.settings(10, JpegFormat::Baseline).jpeg_quality, Some(photocraft_engine::file_cmds::jpeg_quality(10.0)));
|
||||
}
|
||||
|
||||
/// Waits for `readout` to answer `key`, encoding with `job`.
|
||||
fn answer(readout: &mut Readout, key: Key, job: impl Fn() -> Option<u64> + Send + Sync + Clone + 'static) -> Option<u64> {
|
||||
let deadline = Instant::now() + Duration::from_secs(20);
|
||||
loop {
|
||||
if let Some(size) = readout.update(key, || job.clone(), || {}).filter(|_| readout.is_current(key)) {
|
||||
return Some(size);
|
||||
}
|
||||
assert!(Instant::now() < deadline, "no size arrived for {key:?}");
|
||||
std::thread::sleep(Duration::from_millis(2));
|
||||
}
|
||||
}
|
||||
|
||||
/// A frame that changes nothing encodes nothing: the size is kept per settings. A change encodes
|
||||
/// once, showing the earlier size until the new one is ready, and only one encode runs at a time.
|
||||
#[test]
|
||||
fn unchanged_settings_are_not_encoded_again() {
|
||||
let encodes = Arc::new(AtomicU32::new(0));
|
||||
let counted = |size: u64| {
|
||||
let encodes = encodes.clone();
|
||||
move || {
|
||||
encodes.fetch_add(1, Ordering::SeqCst);
|
||||
Some(size)
|
||||
}
|
||||
};
|
||||
let key = Key { doc: photocraft_doc::DocId(1), revision: 3, quality: 84, format: JpegFormat::Baseline };
|
||||
let mut readout = Readout::default();
|
||||
assert_eq!(answer(&mut readout, key, counted(1000)), Some(1000));
|
||||
for _ in 0..10 {
|
||||
assert_eq!(readout.update(key, || counted(1), || {}), Some(1000));
|
||||
}
|
||||
assert_eq!(encodes.load(Ordering::SeqCst), 1, "the same settings are encoded once");
|
||||
|
||||
let progressive = Key { format: JpegFormat::Progressive, ..key };
|
||||
let (gate, wait) = std::sync::mpsc::channel::<()>();
|
||||
let wait = Arc::new(Mutex::new(wait));
|
||||
let slow = {
|
||||
let encodes = encodes.clone();
|
||||
move || {
|
||||
let _ = wait.lock().unwrap().recv();
|
||||
encodes.fetch_add(1, Ordering::SeqCst);
|
||||
Some(2000)
|
||||
}
|
||||
};
|
||||
assert_eq!(readout.update(progressive, || slow.clone(), || {}), Some(1000), "the earlier size shows meanwhile");
|
||||
let other = Key { quality: 92, ..key };
|
||||
assert_eq!(readout.update(other, || counted(3), || {}), Some(1000), "a second encode waits for the first");
|
||||
gate.send(()).unwrap();
|
||||
assert_eq!(answer(&mut readout, progressive, slow), Some(2000));
|
||||
assert_eq!(answer(&mut readout, key, counted(1)), Some(1), "another change encodes again");
|
||||
assert_eq!(encodes.load(Ordering::SeqCst), 3);
|
||||
|
||||
let edited = Key { revision: 4, ..key };
|
||||
assert_eq!(readout.update(edited, || || None, || {}), None, "an edited document shows no size of the old one");
|
||||
}
|
||||
|
||||
/// Documents larger than the limit are not encoded: the readout is a dash.
|
||||
#[test]
|
||||
fn large_documents_are_not_encoded() {
|
||||
assert!(estimable(photocraft_doc::Size::new(6000, 4000)), "24 MP");
|
||||
assert!(!estimable(photocraft_doc::Size::new(10_000, 10_000)), "100 MP");
|
||||
assert!(!estimable(photocraft_doc::Size::new(u32::MAX, u32::MAX)));
|
||||
}
|
||||
|
||||
/// The dialog shows the size its settings write, next to its buttons.
|
||||
#[test]
|
||||
fn the_dialog_shows_the_size_it_will_write() {
|
||||
let mut app = PhotocraftApp::new(photocraft_engine::Session::new(), crate::Services::default());
|
||||
app.run("file.new", json!({"width": 64, "height": 48})).unwrap();
|
||||
app.sync_views();
|
||||
let mut h = egui_kittest::Harness::builder().with_size(egui::vec2(800.0, 600.0)).build_ui_state(
|
||||
|ui, app| {
|
||||
super::super::show(app, ui.ctx());
|
||||
},
|
||||
app,
|
||||
);
|
||||
PhotocraftApp::setup_context(&h.ctx, crate::theme::ThemeKind::ALL[0]);
|
||||
super::super::park(h.state_mut(), "p.jpg".into(), false, "file.saveAs").unwrap();
|
||||
let src = Source::of(h.state()).unwrap();
|
||||
let quality = h.state().jpeg_options.as_ref().unwrap().quality;
|
||||
let expected = size_label(encoded_size(&src.doc, &src.settings(quality, JpegFormat::Baseline)).unwrap());
|
||||
let deadline = Instant::now() + Duration::from_secs(20);
|
||||
while h.query_by_label(&expected).is_none() {
|
||||
assert!(Instant::now() < deadline, "JPEG Options never showed {expected}");
|
||||
h.run_steps(1);
|
||||
std::thread::sleep(Duration::from_millis(5));
|
||||
}
|
||||
}
|
||||
@@ -4235,3 +4235,6 @@ cameraRaw Dehaze Odstranění oparu
|
||||
Font size presets Předvolby velikosti písma
|
||||
Leading presets Předvolby prokladu
|
||||
Tracking presets Předvolby prostrkání
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Odhadovaná velikost souboru
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3509,3 +3509,6 @@ curves Smooth Glätten
|
||||
Font size presets Schriftgrößen-Vorgaben
|
||||
Leading presets Zeilenabstand-Vorgaben
|
||||
Tracking presets Laufweiten-Vorgaben
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Geschätzte Dateigröße
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4188,3 +4188,6 @@ curves Smooth Εξομάλυνση
|
||||
Font size presets Προεπιλογές μεγέθους γραμματοσειράς
|
||||
Leading presets Προεπιλογές διάστιχου
|
||||
Tracking presets Προεπιλογές διαστήματος χαρακτήρων
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Εκτιμώμενο μέγεθος αρχείου
|
||||
|
Can't render this file because it contains an unexpected character in line 1042 and column 18.
|
@@ -4447,3 +4447,6 @@ navigator Zoom Zoom
|
||||
Font size presets Valores predefinidos de tamaño de fuente
|
||||
Leading presets Valores predefinidos de interlineado
|
||||
Tracking presets Valores predefinidos de tracking
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Tamaño estimado del archivo
|
||||
|
Can't render this file because it contains an unexpected character in line 4 and column 47.
|
@@ -4527,3 +4527,6 @@ shape Appearance Apparence
|
||||
Font size presets Tailles de police prédéfinies
|
||||
Leading presets Interlignages prédéfinis
|
||||
Tracking presets Approches prédéfinies
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Taille de fichier estimée
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -563,3 +563,6 @@ cameraRaw Yellow पीला
|
||||
Target लक्ष्य
|
||||
Units इकाइयाँ
|
||||
Demosaic डिमोज़ेक
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size अनुमानित फ़ाइल आकार
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4399,3 +4399,6 @@ cameraRaw Yellow Sárga
|
||||
Font size presets Betűméret-előbeállítások
|
||||
Leading presets Sorköz-előbeállítások
|
||||
Tracking presets Betűköz-előbeállítások
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Becsült fájlméret
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3507,3 +3507,6 @@ curves Smooth Haluskan
|
||||
Font size presets Preset ukuran font
|
||||
Leading presets Preset leading
|
||||
Tracking presets Preset tracking
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Perkiraan ukuran file
|
||||
|
Can't render this file because it contains an unexpected character in line 4 and column 47.
|
@@ -4602,3 +4602,6 @@ shape Appearance Aspetto
|
||||
Font size presets Predefiniti dimensione font
|
||||
Leading presets Predefiniti interlinea
|
||||
Tracking presets Predefiniti spaziatura
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Dimensioni stimate del file
|
||||
|
Can't render this file because it contains an unexpected character in line 2408 and column 12.
|
@@ -4164,3 +4164,6 @@ curves Smooth スムーズ
|
||||
Font size presets フォントサイズのプリセット
|
||||
Leading presets 行送りのプリセット
|
||||
Tracking presets トラッキングのプリセット
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size 推定ファイルサイズ
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3704,3 +3704,6 @@ curves Smooth 매끄럽게
|
||||
Font size presets 글꼴 크기 사전 설정
|
||||
Leading presets 행간 사전 설정
|
||||
Tracking presets 자간 사전 설정
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size 예상 파일 크기
|
||||
|
Can't render this file because it contains an unexpected character in line 2955 and column 12.
|
@@ -4245,3 +4245,6 @@ curves Smooth Vloeiend maken
|
||||
Font size presets Voorinstellingen lettergrootte
|
||||
Leading presets Voorinstellingen interlinie
|
||||
Tracking presets Voorinstellingen spatiëring
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Geschatte bestandsgrootte
|
||||
|
Can't render this file because it contains an unexpected character in line 8 and column 34.
|
@@ -4105,3 +4105,6 @@ curves Smooth Wygładź
|
||||
Font size presets Ustawienia wstępne rozmiaru czcionki
|
||||
Leading presets Ustawienia wstępne interlinii
|
||||
Tracking presets Ustawienia wstępne światła
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Szacowany rozmiar pliku
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4415,3 +4415,6 @@ layerLabel No Color Sem cor
|
||||
Font size presets Predefinições de tamanho da fonte
|
||||
Leading presets Predefinições de entrelinha
|
||||
Tracking presets Predefinições de tracking
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Tamanho estimado do arquivo
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4688,3 +4688,6 @@ shape Appearance Оформление
|
||||
Font size presets Наборы размеров шрифта
|
||||
Leading presets Наборы интерлиньяжа
|
||||
Tracking presets Наборы трекинга
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Примерный размер файла
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4557,3 +4557,6 @@ shape Appearance Izgled
|
||||
Font size presets Unapred podešene veličine fonta
|
||||
Leading presets Unapred podešeni proredi
|
||||
Tracking presets Unapred podešeni razmaci slova
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Procenjena veličina datoteke
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4213,3 +4213,6 @@ cameraData Lens Lens
|
||||
Font size presets Yazı tipi boyutu hazır ayarları
|
||||
Leading presets Satır aralığı hazır ayarları
|
||||
Tracking presets İzleme hazır ayarları
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Tahmini dosya boyutu
|
||||
|
Can't render this file because it contains an unexpected character in line 8 and column 34.
|
@@ -4198,3 +4198,6 @@ curves Smooth Згладити
|
||||
Font size presets Набори розмірів шрифту
|
||||
Leading presets Набори інтерліньяжу
|
||||
Tracking presets Набори трекінгу
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Орієнтовний розмір файлу
|
||||
|
Can't render this file because it contains an unexpected character in line 1410 and column 18.
|
@@ -3983,3 +3983,6 @@ curves Smooth Làm mượt
|
||||
Font size presets Cỡ chữ đặt sẵn
|
||||
Leading presets Giãn dòng đặt sẵn
|
||||
Tracking presets Khoảng cách chữ đặt sẵn
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size Kích thước tệp ước tính
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -3168,3 +3168,6 @@ curves Smooth 平滑
|
||||
Font size presets 字号预设
|
||||
Leading presets 行距预设
|
||||
Tracking presets 字距调整预设
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size 预计文件大小
|
||||
|
Can't render this file because it contains an unexpected character in line 2383 and column 12.
|
@@ -3124,3 +3124,6 @@ curves Smooth 平滑
|
||||
Font size presets 字體大小預設
|
||||
Leading presets 行距預設
|
||||
Tracking presets 字距調整預設
|
||||
|
||||
# JPEG Options: the size the file will have (#7843)
|
||||
Estimated file size 預估檔案大小
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -1,6 +1,6 @@
|
||||
# File-format parity
|
||||
|
||||
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-24 · **Change:** minor (PSD Filter Gallery: Halftone Pattern dot/circle/line settings survive PSD/PSB saves (#8940); Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency, #8877; layered TIFF writes the TySh text version and descriptor in PSD big-endian order while the header, matrix, warp and bounds keep container order, #9098; layered TIFF writes Photoshop's 14-byte global layer mask, so Photoshop opens the layers instead of only the composite, #9095; legacy PSD point text placed from the layout ink box after font resolution, #6094; `.atn`: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; `.asl` layer style libraries read and written, #1051; JPEG Options on File › Save, Save As and Save a Copy, FILE-215-19 partial (no Matte, progressive Scans or size preview); 32-bit Hue/Saturation unclipped and Colorize as Photoshop does them, Photoshop-oracle floor 190/258, #5781; JPEG Options on Save As and Save a Copy, FILE-215-19; TIFF compression for scripted saves, `tiffCompression`, #5301; the Nikon D4 white level follows the sample depth (12 and 14 bit), #5978; Apply Layer Comp action mapping, #7101; Cineon write: 10-bit gray/RGB; animated WebP frames load into video layers, #1198; Photoshop mixed-order TIFF type geometry, #4758; DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 53 filters (39 more: Pinch, Polar Coordinates, Ripple, Spherize, Twirl, Wave, ZigZag, Invert, Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint, Clouds, Difference Clouds, Fibers, Lens Flare and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: smart objects keep Photoshop's Cylinder warp through re-renders and saves, #4112; PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding; Amiga IFF write: 24-plane ILBM, Save As `.iff`; PSD stores spot channels as Photoshop does, ink 0 = solid, and numbers them in 1053, #7415 split; TIFF writes and reads alpha and spot channels as extra samples with Photoshop's channel resources, PSD output unchanged, FILE-215-7, FILE-215-17's TIFF part, #7415; Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency) · **Target:** Adobe Photoshop 2026
|
||||
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-28 · **Change:** minor (JPEG Options shows the size the file will have, FILE-215-19 partial; PSD Filter Gallery: Halftone Pattern dot/circle/line settings survive PSD/PSB saves (#8940); Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency, #8877; layered TIFF writes the TySh text version and descriptor in PSD big-endian order while the header, matrix, warp and bounds keep container order, #9098; layered TIFF writes Photoshop's 14-byte global layer mask, so Photoshop opens the layers instead of only the composite, #9095; legacy PSD point text placed from the layout ink box after font resolution, #6094; `.atn`: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; `.asl` layer style libraries read and written, #1051; JPEG Options on File › Save, Save As and Save a Copy, FILE-215-19 partial (no Matte, progressive Scans or size preview); 32-bit Hue/Saturation unclipped and Colorize as Photoshop does them, Photoshop-oracle floor 190/258, #5781; JPEG Options on Save As and Save a Copy, FILE-215-19; TIFF compression for scripted saves, `tiffCompression`, #5301; the Nikon D4 white level follows the sample depth (12 and 14 bit), #5978; Apply Layer Comp action mapping, #7101; Cineon write: 10-bit gray/RGB; animated WebP frames load into video layers, #1198; Photoshop mixed-order TIFF type geometry, #4758; DDS textures save: uncompressed or BC1–BC3, optional mip chain, DDS Options in Save As (#1327); PSD smart filters: 53 filters (39 more: Pinch, Polar Coordinates, Ripple, Spherize, Twirl, Wave, ZigZag, Invert, Blur, Surface Blur, Smart Sharpen, Diffuse, Wind, Offset, Mezzotint, Clouds, Difference Clouds, Fibers, Lens Flare and others) plus Hue/Saturation and Perspective Warp mapped both ways, #6296, #6298, #6300, #6302, #6304, #6314, #6316, #6267, #6268, FILE-215-2; large-file fixtures: a 20 MP layered PSD, a 150-layer layout, a 2 GB PSD and a 4.4 GB PSB generated at test time and round-tripped, FILE-216-2 done, #5107; earlier: smart objects keep Photoshop's Cylinder warp through re-renders and saves, #4112; PNG `sTER` stereo pairing kept on save, #6063; PDF write one flattened page via Save As / Save a Copy / CLI, #3401; CMYK Invert, Posterize and Threshold on the inks; smart filter masks on PSD open and save; Photoshop-oracle floor 188/258; lossy DNG, compression 34892, decodes with its levels and LinearizationTable applied to the stored 8-bit samples, FILE-215-11; CMYK Hue/Saturation and Color Balance keep the black ink; CMYK Posterize on the stored values, psd-tools oracle floor 242/309; CMYK adjustment layers composite on the document's inks; Photoshop-oracle floor 165/258; CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; modern Brightness/Contrast's brightness curve; Photoshop-oracle floor 151/258; Lab documents composite on their stored L, a, b; Photoshop-oracle floor 152/258; Levels on whole levels at every step with Photoshop's shadow toe; Photoshop-oracle floor 146/258, psd-tools 238/309; 32-bit adjustments unclipped; Photoshop-oracle floor 149/258; mask feathers blur with their exact variance; Threshold splits on Photoshop's luminosity; a pass-through clipping base with an adjustment renders isolated; psd-tools oracle floor 240/309; 16-bit Posterize as Photoshop bins it; psd-tools oracle floor 241/309; Gradient Map luminosity; Photoshop-oracle floor 147/258; PSD: `Mt16`/`Mt32` merged transparency read; palette PNGs open in Indexed Color mode, #4804; 16-bit Lab Invert; Photoshop-oracle floor 145/258; `.atn` import maps 112 events; DDS textures open, #1327; DPX read and write, #1049; #2465 fixed: CS2 placed layers with only a `PlLd` block open their contents; Photoshop Actions `.atn` read and write; `.shc` contour files read and write; earlier the same day: indexed BMP palette mode; Save keeps a JPEG's quality and a WebP's encoding; Amiga IFF write: 24-plane ILBM, Save As `.iff`; PSD stores spot channels as Photoshop does, ink 0 = solid, and numbers them in 1053, #7415 split; TIFF writes and reads alpha and spot channels as extra samples with Photoshop's channel resources, PSD output unchanged, FILE-215-7, FILE-215-17's TIFF part, #7415; Photoshop's `MTrn` merged-transparency marker, from a layered TIFF saved with Save Transparency, marks the merged transparency) · **Target:** Adobe Photoshop 2026
|
||||
|
||||
**PSD Filter Gallery (#8940, 2026-10-23):** Halftone Pattern maps its size, contrast and dot/circle/line pattern as editable settings on import and export, with the reference application's descriptor keys (`HlSz`, `Cntr`, `ScrT`: `ScrD`/`ScrC`/`ScrL`). PSD/PSB round trips pass at 8/16/32 bits. This does not claim pixel equivalence for the existing renderer. Unknown or malformed settings remain verbatim on import.
|
||||
|
||||
@@ -27,7 +27,7 @@ XL are missing (gap G10). Remaining: 300–500 h including PSD fidelity.
|
||||
| PSB | R/W | yes | yes | Auto-switches above 2 GB (REL-212-2); generated 20 MP, 150-layer, 2 GB PSD and 4.4 GB PSB fixtures opened, saved and re-opened by io tests/it/large_files.rs (FILE-216-2, 2026-10-13; the 4.4 GB PSB opens on Windows); > 4 GB from the app's File › Open on Windows: #375 |
|
||||
| Cloud PSD (.psdc) | R/W | no | no | Out of scope (Adobe cloud) |
|
||||
| TIFF | R/W | yes | yes | 8/16/32f, Gray/RGB/CMYK, BigTIFF, every IFD, banded parallel decode; layered TIFF both byte orders, including Photoshop mixed-order type blocks on read (#4758/#4771) and TySh text descriptors written in PSD order (#9098) and Photoshop's 14-byte `LMsk` block (#9095); LZW/ZIP for scripted saves by `tiffCompression`; undecodable type keeps saved pixels (FILE-215-7); alpha and spot channels as extra samples (at most 16) with Photoshop's names, ink colours and solidity, spot ink stored 0 = solid (#7415); no Save Transparency choice yet (channels are written as Photoshop does with it off) |
|
||||
| JPEG | R/W | yes | yes | 8-bit Gray/RGB/CMYK, ICC/EXIF/XMP; Save keeps the opened file's quality (estimated from its quantisation tables, #2399); File › Save, Save As and Save a Copy ask JPEG Options: Quality 0–12, starting at the opened file's quality or else the Export preference, and Baseline ("Standard") / Baseline Optimized / Progressive; scripts pass `quality`/`jpegFormat`, the CLI `--jpeg-format` (FILE-215-19). Baseline Optimized fits the Huffman tables only at 4:4:4 (Gray, CMYK) or progressive: RGB is written 4:2:0, which zune-jpeg 0.5.15 decodes wrongly with fitted tables, as in Save for Web. No Matte, progressive Scans (3–5) or size preview |
|
||||
| JPEG | R/W | yes | yes | 8-bit Gray/RGB/CMYK, ICC/EXIF/XMP; Save keeps the opened file's quality (estimated from its quantisation tables, #2399); File › Save, Save As and Save a Copy ask JPEG Options: Quality 0–12, starting at the opened file's quality or else the Export preference, and Baseline ("Standard") / Baseline Optimized / Progressive; scripts pass `quality`/`jpegFormat`, the CLI `--jpeg-format` (FILE-215-19). Baseline Optimized fits the Huffman tables only at 4:4:4 (Gray, CMYK) or progressive: RGB is written 4:2:0, which zune-jpeg 0.5.15 decodes wrongly with fitted tables, as in Save for Web. The dialog shows the size the file will have ("152.3K", "1.5M"), encoded in memory as OK would write it, off the UI thread, for documents up to 40 MP (4 MP on the web; larger ones read "—"). No Matte or progressive Scans (3–5) |
|
||||
| PNG | R/W | yes | yes | 8/16-bit, ICC/text; APNG first frame only; alpha channels on open (#2225); palette PNGs open in Indexed Color mode with their transparent entry (#4804); Save keeps a stereo PNG's `sTER` pairing (#6063) |
|
||||
| GIF | R/W | yes | yes | File › Open keeps the first frame; New Video Layer from File and Video Frames to Layers take every frame, with the timeline rate from the delays (#572). Per-frame delays and keeping the frames in `.pcraft` are not done |
|
||||
| BMP | R/W | yes | yes | 8-bit; palette BMPs open in Indexed Color mode and Indexed Color documents save as palette BMPs (no transparency) |
|
||||
@@ -144,6 +144,7 @@ remaining gaps in #1606 stay tracked with per-sample corpus ceilings.
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-28 | minor | JPEG Options shows the size the file will have (FILE-215-19 partial: no Matte or progressive Scans) |
|
||||
| 2026-10-24 | minor | Layered TIFF: the `LMsk` block in tag 37724 carries Photoshop's default global layer mask (14 bytes) instead of none; with an empty block Photoshop read only the composite (#9095). PSD output unchanged |
|
||||
| 2026-10-24 | minor | Layered TIFF writes the TySh text version and descriptor in PSD big-endian order while retaining container order for the block header, transform matrix, warp section and bounds (#9098); the mixed-order read path remains covered by #4758/#4771. |
|
||||
| 2026-10-23 | minor | PSD: spot channels are stored and read as Photoshop 27.11's PSDs store them (ink 0 = solid; all 7 of its spot PSDs store the 100/25/75/0 % columns as 0/191/64/255), and resource 1053 numbers the extra channels 3, 4, 5, … after 0 for the merged transparency. A PSD with spot channels whose 1057 is exactly what PhotoCraft 0.1.0–0.16.0 wrote, and with no 1053 or one kept from an opened Photoshop file that doesn't list every channel, is read as those versions stored it (straight past the channels that 1053 lists), so it keeps its ink. Multichannel is unchanged (#7415 split, part 4) |
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
# Where PhotoCraft falls short of Photoshop
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-27 · **Change:** minor (G1: Halftone Pattern Filter Gallery settings survive PSD/PSB saves (#8940); cropped selection morphology and command mask conversion performance evidence added; G9: 12 of 181 preferences do nothing, as the scorecard prefs audit counts them; G6: Art History Brush landed as partial, TOOL-213-20, #1610, so no toolbar tool is missing; G4: five hard-round built-in presets use 5% spacing to remove stacked-tip outlines and reduce pressure-opacity bands, #8842; G9: Crop tool canvas menu, #6561; G2: Content-Aware Scale seam carving 1.65–3.6× faster with unchanged output, P28 row 3.3 → 1.6 s on a 4-core VM, #5236; G9: UI scale presets done, 105–120% steps, #3222; G14: lossy DNG, raw sidecars, Camera Raw Defaults live, Calibration and Auto, CR3 assessed as not clean-room feasible; G8: PSD type on a path opens on its path and saves back into the file's `Txt2`, #7962; G11: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; adjustment clipping stays visible in compact Properties, #5231; G9: Color panel modes, ramp and copy commands, the same in every theme, UI-217-17, #6000; G17: Help › Check for Updates and an opt-out check once per launch, DIST-220-1 partial, #5485; G10: `.asl` style libraries landed, #1051; G8: area type (TYPE-218-10); G1: smart objects keep Photoshop's Cylinder warp, #4112; G8: paragraph direction buttons in the Paragraph panel and options bar, TYPE-218-2 partial; G1: 32-bit Hue/Saturation and Colorize as Photoshop does them, Photoshop-oracle floor 190/258, #5781; G11: compound layer properties export as separate Photoshop Set events, rename last, #8304; G11: Batch and droplets take the result at the action's Save step, so actions ending in Save As and Close work; G11: `.atn` steps that switch to another open document import, play and save back, #7103; G14: the Nikon D4 white level follows the sample depth, so 12-bit D4 NEFs no longer open 2.6 stops dark, #5978; G14: a Nikon NEF's Adobe RGB preview is read as Adobe RGB (maker-note ColorSpace 0x001E), #5987; Apply Layer Comp action mapping, #7101; G10: JPEG Options dialog landed, FILE-215-19 partial (no Matte, progressive Scans or size preview); G10: Cineon write; G10: DPX read and write, #1049, Cineon and Amiga IFF read; Classical Object Finder improvement; learned segmentation remains open; G4: named, stateful section locks and visible keyboard focus in Brush Settings; G4: independent Brush Pose tilt-axis overrides, #3825 partial; G4: Transfer Mixer-only controls, #3825 partial; G9: Preferences › File Handling › Save in Background takes effect, #6207, 24 of 169 preferences do nothing; G7: Content-Aware Move previews every selection the command takes, coarse then exact, TOOL-213-4 done, #6680; G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7; G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G2: a cancelled 24 MP Gaussian Blur job stops in at most 44 ms, P25 under its 200 ms budget in local runs, baseline not re-run, #6205; G1: generated large-file fixtures, a 4.38 GB PSB opens on Windows through io, FILE-216-2 done, #5107; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracle floor 145/258; G11: `.atn` import maps 112 events: Select and Mask, Filter Gallery Spatter, Line truncated
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-28 · **Change:** minor (G10: JPEG Options shows the size the file will have; FILE-215-19 stays partial (Matte, Scans); G1: Halftone Pattern Filter Gallery settings survive PSD/PSB saves (#8940); cropped selection morphology and command mask conversion performance evidence added; G9: 12 of 181 preferences do nothing, as the scorecard prefs audit counts them; G6: Art History Brush landed as partial, TOOL-213-20, #1610, so no toolbar tool is missing; G4: five hard-round built-in presets use 5% spacing to remove stacked-tip outlines and reduce pressure-opacity bands, #8842; G9: Crop tool canvas menu, #6561; G2: Content-Aware Scale seam carving 1.65–3.6× faster with unchanged output, P28 row 3.3 → 1.6 s on a 4-core VM, #5236; G9: UI scale presets done, 105–120% steps, #3222; G14: lossy DNG, raw sidecars, Camera Raw Defaults live, Calibration and Auto, CR3 assessed as not clean-room feasible; G8: PSD type on a path opens on its path and saves back into the file's `Txt2`, #7962; G11: a recorded Save As imports with its format and file (`file.saveAs`, `file.saveACopy` for As a Copy) instead of as a plain Save that wrote over the played file, #7102; folder destinations stop playback until #5430; adjustment clipping stays visible in compact Properties, #5231; G9: Color panel modes, ramp and copy commands, the same in every theme, UI-217-17, #6000; G17: Help › Check for Updates and an opt-out check once per launch, DIST-220-1 partial, #5485; G10: `.asl` style libraries landed, #1051; G8: area type (TYPE-218-10); G1: smart objects keep Photoshop's Cylinder warp, #4112; G8: paragraph direction buttons in the Paragraph panel and options bar, TYPE-218-2 partial; G1: 32-bit Hue/Saturation and Colorize as Photoshop does them, Photoshop-oracle floor 190/258, #5781; G11: compound layer properties export as separate Photoshop Set events, rename last, #8304; G11: Batch and droplets take the result at the action's Save step, so actions ending in Save As and Close work; G11: `.atn` steps that switch to another open document import, play and save back, #7103; G14: the Nikon D4 white level follows the sample depth, so 12-bit D4 NEFs no longer open 2.6 stops dark, #5978; G14: a Nikon NEF's Adobe RGB preview is read as Adobe RGB (maker-note ColorSpace 0x001E), #5987; Apply Layer Comp action mapping, #7101; G10: JPEG Options dialog landed, FILE-215-19 partial (no Matte, progressive Scans or size preview); G10: Cineon write; G10: DPX read and write, #1049, Cineon and Amiga IFF read; Classical Object Finder improvement; learned segmentation remains open; G4: named, stateful section locks and visible keyboard focus in Brush Settings; G4: independent Brush Pose tilt-axis overrides, #3825 partial; G4: Transfer Mixer-only controls, #3825 partial; G9: Preferences › File Handling › Save in Background takes effect, #6207, 24 of 169 preferences do nothing; G7: Content-Aware Move previews every selection the command takes, coarse then exact, TOOL-213-4 done, #6680; G4: Pattern Stamp and Background Eraser draw live, TOOL-213-7; G9: Animated Zoom pref read: holding the Zoom tool zooms continuously, #6210, prefs that do nothing 25 of 166; G2: a cancelled 24 MP Gaussian Blur job stops in at most 44 ms, P25 under its 200 ms budget in local runs, baseline not re-run, #6205; G1: generated large-file fixtures, a 4.38 GB PSB opens on Windows through io, FILE-216-2 done, #5107; G9: fill and adjustment layers copy and paste whole, #2344; G1: smart filter masks show on PSD open, Photoshop-oracle floor 188/258; G10: DPX read and write, #1049, Cineon read; G1: CMYK Hue/Saturation and Color Balance keep the black ink; G1: CMYK Posterize on the stored values, psd-tools oracle floor 242/309; G1: CMYK adjustment layers composite on the document's inks, Photoshop-oracle floor 165/258; G1: CMYK Brightness/Contrast on the inks, CMYK Threshold's luma; G1: modern Brightness/Contrast's brightness curve matches Photoshop, Photoshop-oracle floor 151/258; G1: Lab documents composite on their stored L, a, b, Photoshop-oracle floor 152/258; G1: Levels on whole levels at every step, Photoshop-oracle floor 146/258, psd-tools 238/309; G1: 32-bit Brightness/Contrast legacy, Channel Mixer, Photo Filter and Black & White tint unclipped as in Photoshop, Photoshop-oracle floor 149/258; G1: mask feathers blur with their exact variance, psd-tools oracle floor 240/309; G1: Threshold splits on Photoshop's luminosity, psd-tools oracle floor 241/309; G1: pass-through clipping base with an adjustment renders isolated, psd-tools oracle floor 240/309; G1: 16-bit Posterize as Photoshop bins it, psd-tools oracle floor 241/309; G1: Gradient Map driven by the W3C luminosity, Photoshop-oracle floor 147/258; G7: Field Blur's on-canvas pins, #3373; G4: Hue Jitter amount track, #3825 partial; G4: minimum field interaction, #3825 partial; G1: CMYK Invert, Posterize and Threshold on the inks, 16-bit Lab Invert; Photoshop-oracLine truncated
|
||||
|
||||
Every known shortfall against Photoshop 2026 (27.11.0), one entry each, ranked by user impact
|
||||
on the way to beta. This is the work list agents pick from: take the highest-ranked entry that
|
||||
@@ -333,7 +333,7 @@ what an agent can't finish alone.
|
||||
## File-format gaps
|
||||
|
||||
### G10. Missing and partial file formats
|
||||
- **Missing:** JPEG Options' Matte, progressive Scans and size preview (FILE-215-19 partial), Photoshop PDF read and its vector/text/multi-page
|
||||
- **Missing:** JPEG Options' Matte and progressive Scans (FILE-215-19 partial), Photoshop PDF read and its vector/text/multi-page
|
||||
write (FILE-215-10, #2541; a single flattened page now saves via Save As / Save a Copy / CLI,
|
||||
2026-10-11, #3401), AVIF read (#463) and default-build AVIF write, JPEG XL, JPEG 2000 (#1047),
|
||||
DICOM, EPS/DCS, Pixar, WBMP, MPO/JPS, PICT, Scitex CT, Photoshop
|
||||
@@ -396,6 +396,7 @@ what an agent can't finish alone.
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-28 | minor | G10: JPEG Options shows the size the file will have ("152.3K"), worked out off the UI thread as Quality and Format Options change; FILE-215-19 stays partial (Matte, progressive Scans); no readiness percentage or estimate changed |
|
||||
| 2026-10-27 | minor | G9: 12 of 181 preferences do nothing, the scorecard's count with integration batch 9 (#9775) on main; no estimate changed |
|
||||
| 2026-10-26 | minor | Expand/Contract/Border distance work, mask reads and replacement cropped to nonzero bounds; bounded distances for radii ≤5; 36 MP exact-output comparisons improve 1.54–37.82× across eight cases; percentages, estimates and scorecard budgets unchanged |
|
||||
| 2026-10-25 | minor | G9: the count of preferences that do nothing is the scorecard's again, 12 of 178 (it still said 24 of 171, from 2026-10-15); no estimate changed |
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@ Corpus floors (`crates/io/tests/it/corpus.rs`): the enforced minimums; the corpu
|
||||
| FILE-215-16 | Advanced Blending (knockout, blend as group, mask hides effects) end to end | partial | [#215](https://github.com/storytold/photocraft/issues/215) | doc advanced.rs + .pcraft + PSD/layered TIFF (knko infx clbl tsly lmgm vmgm), CPU compose advanced.rs (GPU falls back), blendingOptions command + dialog; 7 psd-tools knockout oracles now pass; knockout-isolated-groups (0.45 % AA edges), advanced-blending, blend-and-clipping still differ |
|
||||
| FILE-215-17 | CMYK/RGB documents preview spot inks; spot plates export (TIFF extra samples, PDF) | partial | [#215](https://github.com/storytold/photocraft/issues/215) | TIFF: spot channels written and read as extra samples with DisplayInfo (1077) ink colour and solidity, ink stored 0 = solid (#7415). PSD: spot planes stored and read 0 = solid as Photoshop does, identifiers in 1053; PhotoCraft 0.1.0–0.16.0 PSDs (straight planes) keep their ink. Missing: spot ink preview in RGB/CMYK documents (compose multichannel.rs:1 previews Multichannel only) and PDF Separation |
|
||||
| FILE-215-18 | Save for Web per-slice settings remembered; Export As remembers and offers nearest scaling | done | [#215](https://github.com/storytold/photocraft/issues/215) | Save for Web settings survive a restart through the remembered dialog settings in prefs.dialogs (web_cmds::remember_web_settings stores them on a complete export, never the destination; file_ui.rs open_web seeds from the session's last export, else the preferences). export_dialog seeds Export As the same way (seed_remembered: format, quality, transparency, scale, resample, metadata, TGA bits) and confirm remembers them as used. Export As › Image Size › Resample offers Photoshop's six methods (Bicubic Automatic default, Nearest Neighbor included; export_preset_cmds::RESAMPLE, unknown values are errors) for the exported copy only; also layer.exportAs `resample` and export presets (#5838). Tests: export_dialog nearest_neighbor_doubles_each_pixel_into_an_exact_block (8/16-bit), resample_choices_are_checked, resample_is_remembered_and_a_bad_saved_value_falls_back; layer_menu_cmds export_layer_resamples_with_the_chosen_method; tests/it/export_as_scaling.rs export_as_resample_menu_writes_nearest_neighbor_blocks |
|
||||
| FILE-215-19 | Save As JPEG opens a JPEG Options dialog (quality 0-12, format options) | partial | [#215](https://github.com/storytold/photocraft/issues/215) | jpeg_options_ui.rs: File > Save, Save As and Save a Copy to a JPEG ask for Quality 0-12 (Low/Medium/High/Maximum) and Baseline / Baseline Optimized / Progressive before writing, starting at an opened JPEG's own quality (file_encoding) or else the Export preference; scripts pass quality/jpegFormat (file.saveAs, file.saveACopy, app.save, CLI --jpeg-format) and recorded actions replay the answer (discard_ui/tests/jpeg_tests.rs, codecs roundtrip jpeg_format_options_round_trip). Baseline Optimized fits the Huffman tables only at 4:4:4 (Gray, CMYK) or progressive: RGB is written 4:2:0, which zune-jpeg 0.5.15 decodes wrongly with fitted tables, as in Save for Web, so RGB Baseline Optimized writes the same file as Baseline. Missing: Matte, progressive Scans (3-5) and the size preview |
|
||||
| FILE-215-19 | Save As JPEG opens a JPEG Options dialog (quality 0-12, format options) | partial | [#215](https://github.com/storytold/photocraft/issues/215) | jpeg_options_ui.rs: File > Save, Save As and Save a Copy to a JPEG ask for Quality 0-12 (Low/Medium/High/Maximum) and Baseline / Baseline Optimized / Progressive before writing, starting at an opened JPEG's own quality (file_encoding) or else the Export preference; scripts pass quality/jpegFormat (file.saveAs, file.saveACopy, app.save, CLI --jpeg-format) and recorded actions replay the answer (discard_ui/tests/jpeg_tests.rs, codecs roundtrip jpeg_format_options_round_trip). Baseline Optimized fits the Huffman tables only at 4:4:4 (Gray, CMYK) or progressive: RGB is written 4:2:0, which zune-jpeg 0.5.15 decodes wrongly with fitted tables, as in Save for Web, so RGB Baseline Optimized writes the same file as Baseline. The dialog shows the size the file will have (152.3K, 1.5M), encoded in memory with its settings off the UI thread, up to 40 MP (jpeg_options_ui/size_readout.rs). Missing: Matte and progressive Scans (3-5) |
|
||||
| FILE-215-20 | Artboard tool with handles and + buttons, Duplicate Artboard beside, vector PDF pages | partial | [#215](https://github.com/storytold/photocraft/issues/215) | artboard_tool.rs: Artboard tool draws, selects, moves and resizes boards by their handles (⇧ keeps proportions), its + buttons add a board or (⌥) a copy beside the selected one (#3033); Duplicate Artboard places the copy beside (#1584); raster PDF pages only |
|
||||
| FILE-215-21 | Local libraries of colours, patterns, images and layers, as linked items or copies | missing | [#215](https://github.com/storytold/photocraft/issues/215) | Only preset libraries (preset_store.rs) |
|
||||
| FILE-216-1 | Every corpus fetched and enforced in CI, cached by pin | done | [#216](https://github.com/storytold/photocraft/issues/216) | ci.yml has a corpus job (name: corpus tests) on every PR and on main: the corpora are pinned in xtask/src/corpus_pins.rs, sha256-verified after both a cache restore and a download, and a missing corpus fails the tests. The cache key follows the pins, so it is cached by pin as this row asks (#190) |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# PhotoCraft vs Adobe Photoshop: target-app parity
|
||||
|
||||
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-26 · **Change:** minor (cropped selection morphology and command mask conversion performance evidence added; 12 of 178 preferences do nothing, from the scorecard; the Camera Raw row names per-camera colour for non-DNG cameras as missing, not the Calibration panel, which landed 2026-10-13; Content-Aware Scale measurements added, #5236; Help › Check for Updates and an opt-out check once per launch, DIST-220-1 partial, #5485; area type, TYPE-218-10 partial, Type scorecard 5 / 5 / 0; compound layer properties export as separate Photoshop Set events, #8304; JPEG Options dialog landed, FILE-215-19 partial; Print › Functions › Bleed through `file.print`; Content-Aware Move live preview for every selection size, TOOL-213-4 done, #6680; retouching evidence: Pattern Stamp and Background Eraser draw live, only the Mixer Brush is left of TOOL-213-7; fill and adjustment layers copy and paste whole, UI-217-23 partial, #2344; shape layers take Density and Feather, TOOL-214-12 done, #5846; on-canvas corner radius widgets, TOOL-214-12; `.atn` import maps 112 events; Free Transform H/V skew fields; stale rows corrected against `main` and the scorecard, estimates unchanged; Photoshop Actions `.atn` load and save; 2026-10-10: Tilt-Shift measurements added; earlier the same day: major, full re-measure against Photoshop 2026 27.11.0; merged `parity-estimate.md` and the roadmap's honest assessment; stale missing-tool rows corrected: Color Replacement and Red Eye are live toolbar tools, Frame landed; percentages unchanged; PSD spot plates in Photoshop's polarity, #7415 split; TIFF spot plates, FILE-215-17's TIFF part, #7415) · **Target:** Adobe Photoshop 2026
|
||||
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-10-28 · **Change:** minor (JPEG Options shows the size the file will have, FILE-215-19 partial; percentages unchanged; cropped selection morphology and command mask conversion performance evidence added; 12 of 178 preferences do nothing, from the scorecard; the Camera Raw row names per-camera colour for non-DNG cameras as missing, not the Calibration panel, which landed 2026-10-13; Content-Aware Scale measurements added, #5236; Help › Check for Updates and an opt-out check once per launch, DIST-220-1 partial, #5485; area type, TYPE-218-10 partial, Type scorecard 5 / 5 / 0; compound layer properties export as separate Photoshop Set events, #8304; JPEG Options dialog landed, FILE-215-19 partial; Print › Functions › Bleed through `file.print`; Content-Aware Move live preview for every selection size, TOOL-213-4 done, #6680; retouching evidence: Pattern Stamp and Background Eraser draw live, only the Mixer Brush is left of TOOL-213-7; fill and adjustment layers copy and paste whole, UI-217-23 partial, #2344; shape layers take Density and Feather, TOOL-214-12 done, #5846; on-canvas corner radius widgets, TOOL-214-12; `.atn` import maps 112 events; Free Transform H/V skew fields; stale rows corrected against `main` and the scorecard, estimates unchanged; Photoshop Actions `.atn` load and save; 2026-10-10: Tilt-Shift measurements added; earlier the same day: major, full re-measure against Photoshop 2026 27.11.0; merged `parity-estimate.md` and the roadmap's honest assessment; stale missing-tool rows corrected: Color Replacement and Red Eye are live toolbar tools, Frame landed; percentages unchanged; PSD spot plates in Photoshop's polarity, #7415 split; TIFF spot plates, FILE-215-17's TIFF part, #7415) · **Target:** Adobe Photoshop 2026
|
||||
|
||||
The authoritative answer to "how close is PhotoCraft to Photoshop, and how much work is left". The
|
||||
one-page summary is [`ROADMAP.md`](../ROADMAP.md); the ranked work list is [`gaps.md`](gaps.md);
|
||||
@@ -179,7 +179,7 @@ parity for the area and are already contained in the dimension rows above.
|
||||
| Camera Raw and computational photo (Photomerge, HDR, lens) | 45% | 120–200 | Raw for DNG/CR2/NEF/ARW/RW2/ORF/RAF(uncompressed)/PEF; no CR3; ACR dialog partial (no masking; no per-camera colour for non-DNG cameras); generic lens profiles only |
|
||||
| Automation, actions, batch, scripting | 45% | 120–200 | CLI/MCP/control channel ahead of Photoshop; Actions panel and recording not document-independent (AUTO-219-1/2); `.atn` load/save since 2026-10-12 (112 events mapped, the rest kept verbatim); compound layer properties export as separate Set events with rename last (#8304, 2026-10-21; independent Photoshop replay pending); no ExtendScript/UXP |
|
||||
| File I/O | 60% | 300–500 | See [file-format-parity.md](file-format-parity.md) |
|
||||
| Print, export, Save for Web | 50% | 60–100 | JPEG Options without Matte, progressive Scans or size preview (FILE-215-19), no Photoshop PDF, no separations, Save for Web settings not remembered |
|
||||
| Print, export, Save for Web | 50% | 60–100 | JPEG Options without Matte or progressive Scans (FILE-215-19), no Photoshop PDF, no separations, Save for Web settings not remembered |
|
||||
| Video / timeline, data-driven graphics | 30% | 100–200 | Menu items live; frame model persists in `.pcraft`; no PSD video-layer mapping |
|
||||
| Workspace, panels, preferences | 40% | 150–250 | 12 of 178 prefs do nothing (scorecard, 2026-10-25); no floating/OS-window panel groups; Libraries, Comments, Contextual Task Bar missing |
|
||||
| AI / generative | 10% | 300–600 | See the dimension row |
|
||||
@@ -580,6 +580,7 @@ See [method, raw measurements and reproduction](five-algorithm-performance.md).
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-10-28 | minor | JPEG Options shows the size the file will have (FILE-215-19 partial: no Matte or progressive Scans); percentages unchanged |
|
||||
| 2026-10-26 | minor | Expand/Contract/Border distance work, mask reads and replacement cropped to nonzero bounds; bounded distances for radii ≤5; 36 MP exact-output comparisons improve 1.54–37.82× across eight cases; percentages, estimates and scorecard budgets unchanged |
|
||||
| 2026-10-25 | minor | UI / UX and Workspace rows: 12 of 178 preferences do nothing, the scorecard's count. Camera Raw row: the Calibration panel landed on 2026-10-13 (#5128); what is missing is per-camera colour for non-DNG cameras ([gaps.md](gaps.md) G14). Percentages and estimates unchanged |
|
||||
| 2026-10-23 | minor | Colour management and modes: PSD spot plates are stored as Photoshop stores them (ink 0 = solid), and PSDs from earlier PhotoCraft versions keep their ink (#7415 split, part 4); estimates unchanged |
|
||||
|
||||
@@ -136,7 +136,7 @@ id = "FILE-215-19"
|
||||
target = "Save As JPEG opens a JPEG Options dialog (quality 0-12, format options)"
|
||||
status = "partial"
|
||||
issue = 215
|
||||
note = "jpeg_options_ui.rs: File > Save, Save As and Save a Copy to a JPEG ask for Quality 0-12 (Low/Medium/High/Maximum) and Baseline / Baseline Optimized / Progressive before writing, starting at an opened JPEG's own quality (file_encoding) or else the Export preference; scripts pass quality/jpegFormat (file.saveAs, file.saveACopy, app.save, CLI --jpeg-format) and recorded actions replay the answer (discard_ui/tests/jpeg_tests.rs, codecs roundtrip jpeg_format_options_round_trip). Baseline Optimized fits the Huffman tables only at 4:4:4 (Gray, CMYK) or progressive: RGB is written 4:2:0, which zune-jpeg 0.5.15 decodes wrongly with fitted tables, as in Save for Web, so RGB Baseline Optimized writes the same file as Baseline. Missing: Matte, progressive Scans (3-5) and the size preview"
|
||||
note = "jpeg_options_ui.rs: File > Save, Save As and Save a Copy to a JPEG ask for Quality 0-12 (Low/Medium/High/Maximum) and Baseline / Baseline Optimized / Progressive before writing, starting at an opened JPEG's own quality (file_encoding) or else the Export preference; scripts pass quality/jpegFormat (file.saveAs, file.saveACopy, app.save, CLI --jpeg-format) and recorded actions replay the answer (discard_ui/tests/jpeg_tests.rs, codecs roundtrip jpeg_format_options_round_trip). Baseline Optimized fits the Huffman tables only at 4:4:4 (Gray, CMYK) or progressive: RGB is written 4:2:0, which zune-jpeg 0.5.15 decodes wrongly with fitted tables, as in Save for Web, so RGB Baseline Optimized writes the same file as Baseline. The dialog shows the size the file will have (152.3K, 1.5M), encoded in memory with its settings off the UI thread, up to 40 MP (jpeg_options_ui/size_readout.rs). Missing: Matte and progressive Scans (3-5)"
|
||||
|
||||
[[item]]
|
||||
id = "FILE-215-20"
|
||||
|
||||
Reference in new issue
Block a user