Skip to content

Releases

Picnido 1.3.9

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 25 Nov 03:55

Two rendering faults behind "the picture jumps" and "a smaller copy of the photo appears inside the zoomed one".

Tiles now carry the rectangle they actually cover. A crop can only land on whole pixels, so the bitmap always covers slightly more than it was asked for. Drawing it into the requested frame stretched it by 0.2–1%; at 400% that is tens of points of drift against the whole-picture plate underneath — a second, slightly larger copy of the photo, and a visible shift every time a new crop landed. Fixing the label fixes both.

The whole-picture plate is only drawn when the crop does not cover the screen. It sat under an opaque tile for free, compositing a whole extra full-screen layer every frame; and when a fast zoom-out outran the crop, the sliver that showed was the same photo magnified thirty-odd times. Now it does not enter the frame at all while the crop covers it.

Measured on a 8736x11648 JPEG: 400% drag benchmark 126.7 fps, mean lateness 11.4 ms, p95 28.1 ms, 72 tiles rendered, 32% of one core. Zoom burst p95 frame interval 17.1 ms, zero frames over 100 ms.

New development tools: work/probe/drag (real mouse drag events), PICNIDO_PAN_LOG, PICNIDO_SNAPSHOT_SERIES with PICNIDO_SNAPSHOT_FAST (30 Hz viewer snapshots off the main thread).

Picnido 1.3.8

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 24 Nov 16:00

Zooming a hundred-megapixel photo no longer waits.

What changed

  • While the wheel, a pinch or a drag is still moving, the viewer now draws only from pixels already in memory — it never decodes or allocates a new plane mid-gesture. A 101-megapixel file's full-resolution plane is 388 MB, and zero-filling that while a gesture is running was the one-second hole with no frame in it.
  • A sharp pass runs 0.2 s after the hand stops, so the expensive work lands where no frame is due instead of inside the gesture.
  • The crop budget during a drag is capped at 2048 px on the long side: handing CoreAnimation a fresh 12-megapixel bitmap measured 87 ms against 3 ms for the crop itself.
  • Frame statistics now separate gesture frames from idle frames. A still window with nothing to redraw is not stutter, and the report no longer pretends it is.

Measured, 8736x11648 JPEG, 130 real wheel events

1.3.7 1.3.8
frames over 100 ms during the gesture 1 (worst 197 ms) 0 (worst 16–55 ms)
drag at 400%: mean lateness 14.4 ms 10.3 ms
drag at 400%: p95 lateness 35.4 ms 26.9 ms
tiles re-rendered during the drag 7 66–72

New judgement script: work/verify_zoom_smooth.sh. New development hooks: PICNIDO_FPS_GAPS, PICNIDO_LOG_TIME.

Picnido 1.3.7

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 23 Nov 16:43

胶片条现在停在你正在看的那一张

打开文件夹里的第 28 张,底下的胶片条就从第 28 张排起,第 28 张正好在条子中间,两边是它的邻居。到首张时停在最左边,到末张时停在最右边。

之前为什么不对

胶片条只在「换了一张图」的时候才去定位。而你是直接打开第 28 张的 —— 打开那一刻它已经是第 28 张了,没有「换」这个动作,于是这条定位一次都没跑,整排永远从第一张开始。

同一个原因还造成了第二个现象:底下那条 band 收起来再出现时,是一个全新的滚动视图,位置从零开始。所以用左右键翻了几张、等条子自己收起来、再把鼠标移过去唤出来,它又回到第一张了。这两处现在都修了。

顺手

  • 首张、末张的位置也对了:首张贴左、末张贴右(滚到底了,居中不了,这是正常的)。
  • 新增开发钩子 PICNIDO_VIEWER_INDEX=<n>,按「28 / 60」这个数的口径直接打开第 n 张。其它打开钩子都落在第一张,而第一张恰好是「居中」和「贴左」看起来一样的唯一情况。

验证

work/verify_strip_position.py,四条 case 全部从窗口快照上量像素(当前格是唯一一个满不透明度加 2pt 白描边的):

case 场景 结果
A 打开 60 张里的第 28 张 当前格中心 2047.5 px,窗口中心 2048.0 px
B 打开第 1 张(对照) 靠在左边 48 px,离中心 1922 px
C 打开第 60 张 3892..4047 px,贴右端
D 第 28 张,chrome 自行隐藏后被指针唤回 重建之后仍是 2047.5 px

