HEIF | PHP
% composer require yoya/io_heif % php vendor/yoya/io_heif/sample/heifdump.php -f test.heic
% x265Options="-x265-params log-level=1 -crf 12 -preset slower" % ffmpegOptions="-loglevel warning -pix_fmt yuv420p -vcodec libx265 -f hevc $x265Options" % ffmpeg -i test.jpg $ffmpegOptions test.hevc % php vendor/yoya/io_heif/sample/heiffromhevc.php -f test.hevc > test.heic