When viewing a file inside a tarball, the content-type is forced to
Works for most files, but not with image files (example: the "Sequence Logo"
tool has a jpg image in the tarball, the browser will display it as text/plain
with binary characters).
This is done in "./lib/galaxy/webapps/community/controllers/tool.py", function
"view_tool_file", line 206:
trans.response.set_content_type( 'text/plain' )
regardless of the file type.
The complicated solution would be to use the "mimetype" library
(http://docs.python.org/library/mimetypes.html) or python-magic
(https://github.com/ahupp/python-magic), but a simpler workaround would be to
just check the file name for "jpg/png/gif" extensions and change the
A way to easily link to tools, so I can send to them to other people or point
them in the right direction.
Ross's Web logo tool (great tool, BTW), If I want to tell where it is, the link
or direct downloading the tarball is:
Both are probably not stable links (if a new version is uploaded).
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at: