Image blobs should be printed as images instead of hexdumps
Lauri Niskanen
ape at ape3000.com
Wed Feb 29 12:30:10 CET 2012
Hi!
Cgit currently prints a hexdump when you look at a image blob (as with
any other binary blob). This might be a good way to show generic binary
files, but I think images (at least png, jpg) should be shown as images.
Example of the current behaviour:
http://hjemli.net/git/cgit/tree/cgit.png
I suggest that instead of the hexdump you would have HTML like this:
<img src="http://hjemli.net/git/cgit/plain/cgit.png" />
SVG images are not binaric so I would leave them printed as text.
What do you think about this?
--
Ape <Lauri Niskanen>
More information about the CGit
mailing list