I just did a new release of my simple ImageMagick-wielding gallery generator shell script, simgal. It hasn't been touched since 2011 but I use it myself and thought it more or less working, but apparently I haven't used it with JPEG comments for a while...

Embarrasingly I discovered that there was a bug that only showed the first word of any JFIF comment in a JPEG file instead of the entire comment! A case of print $3 versus print substr($0, index($0,$3)), of course.