反例做了:把 1.3.6 的源码检出来、只合入新钩子、胶片条保持原样重编,跑同一脚本 → 6 条 FAIL,而对照的 B 仍然 PASS。也就是说这 6 条是修复带来的差别,不是判据本身松。旧版快照上可以直接看到整排从第一张开始、当前那张根本不在画面里。

既有两条判据复跑无回退:滚轮逐张与端点心跳、指针保持与 1.5 秒收起。arm64 与 x86 各跑一遍,都过。

已知不足

判据跑的是 60 张的文件夹;另外在 300 张里打开第 220 张单独量过一次,同样居中(2047.5 px 对 2048.0 px)。几百张加快速连滚时的平滑度没有测。

Picnido 1.3.6

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 23 Nov 16:24

Two packages, pick one. Picnido-1.3.6.zip is the Apple Silicon build. Picnido-1.3.6-x86.zip is the Intel build. Both carry the same bundle identifier, so install one or the other, not both.

Fixed: a hundred-megapixel photo no longer freezes the viewer.

Reported against a folder of about a hundred files at 60 MB each: opening was slow, zooming locked up, dragging locked up again. Both halves came from the same place.

The viewer decoded the whole file again for every crop it drew. On an 8736 × 11648 JPEG that measured 1.3 seconds for one crop and 2.3 seconds for the next. Worse, the call it relied on returns long before the pixels exist: the actual rasterising happened later, whenever the bitmap was first drawn, which in a SwiftUI view is the main thread inside a display pass. That is the spinning cursor.

Now the file is decoded once per photo into a plain bitmap, the bitmap is held in a byte-budgeted cache, and every crop is a sub-rectangle of it. Same file, zooming from fit to one-to-one in 24 steps:

1.3.5 1.3.6
first picture on screen 527 ms 113 ms
one crop 1271 – 2293 ms 2 – 80 ms
the whole zoom 13.8 s at 1.2 fps 2.3 s at 20 fps
longest main-thread block 12.4 s 0.1 s

The first frame also stops waiting for a decode: the strip is already showing the picture, so its thumbnail is painted immediately, and very large files follow with an eighth-size decode that takes about a tenth as long as any finer one.

Also faster: opening a folder of large photos. Thumbnail decoding now asks for exactly one eighth of the original. That is where the decoder's fast path ends, and one pixel past it costs four to five times as much: 89 ms at one eighth against 484 ms one pixel over, on the same file. About 130 ms per file instead of 500.

Memory. A full-size plane of a 101-megapixel photo is 388 MB. The cache is capped at 640 MB and keeps at most four levels, and stepping through a folder releases them: six of these files in a row peaked at 447 MB and fell back to 166 MB afterwards. The 80 GB problem fixed in 1.3.4 stays fixed.

Known limit. The first deep zoom still pays for one full decode: 0.8 s on an M4, 1.7 s under Rosetta. The window stays responsive throughout (you are looking at the half-size crop) but the last bit of sharpness arrives late. Fixing that honestly needs tiled decoding, which means writing a JPEG decoder, which is not worth it for a photo viewer.

Install. Unzip and drag Picnido.app to /Applications. The build is ad-hoc signed, so the first launch needs one approval: right-click → Open, or System Settings → Privacy & Security → Open Anyway. Nothing else is required.

Requirements. macOS 14 (Sonoma) or later. macOS 14 is the harder constraint than architecture: most Intel Macs from 2017 and earlier cannot run it. The Intel package is cross-compiled and verified under Rosetta 2 on Apple Silicon, not on real Intel hardware.

See README for the full feature list, keyboard reference and build instructions.

Picnido 1.3.5

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 15 Nov 05:18

Two packages, pick one. Picnido-1.3.5.zip is the Apple Silicon build. Picnido-1.3.5-x86.zip is the Intel build. Both carry the same bundle identifier, so install one or the other, not both.

New: the wheel walks the filmstrip.

Rest the pointer on the strip and the wheel stops zooming and starts stepping: one notch, one picture, the same move → makes. Scroll back and it walks the other way. The row follows, so a long folder can be browsed without ever moving the pointer off the strip.

It does not wrap. Walking a strip is how you find out where it ends, and a silent jump from the last picture to the first throws that away, so it stops instead.

New: the strip tells you when it has reached an end.

A row of thumbnails says nothing about scale. In a folder of three hundred, nothing on screen tells you whether you are on picture 2 or picture 297, and the ends are simply not there to see. Now the end announces itself: the cell at that end swells by 12 % and the whole row shoves 7 points outward and springs back, the way a physical strip feels when you pull it against a stop.

