Moritz Muehlenhoff a écrit :
giggz wrote:
I have just installed fbi. It works well and fast! thanks for that!
The file /usr/lib/mime/packages/fbi add a good config in the
/etc/mailcap, but why is there no mime file for fbgs ? It could be
good to have one, so the mailcap would be automaticly updated!
Hi,
if you provide such a MIME file, I'd be happy to apply it.
Hi,
Ok I have tried to do my best :
I have taken a look in http://www.iana.org/assignments/media-types/ to
see which mime type exist.
The manpage of fbgs says that it can read pdf and postscript, so I put
in the fbgs file :
application/pdf; fbgs '%s'; test=test -z "$DISPLAY"; needsterminal;
application/postscript; fbgs '%s'; test=test -z "$DISPLAY"; needsterminal;
I don't know if I must put in this file the following mimetypes :
image/pdf and image/ps (I don't find them in
http://www.iana.org/assignments/media-types), but they are listed in the
imagemagic mime file.
I propose you a fbi file too. Because I don't think that fbi can read
all the image types. The fbi manpage says that it can read :
PhotoCD, jpeg, ppm, gif, tiff, xwd, bmp and png
So I put in the fbi file the correponding mimetypes :
image/gif; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/jpeg; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/png; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/tiff; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-xwindowdump; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-portable-pixmap; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-ms-bmp; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-photo-cd; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
The fbi manpage says : For other formats fbi tries to use ImageMagick's
convert. So I have taken a look through the imagemagic mime file to take
all the others mimetypes supported. I put the image/eps ; pdf; ps
too...But I don't know if it will work.
I can't test it with all the image types. I have jpeg,png,gif,bmp...but
the complicated others...I don't have.
Could you test it on your computer, before to apply it. Thanks
Have a nice day,
Guillaume
Cheers,
Moritz
application/pdf; fbgs '%s'; test=test -z "$DISPLAY"; needsterminal;
application/postscript; fbgs '%s'; test=test -z "$DISPLAY"; needsterminal;
image/gif; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/jpeg; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/png; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/tiff; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-xwindowdump; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-portable-pixmap; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-ms-bmp; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-photo-cd; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/pnm; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/tga; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/argb; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/xpm; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/vnd.djvu; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/avs; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/bie; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/cmyk; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/dcx; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/fax; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/fits; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/gray; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/pjpeg; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/miff; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/mono; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/mtv; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-portable-bitmap; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/pcd; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/pcx; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-portable-graymap; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/pict; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-portable-anymap; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/rad; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-rgb; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/rgba; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/rla; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/rle; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/sgi; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/sun-raster; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/targa; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/uyvy; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/vid; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/viff; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-xbitmap; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-xpixmap; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/x-icon; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/yuv; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/eps; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/pdf; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;
image/ps; fbi '%s'; test=test -z "$DISPLAY"; needsterminal;