http://www.elektronik.htw-aalen.de/packJPG/

Moderators: helmut, XnTriq, xnview
Ok, i'll checkiycgtptyarvg wrote:Oh, I forgot to mention the most important part: it's now open source!!!
^This is a major flaw with this. The compressed format needs to be standardized, or at least for the newer versions of the program to be able to decode the older formats. With each program version creating different formatted images, but using the same extension for each, anyone who tries to open an image they compressed a long time ago or got from someone else will be completely screwed.Compressed PJG files are not compatible between different packJPG
versions. You will get an error message if you try to decompress PJG
files with a different version than the one used for compression.
Hi,
first of all: sorry to keep you waitig that long. I've been very busy these last few days, so a few emails didn't get a reply on time.
I'm Matthias Stirner, the developer of packJPG. Thanks for your interest in my work!
In fact, I've been in contact with Pierre (the author of XNview) in the past. I even made a packJPG library for him to use in XNview. At some point, there was even experimental .pjg support. However, the library I gave Pierre was still a bit buggy and there was still the fact that packJPG was an evolving format (which it still might be today). So, to my knowledge, theres no .PJG support in XNview right now, although that would be great.
With the now released packJPG source code it is possible to compile a stable and reliable packJPG library (instructions are included in the archive). This would make a good starting point for generic PJG support in XNView. However, packJPG is still dependent on the JPG-format, which means that to use the library you first have to create a JPG file from image data, which is impractical, but not as bad as one might think. Converting to and from JPG using the IJG libraries is pretty fast anyways, plus you could use the same setting dialogues as for JPG.
With a few modfications to the packJPG source code it would also be possible to bypass JPG and create PJG from image data. It is not even very complicated, basically you'd have to "marry" a very simple baseline JPEG codec with packJPG and throw out the unused stuff afterwards (huffman coding and decoding f.e.). However this means work, possibly a lot of it, so this is just an idea.
> Is there anything you could do on your side to promote this too?
In fact I've got a suggestion: Possibly Pierre is reluctant to include packJPG because of its current licensing (GPL v3). The solution (if that's the case): I could re-release it under the LGPL, or I could also give Pierre special permission to use the library in XNview.
Whatever is needed, as long as it doesn't mean that someone makes tons of money from it without giving anything back.
I hope that helps!
Kind regard,
Matthias