Skip to content

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 26 Aug 08:18
· 28 commits to main since this release
010f6d2

pictkura 0.2.2 is a small release about RAW files: Canon's HDR PQ shots get a thumbnail at
last, and a RAW that declares the sensor's own size now has it recorded.

What's new

Thumbnails for Canon's HDR PQ RAW files. A CR3 shot in HDR PQ carries its preview as
HEVC rather than JPEG — 10-bit PQ will not fit in a JPEG — and there is no usable JPEG
anywhere else in the file. Those files used to sit in the grid as an empty frame. pictkura
now lifts the HEVC preview out of the file, wraps it as a minimal HEIF, and hands it to the
same decoder it already uses for HEIC, so the picture appears.

Getting one of these out of the file costs about a quarter to four tenths of a second on
this machine, slower on some, where the same job on the other RAW files at hand took 2.6 to
104 milliseconds. So it only happens when nothing found earlier in the file is big enough
for the size being asked for. Ordinary CR3 files are untouched and just as fast as before.

The viewer goes down the same road, so these files open as well, not just show a tile.

This one is Windows only for now, and it needs the same OS components as HEIC: "HEIF Image
Extensions" (free) for the container and "HEVC Video Extensions" (paid) for the pixels.
Without them the file keeps its empty frame, and nothing points you at the cause — the
notice inside the app that offers to install them counts HEIC photos, not RAW. On macOS these
files still show an empty frame too, because the HEIF decoder there is not wired up yet.

A RAW that declares the sensor's size gets it recorded. width/height for a RAW used
to hold the size of the embedded preview — 1620x1080 for an HDR PQ CR3 — while the sensor's
own 6000x4000 went unrecorded. Both are kept now, read from what the file itself declares.

Where that is written differs by maker, and plenty of them do not put it within reach.
Canon writes it in the CR3's CMT1 box and in the CR2's Exif IFD; Sony, Samsung, Phase One
and Apple write it in the Exif IFD as well. Nikon, Fujifilm, Panasonic, Olympus, Sigma,
Leica and others keep it inside a SubIFD this reader does not open, so those files carry the
preview's size as before. Of 24 sample files from raw.pixls.us, 8 declared a size
and 5 of those differed from the preview. For those, the grid draws the tile at the sensor's
aspect ratio, which is close to the preview's but not always equal.

Existing libraries correct themselves once, quietly in the background, on the first launch
after the update. Nothing needs to be rescanned and no thumbnail is rebuilt — this pass
never decodes a picture. It does read the file, though: for CR2, NEF, ARW, DNG and other
TIFF-shaped RAW the reader takes in the whole file to find the declaration, so a library
with many RAW files will have the disk busy for a while that first time. It happens once,
and files on a drive that is not connected, or that live only in the cloud, are left alone
until the day they can be read.

Downloads

You want File
Windows 10/11, the usual case pictkura_0.2.2_x64-setup.exe — no administrator rights
Windows, machine-wide install (for administrators) pictkura_0.2.2_x64_ja-JP.msi / _en-US.msi
Windows, no installer pictkura_0.2.2_x64-portable.zip
macOS 11+ (Apple Silicon) pictkura_0.2.2_arm64.zip

Neither build is code-signed, so Windows shows SmartScreen and macOS shows Gatekeeper on
first launch. The README walks through
both, including the extra steps macOS 15 needs.

Upgrading from 0.2.1

On Windows, run the installer over the top of the old one. On macOS, unzip the new
pictkura.app and replace the old one where you keep it — the Gatekeeper steps in the
README apply again, because the app you
just downloaded is a new file as far as macOS is concerned.

Either way, your library, settings, favourites and picks stay where they are.

Known gaps

The HDR PQ preview above is decoded by the operating system, so it needs Windows and the
two extensions named above. Video thumbnails are Windows-only for the same reason. .m2ts
and .avi appear in the grid but do not play in the app. There is no sort order for search
results (newest capture date first), no UI to rebuild the search index, and imports cannot
be cancelled once started. The full list is in the README.


日本語

pictkura 0.2.2 は小さな更新で、中身はRAWの話が2つです。Canon の HDR PQ で撮った RAW に
サムネイルが出るようになり、原本(センサー)の寸法を申告している RAW は、その寸法も
控えるようになりました。

新しくなったところ

