[aseprite] 27/134: Don't add extra ASEPRITE block to .gif file because Photoshop cannot load them

Tobias Hansen thansen at moszumanska.debian.org
Sat Mar 14 17:09:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 525fbd0d46f6b5b587332644d105416c5146ea1b
Author: David Capello <davidcapello at gmail.com>
Date:   Sat Nov 1 13:32:02 2014 -0300

    Don't add extra ASEPRITE block to .gif file because Photoshop cannot load them
---
 src/app/file/gif_format.cpp | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/app/file/gif_format.cpp b/src/app/file/gif_format.cpp
index d927943..7dc0c45 100644
--- a/src/app/file/gif_format.cpp
+++ b/src/app/file/gif_format.cpp
@@ -707,20 +707,6 @@ bool GifFormat::onSave(FileOp* fop)
         throw Exception("Error writing GIF graphics extension record (trailer section).");
     }
 
-    // Add Aseprite block (at this moment, it's empty).
-    if (frame_num == 0) {
-      if (EGifPutExtensionLeader(gif_file, APPLICATION_EXT_FUNC_CODE) == GIF_ERROR)
-        throw Exception("Error writing GIF comment (header section).");
-
-      unsigned char extension_bytes[11];
-      memcpy(extension_bytes, "ASEPRITE1.0", 11);
-      if (EGifPutExtensionBlock(gif_file, sizeof(extension_bytes), extension_bytes) == GIF_ERROR)
-        throw Exception("Error writing GIF comment (first block).");
-
-      if (EGifPutExtensionTrailer(gif_file) == GIF_ERROR)
-        throw Exception("Error writing GIF comment (trailer section).");
-    }
-
     // Write graphics extension record (to save the duration of the
     // frame and maybe the transparency index).
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list