Can I programmatically remove restart markers from JPEG images?

Can I programmatically remove restart markers from JPEG images?

+3
source share
2 answers

jpegtran can add markers with -restart Nto possibly also remove them. Even if this is not possible, it is the right tool to change if you want to write this function yourself.

+3
source

Yes.

The easiest way is to write a byte stream copier that understands the file format of the JPEG stream and in response to detecting the RSTn marker, omitting it at the output. In addition, the JPEG header must be modified to remove the DRI marker (determine the restart period).

, , . RSTn MOST .

+1

All Articles