[gimp] plug-ins: increase MAX_CHANNELS in PSD files to 99.



commit 0a703115d18abd4fafb69482a5c78c125d27c406
Author: Jacob Boerema <jgboerema gmail com>
Date:   Sun May 16 22:58:10 2021 -0400

    plug-ins: increase MAX_CHANNELS in PSD files to 99.
    
    Even though the current specs say max is 56 there
    are sample files with more channels. Since there is
    no reason why we can't handle more let's increase
    the maximum to 99 for now.

 plug-ins/file-psd/psd.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/file-psd/psd.h b/plug-ins/file-psd/psd.h
index 8111b2ab61..c1a1c89ff6 100644
--- a/plug-ins/file-psd/psd.h
+++ b/plug-ins/file-psd/psd.h
@@ -48,7 +48,8 @@
 #define MAX_RAW_SIZE    0               /* FIXME all images are raw if 0 */
 
 /* PSD spec defines */
-#define MAX_CHANNELS    56              /* Photoshop CS to CS3 support 56 channels */
+/* Although the spec still says 56 there is a test image with more so let's go a little higher to 99 */
+#define MAX_CHANNELS    99              /* Photoshop CS to CS3 support 56 channels */
 
 /* PSD spec constants */
 


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