Hacker News new | ask | show | jobs
by bengotow 3307 days ago
License notwithstanding, has anyone tried to create a HEIF file? There are a few samples on this site, but even given the code they've provided on GitHub I can't seem to create a HEIF image from another image format. Their code seems to take an H265 HEVC bytestream as input, which is fine, but I can't find anything that will build an HEVC bytestream for an image rather than a video...
2 comments

You can easily turn an image into a video, or into HEVC, with ffmpeg.
Haha thanks - I didn't think it supported H265 but it looks like I just have to build it from source (https://trac.ffmpeg.org/wiki/Encode/H.265). Suppose that's still fairly "easily" ;-)
Update: I figured out how to do this and posted my findings here: http://jpgtoheif.com/