Tobias Möritz
Tobias Möritz
> Thanks for your quick reply. I think before we can tackle unit tests, we need to answer this open question: > > > What happens if a subsequent frame...
Just stumbled upon this while working on a test case. It only happened with a file that has a limited number of frames, not e.g. a .png file that only...
I've added a unit test. It checks a sample GIF with a reference file generated by the same snippet.
Summarizing my previous comments: Currrent behavior when transforming a .gif with multiple frames to a .png *without selecting a frame*: Multiple files generated with frame index as suffix. When transforming...
I've looked through the ImageMagick docs and haven't found anything that stops IM from creating files in an error case. :/
I've implemented a new method that checks the frame count using the ImageMagick `identify` CLI. This is unfortunately the only method I found that works, [besides using the `Imagick` extension](https://www.php.net/manual/en/imagick.getnumberimages.php)....
Any updates?
> To the point where I feel like the current implementation could be a downgrade for 99% of users who don't need to access frames. The way I look at...
I moved this into a plugin: https://github.com/tobimori/kirby-magick-extended
Revisiting this after a few months, I think: - The default behavior should be limiting to frame 0, when the target format does not support frames (e.g. not `avif`, `webp`,...