Adding caption to jpeg without decoding / recoding
Posted: 2013-09-16T19:20:17-07:00
I want to be able to add a caption to a jpeg image. ImageMagick already supports this of course with its excellent annotate commands, but it requires that IM fully decompress the jpeg image first, and then recompress the image after the text is added. This is not a problem on a PC, but on small single board computers, the amount of cpu / memory / amount of time this takes to do is unacceptable.
I want to be able to generate a text blob of a certain height and width, and then concatenate this new blog with an existing jpeg image without having decompress the image first. Generating a text jpeg that is wide but not very tall is fast. Is there a way to combine two jpegs together without having to decode the two jpeg files?
I want to be able to generate a text blob of a certain height and width, and then concatenate this new blog with an existing jpeg image without having decompress the image first. Generating a text jpeg that is wide but not very tall is fast. Is there a way to combine two jpegs together without having to decode the two jpeg files?