shared-mime-info: image/x-fits -> image/fits

David Faure faure at kde.org
Mon May 11 03:54:24 PDT 2009


On Tuesday 17 February 2009, Alexey Shuvaev wrote:
> Yes, and http://www.iana.org/assignments/media-types/application/ knows
> about application/fits
> As I have mentioned it is not so important but if we are at FITS mime
> types it may be reasonable to add this type (application/fits) too.
> See attached patch.
> It is an old patch against 1.401 of freedesktop.org.xml.in so hunks
> about image/fits should be almost completely removed.
> Here I tried to add application/fits and make image/fits subclass of it.
> The problem is how to differentiate between them (they have identical
> signatures).
> In a nutshell, each FITS file starts with the following 3 lines:
> SIMPLE  =                  T
> BITPIX  =                  8
> NAXIS   =                  3
> 
> Actually these are not 'classical lines' (no newline at the end) but
> 80-bytes keyword-value entries padded with spaces :)
> BITPIX may have other values (16, 32, 64, -32, -64 IIRC).
> The difference between application/fits and image/fits (in its simplest case)
> is that image is allowed to have NAXIS = [1,2,3] while application has
> no restrictions. So if some guru here can code this into
> freedesktop.org.xml.in, that would be nice.

If you haven't done so yet, the best way to get this to happen is to
* provide small test files for both mimetypes
* file a bug report on the freedesktop.org bug tracker (with the files and the patch, ideally).

-- 
David Faure, faure at kde.org, sponsored by Qt Software @ Nokia to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the xdg mailing list