RLE encoding for Targa image format

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
bobshaffer
Posts: 4
Joined: 2014-05-19T03:03:57-07:00
Authentication code: 6789

RLE encoding for Targa image format

Post by bobshaffer »

I was thinking about doing this. It looks like a pretty simple compression method that would be fairly easy to add. I just grabbed the sources from SVN and haven't looked through them too much, but from the looks of things it would just be added directly to coders/tga.c. It doesn't appear that the compression is being handled by any other part of the sources, but directly from the actual image encoding. I am guessing that this is because the implementation of these standard compression methods is slightly different from one image encoding to another, and that they are tied into the encoding in such a way that generic compression wouldn't be a good option. But, anyway, I will look at the code a little more and see if this is something I could get done fairly easily.

Mainly what I would like to know is:
  • Is anyone else already working on this and, if so, would they like help finishing it? It seems unlikely that someone would have started and not finished it, but you never know.
  • Am I missing something, or is the (de)compression all being handled from these "coders" in the coders/ subdirectory? I can probably answer this myself by just reading a couple of them.
The code appears to be pretty clean and well documented. I'll find a link to the coding standards for the project so that hopefully any patches keep it that way.

Thanks
Bob
bobshaffer
Posts: 4
Joined: 2014-05-19T03:03:57-07:00
Authentication code: 6789

Re: RLE encoding for Targa image format

Post by bobshaffer »

Looking at tga.c, it appears that this is at least partially implemented. As of 6.8.8-10, which is the version my distribution seems to have as "lastest stable", it doesn't appear to be working.. I'm going to keep looking through this source and see if I can figure out what is going on, and hopefully a project maintainer can shed some light on this..
bobshaffer
Posts: 4
Joined: 2014-05-19T03:03:57-07:00
Authentication code: 6789

Re: RLE encoding for Targa image format

Post by bobshaffer »

I see that the sources from subversion appear to be a version 7, and that this is already completed and functional.

So never mind and thanks to whomever implemented it. :)
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: RLE encoding for Targa image format

Post by dlemstra »

This was recently added by me due to a request from a user in this topic: viewtopic.php?f=3&t=12335). The url for the ImageMagick 6 branch for Windows is this: https://subversion.imagemagick.org/subv ... -Windows-6. The 'normal' V6 branch is this: https://subversion.imagemagick.org/subv ... geMagick-6

You are still welcome to help us improve other parts of the code.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
bobshaffer
Posts: 4
Joined: 2014-05-19T03:03:57-07:00
Authentication code: 6789

Re: RLE encoding for Targa image format

Post by bobshaffer »

dlemstra wrote:This was recently added by me due to a request from a user in this topic: viewtopic.php?f=3&t=12335). The url for the ImageMagick 6 branch for Windows is this: https://subversion.imagemagick.org/subv ... -Windows-6. The 'normal' V6 branch is this: https://subversion.imagemagick.org/subv ... geMagick-6
Thanks. I don't run Windows, and I just grabbed the code from subversion. That's where I discovered that you had done the work. Thanks for your response.
dlemstra wrote:You are still welcome to help us improve other parts of the code.
This project has been incredibly useful to me over the years. From the first time I typed 'convert' on the command line just to see if there was such a command, I was pleasantly surprised by how simple, straight forward, and useful it was. It was probably several months before I even realized that it was all part of this larger project, ImageMagick. It's a great project, and I would be more than happy to try to contribute. Is there a post or document somewhere that lists the things that need to be done that nobody else is working on?
Post Reply