It happens twice per visit, and both are wanted. Once on arrival, so landing on the last picture and having the strip go still does not read as a broken gesture. And once per further attempt, so scrolling past the end says "still here, nothing beyond me" instead of doing nothing.

The keyboard is unchanged: ← and → still wrap around the folder. Paging with keys is "show me the next one"; walking with the wheel is "where does this end".

Install. Unzip and drag Picnido.app to /Applications. The build is ad-hoc signed, so the first launch needs one approval: right-click → Open, or System Settings → Privacy & Security → Open Anyway. Nothing else is required.

Requirements. macOS 14 (Sonoma) or later. macOS 14 is the harder constraint than architecture: most Intel Macs from 2017 and earlier cannot run it. The Intel package is cross-compiled and verified under Rosetta 2 on Apple Silicon, not on real Intel hardware.

See README for the full feature list, keyboard reference and build instructions.

Picnido 1.3.4

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 13 Nov 08:48

Two packages, pick one. Picnido-1.3.4.zip is the Apple Silicon build. Picnido-1.3.4-x86.zip is the Intel build. Both carry the same bundle identifier, so install one or the other, not both.

Fixed: memory. Reported from real use: after a while the machine slowed down and the app was holding 80 GB. The image caches never told NSCache how large their entries were, so the byte budget never applied and the only limit left was a count (20,000 entries). Paging through large photos therefore kept every one of them in memory. Measured: 120 moves through 60 photos of 3000–3600 px took the process to 2.4 GB with no ceiling in sight. Every insert now reports its real size, the budgets are enforced in bytes, and the same 120 moves peak at 0.9 GB and stay there.

Fixed: the viewer's tool bar and filmstrip.

  • The zoom percentage no longer appears underneath the file name. With the bar down it owns the top-left corner; with the bar up it drops below the row.
  • The filmstrip no longer fades out from under the pointer. Browse a folder with a few hundred photos and the strip used to disappear mid-click, which turned the next click into a click on the backdrop, which closes the viewer. It now stays up while the pointer is on it, and goes back to hiding the moment the pointer leaves.
  • Arrow keys bring the strip up. It stays for a moment and disappears a second and a half after the last press, instead of not appearing at all.
  • A click that lands in the strip's band no longer closes the viewer even when the strip is down; it brings the strip back. Clicking the glass elsewhere still closes, as before.

Install. Unzip and drag Picnido.app to /Applications. The build is ad-hoc signed, so the first launch needs one approval: right-click → Open, or System Settings → Privacy & Security → Open Anyway. Nothing else is required.

Requirements. macOS 14 (Sonoma) or later. macOS 14 is the harder constraint than architecture — most Intel Macs from 2017 and earlier cannot run it. The Intel package is cross-compiled and verified under Rosetta 2 on Apple Silicon, not on real Intel hardware.

See README for the full feature list, keyboard reference and build instructions.

Picnido 1.3.3 — Apple Silicon + Intel

Choose a tag to compare

@sosoddosgithub sosoddosgithub released this 17 Oct 13:02

Two packages, pick one. Picnido-1.3.3.zip is the Apple Silicon build. Picnido-1.3.3-x86.zip is a self-contained Intel build. Both carry the same bundle identifier, so install one or the other, not both.

First release. Picnido is a native macOS photo browser: point it at folders you already have and it shows you what is in them. Library grid with folders, albums, stars and colour labels; full-screen viewer with a filmstrip; non-destructive editing; animated WebP and GIF playback; and tools for renaming, resizing, exporting and finding duplicates. 41 file formats, English / 简体中文 / 日本語 / 한국어.

Install. Unzip and drag Picnido.app to /Applications. The build is ad-hoc signed, so the first launch needs one approval: right-click → Open, or System Settings → Privacy & Security → Open Anyway. Nothing else is required.

What it does not do. No face recognition, no geotag map, no cloud sync, no video playback (videos are listed and open in QuickTime), no telemetry. Nothing leaves the machine.

Requirements. macOS 14 (Sonoma) or later. The Apple Silicon package needs an Apple Silicon Mac; the Intel package covers Intel Macs that can run macOS 14.

Intel is unproven on real Intel hardware. The x86 package is cross-compiled and verified under Rosetta 2 on Apple Silicon — that proves the code and the bundle, not the machine. macOS 14 is the harder constraint anyway, and most Intel Macs from 2017 and earlier cannot run it.

See README for the full feature list, keyboard reference and build instructions.