Gifimage plugin help - #106
Conversation
|
There are a few main issues:
Just look at how the other plugins do it (jpeg is probably an OK example to go by). |
|
I agree with Daniel, to start you need to submit the actual .cpp/.h files, not the editor leftovers ending in ~. Please submit an update that fixes this, then we will be able to build and see how far it gets. Also, it would be great if you could describe in more detail what you mean by "having problem in executing it." Does it build? Does it clearly build the gif plugin, for example do you see a dist/linux64/lib/gif.imageio.so ? If so, then what exactly happens when you try to "iinfo foo.gif"? Does it crash? Give wrong results? If it crashes, have you done a DEBUG build and tried running in gdb to see where it crashes? |
|
Hint: you should 'git rm' the *~ files, and then 'git add' the files you really intended to show us. Then commit and push, and the pull request will automatically update! Also, I really recommend that you make a separate branch (not master) for such work -- you probably want to keep your master in sync with our master, no? |
|
Thanks for your reply. I have added .cpp files now you can build it to check. |
|
There's still imageioplugin.cpp~, which is not the right file. If you delete this and correctly add imageioplugin.cpp, then we will see the proper diff of exactly what you have changed in imageioplugin.cpp. |
There was a problem hiding this comment.
I'm pretty sure this line is going to be a problem. ImageSpec takes width, height, channels. The channels should, for example, be 3 for an RGB image, 4 for RGBA. Somehow, I have the feeling that GifFile->Image.ColorMap->ColorCount is not the number of channels, but rather the number of distinct colors!
|
You'll also need to make the following changes to get it to build:
When I ran iinfo on a gif I got a segfault in DGifGetRecordType so there may be other issues. |
…mputed The --hash option is deprecated; the SHA-1 hash is now computed in all cases. The SHA1 computation was also moved to later in the txmake process, so it also takes into account upstream image changes, such as resizing. constant color metadata is always emitted (though the image dimenstions are not shrunk unless explicitly requested, such as with --oiio)
I have created the i/o files using gif library installed on ubuntu through the package libgif-dev . But now i am having problem in executing it. I have created all the cmake files according to the gif.imageio but when i try to open a gif file using image viewer it exits without any error message. I even tried converting a jpf file in gif format i am getting segmentation error.
What i have created is not final, m luking for reviews and help in debugging.
Thanks.