List for cgit developers and users
 help / color / mirror / Atom feed
* Image blobs should be printed as images instead of hexdumps
@ 2012-02-29 11:30 ape
  2012-02-29 11:39 ` mailings
  0 siblings, 1 reply; 6+ messages in thread
From: ape @ 2012-02-29 11:30 UTC (permalink / raw)


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>




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-01 15:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-29 11:30 Image blobs should be printed as images instead of hexdumps ape
2012-02-29 11:39 ` mailings
2012-03-01  9:56   ` ape
2012-03-01 13:34     ` mailings
2012-03-01 15:20       ` ape
2012-03-01 15:53         ` mailings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).