Commit ebbcadda authored by Michael Natterer's avatar Michael Natterer 😴

app: enable XCF version 12 which finally saves big-endian tile data only

parent 2e0035c9
......@@ -2456,10 +2456,14 @@ gimp_image_get_xcf_version (GimpImage *image,
* saved through parasites, which is compatible with older versions.
*/
/* need version 7 for high bit depth images */
/* need version 7 for != 8-bit gamma images */
if (gimp_image_get_precision (image) != GIMP_PRECISION_U8_GAMMA)
version = MAX (7, version);
/* need version 12 for > 8-bit images for proper endian swapping */
if (gimp_image_get_precision (image) > GIMP_PRECISION_U8_GAMMA)
version = MAX (12, version);
/* need version 8 for zlib compression */
if (zlib_compression)
version = MAX (8, version);
......@@ -2499,6 +2503,7 @@ gimp_image_get_xcf_version (GimpImage *image,
case 9:
case 10:
case 11:
case 12:
if (gimp_version) *gimp_version = 210;
if (version_string) *version_string = "GIMP 2.10";
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment