[gimp/gimp-2-10] meson, configure, plug-ins: image/x-sun-raster is a supported MimeTypes.



commit 1fd6f68afa274a9af099135fa12f0932cdbfd6f6
Author: Jehan <jehan girinstud io>
Date:   Sun Apr 4 15:44:26 2021 +0200

    meson, configure, plug-ins: image/x-sun-raster is a supported MimeTypes.
    
    Also ".sun" is a possible (and common) file name extension for Sun
    Raster images, according to various sources and samples I found (these
    samples with .sun extension also opened fine in GIMP, so it's not just a
    subvariant which we may not handle or something of the sort). This one
    is not so important though as we also register magic bytes for detection
    (which is the proper way), but it can still be useful, mostly for
    exporting (as we will direct to the SunRaster plug-in if someone tried
    to export a file with .sun extension, since no other file format uses
    this extension AFAICS).
    
    There is no functional change, I just had a look at this plug-in while
    handling !428 and realized this format was not present in the MimeType
    list (which is used to generate the desktop file, in order to have
    proper mime types, not detection based on extension only, unlike
    Windows in !428).
    
    (cherry picked from commit cd3333c6d3f255d1950b9f2e8d627e08e49eea48)

 configure.ac                  | 2 +-
 plug-ins/common/file-sunras.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8128e942d2..35e8cd70fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1468,7 +1468,7 @@ AC_SUBST(GIMP_COMMAND)
 
 # The list of MIME types that are supported by plug-ins that are compiled
 # unconditionally:
-MIME_TYPES="image/bmp;image/g3fax;image/gif;image/x-fits;image/x-pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih"
+MIME_TYPES="image/bmp;image/g3fax;image/gif;image/x-fits;image/x-pcx;image/x-portable-anymap;image/x-portable-bitmap;image/x-portable-graymap;image/x-portable-pixmap;image/x-psd;image/x-sgi;image/x-tga;image/x-xbitmap;image/x-xwindowdump;image/x-xcf;image/x-compressed-xcf;image/x-gimp-gbr;image/x-gimp-pat;image/x-gimp-gih;image/x-sun-raster"
 
 #################
 # Bundle packages
diff --git a/plug-ins/common/file-sunras.c b/plug-ins/common/file-sunras.c
index 127d67d2d4..62928cfbf4 100644
--- a/plug-ins/common/file-sunras.c
+++ b/plug-ins/common/file-sunras.c
@@ -261,7 +261,7 @@ query (void)
 
   gimp_register_file_handler_mime (LOAD_PROC, "image/x-sun-raster");
   gimp_register_magic_load_handler (LOAD_PROC,
-                                    "im1,im8,im24,im32,rs,ras",
+                                    "im1,im8,im24,im32,rs,ras,sun",
                                     "",
                                     "0,long,0x59a66a95");
 
@@ -280,7 +280,7 @@ query (void)
 
   gimp_register_file_handler_mime (SAVE_PROC, "image/x-sun-raster");
   gimp_register_save_handler (SAVE_PROC,
-                              "im1,im8,im24,im32,rs,ras", "");
+                              "im1,im8,im24,im32,rs,ras,sun", "");
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]