I need to convert several jpeg images at a time into a single, multi-page tiff without losing the compression or the quality. IM can create tiff's with jpeg compression just fine. The only problem is that it does a new encode for the jpeg data regardless of the original image format. Previously, this wasn't a problem because the images I was using were all high quality and in lossless formats so I could crank up the compression and, with just one jpeg encoding in the whole process, not take too much of a hit on quality (for my purposes). Now, some of the images I'm using are only available to me as highly compressed jpeg's (quality: ~45). I realize the damage is already done but I'd really hate to lose even more quality with an unnecessary re-encode just because I want them combined as a single tiff. The tiff files I end up with, ultimately, are going online so converting to, for instance, lossless tiff or a higher jpeg quality isn't practical.
Someone brought up a similar problem (
http://www.asmail.be/msg0054853059.html) to the libtiff folks better than 4 years ago and the discussion that followed went into a lot more depth about the technical details and provide a good picture as to why this is hardly a trivial problem. Unfortunately, as far as I can tell, nothing actually came of that discussion (or at least made it into libtiff). By some of the comments in libtiff's source code (note: I am not a programmer), I got the impression that the IJG implemented most of the jpeg functionality in libtiff and considering someone knowledgeable in the details of both formats would be required to take that implementation any further, I can definitely see where this one simply fell through the cracks.
Bearing that in mind, I would be eternally grateful if this could be implemented in IM because, with the exception of this one problem, it's been a terrific program to use and there seems to be a lot of support for it.

If someone knows of another way, I'd be appreciate knowing more about that, too.
Thanks