Since #63, ffprobe is used to get the dimensions of all the files.
However, using ffprobe might be slower than the previous method because the application is calling an external program. Benchmark both ffprobe and the old method (using native Java code) to see which one is faster.
If ffprobe is indeed slower, then change the code to use a mix of native Java code for the supported image formats (jpg, png, webp) and ffprobe for the rest (heif/heic).
Since #63, ffprobe is used to get the dimensions of all the files.
However, using ffprobe might be slower than the previous method because the application is calling an external program. Benchmark both ffprobe and the old method (using native Java code) to see which one is faster.
If ffprobe is indeed slower, then change the code to use a mix of native Java code for the supported image formats (jpg, png, webp) and ffprobe for the rest (heif/heic).