APNG Assembler 重複フレームの短縮を無効化

2026年10月5日

修正

APNG AssemblerなどAPNGデータをつくる場合、同じ画像を連続して使うと1フレームとしてつくられることがあります。それを無効化する方法です

  // NOTE: identical consecutive frames are deliberately NOT merged into one.
  // Every input frame is emitted as its own animation frame, so frame counts
  // round-trip exactly (including runs of duplicate images). Re-enable
  // optim_duplicates(img, first) here to get the old delay-merging behavior.
  // optim_duplicates(img, first) 

バイナリー

C++

Posted by eightban