Canon の HDR PQ で撮った RAW にサムネイルが出ます。 HDR PQ で撮った CR3 は、
プレビューを JPEG ではなく HEVC で書きます——10ビットの PQ は JPEG では表せません——
そして、そのファイルには使える JPEG が1枚も入っていません。これまでは一覧に枠だけが
並んでいました。pictkura はこの HEVC のプレビューをファイルから取り出し、最小の HEIF に
包み直して、HEIC で既に使っているデコーダに渡すようにしました。絵が出ます。

取り出しは1枚あたり0.25〜0.4秒ほどかかります(この機械での値で、機械によっては
もう少しかかります。同じ取り出しを手元の他のRAWでやると 2.6〜104ミリ秒でした)。
そのため、それまでに見つかった絵が、求められた大きさに届かなかったときだけ
この道を通ります。ふつうの CR3 はこれまでどおりの速さです。

ビューアも同じ道を通るので、一覧に出るだけでなく開いても絵が出ます

いまのところ Windows のみで、HEIC と同じOSの部品が要ります——コンテナのための
「HEIF Image Extensions」(無料)と、画素の展開に「HEVC Video Extensions」(有料・
数百円)です。入っていなければ枠だけのままで、しかも理由を指してくれるものが
ありません——アプリの中で導入を勧める帯が数えているのは HEIC の写真で、RAW は
数に入らないからです。macOS では HEIF のデコーダをまだ繋いでいないので、こちらも
枠だけになります。

原寸を申告している RAW は、その寸法も控えます。 これまで RAW の width/height
に入っていたのは埋め込みプレビューの寸法で(HDR PQ の CR3 なら 1620x1080)、
センサーの 6000x4000 はどこにも残っていませんでした。いまは両方を持ちます。値は
ファイル自身の申告から読みます。

どこに書いてあるかは社ごとに違い、手の届かない所に置く社も多くあります。
Canon は CR3 なら CMT1 の箱、CR2 なら Exif IFD に書きます。Sony・Samsung・
Phase One・Apple も Exif IFD です。Nikon・Fujifilm・Panasonic・Olympus・Sigma・
Leica などは SubIFD の中に置いており、いまの読み手では届かないので、これまでどおり
プレビューの寸法のままです。raw.pixls.us のサンプル24件では、
申告を持つのが8件、そのうち実際にプレビューと違ったのが5件でした。その5件では、
一覧の枠が原本の縦横比で描かれます——プレビューとほぼ同じですが、常に同じとは限りません。

すでにあるライブラリは、更新後の初回起動で一度だけ、背景で静かに直ります。取り込み直しは
要りませんし、サムネイルも作り直しません(絵は1枚も起こしません)。ただしファイルは
読みます
——CR2・NEF・ARW・DNG のようなTIFFの形をしたRAWでは、申告を探すのに
1枚まるごと読むので、RAWの多いライブラリでは初回だけディスクがしばらく動きます。
走るのは一度きりです。繋いでいないドライブの中や、クラウドにしか実体が無いファイルは、
読める日が来るまで触りません。

配布物について

用途 ファイル
Windows 10/11・ふつうはこれ pictkura_0.2.2_x64-setup.exe(管理者権限は不要)
Windows・PC全体に入れる(企業などの管理者向け) pictkura_0.2.2_x64_ja-JP.msi / _en-US.msi
Windows・インストール不要 pictkura_0.2.2_x64-portable.zip
macOS 11以降(Apple Silicon) pictkura_0.2.2_arm64.zip

どちらも署名していないので、初回に Windows は SmartScreen、macOS は Gatekeeper の
警告が出ます。進め方は
README
書いてあります(macOS 15 で手順が変わった件も含みます)。

0.2.1 からの更新

Windows はインストーラをそのまま上書きで実行してください。macOS は ZIP を展開して、
置いてある pictkura.app を新しいものに置き換えてください——Gatekeeper の手順は
もう一度必要です
(macOS から見ると、落としてきたのは別のファイルだからです)。
手順は README
あります。

どちらの場合も、ライブラリ・設定・お気に入り・選別の印はそのまま残ります。

まだ出来ないこと

上の HDR PQ のプレビューはOSのデコーダで開くので、Windows と、上に書いた2つの
拡張機能が要ります。動画のサムネイルも同じ理由で Windows のみです。.m2ts
.avi は一覧には出ますが、アプリ内で再生できません。検索結果の並び替え(撮影日の
新しい順で固定)、検索索引の再構築UI、取り込みの中断はありません。全部はREADMEに
まとめてあります。