If signed image is other than JPG and PNG, ingredients don't have thumbnails

Is there a particular reason why ingredient thumbnails aren't generated for images that aren't JPG or PNG? It seems like only minimal code modifications are needed to extend this functionality to other image formats as well.
By applying the following changes, I managed to get c2patool to generate an ingredient thumbnail from a WebP image:

