[gimp/gimp-2-10] plug-ins: fix Radiance RGBE magic number.



commit 2b82362eae6434992d2cf6da6995524051e75d57
Author: Jehan <jehan girinstud io>
Date:   Fri Dec 17 16:56:43 2021 +0100

    plug-ins: fix Radiance RGBE magic number.
    
    Note that the full magic should be "#?RADIANCE". Not sure why we only
    use the first 2 characters. Do some software create these RGBE files
    with just "#?" and we want to be able to read these? No other image
    format use these 2 characters as the start of their own magic numbers?
    
    Anyway let's keep like this for now. We'll see. If it makes a problem,
    we might update to more accurate magic later.
    
    (cherry picked from commit d5164072e064c160329dc276344508d6bacf8870)

 plug-ins/common/file-gegl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/common/file-gegl.c b/plug-ins/common/file-gegl.c
index 81943f5398..48beffcd5e 100644
--- a/plug-ins/common/file-gegl.c
+++ b/plug-ins/common/file-gegl.c
@@ -73,7 +73,7 @@ static const FileFormat file_formats[] =
     N_("Radiance RGBE"),
     "image/vnd.radiance",
     "hdr",
-    "0,string,?#",
+    "0,string,#?",
 
     "file-load-rgbe",
     "Load files in the RGBE file format",


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