Re: Extracting a region from a Jpeg



Jeff wrote:
Hi

Does anyone know if it would be possible in principle to extract a rectangular region from a Jpeg file without decoding the pixels - or put another way could a jpeg file be cropped without first decoding it? I'd be prepared to accept that the width and height of the rectangle had to be aligned multiples of 8.

Try looking at jpegtran. Does (in the latest version)
what you want, and the source is available.

http://sylvana.net/jpegcrop/

BugBear
.



Relevant Pages

  • Re: Extracting a region from a Jpeg
    ... Does anyone know if it would be possible in principle to extract a ... rectangular region from a Jpeg file without decoding the pixels - or put ...
    (sci.image.processing)
  • Re: Extracting a region from a Jpeg
    ... Does anyone know if it would be possible in principle to extract a rectangular region from a Jpeg file without decoding the pixels - or put another way could a jpeg file be cropped without first decoding it? ... You would have to re-encode parts of the DC coefficients, or at least decode parts of the DC coefficients. ...
    (sci.image.processing)
  • Re: Extracting a region from a Jpeg
    ... rectangular region from a Jpeg file without decoding the pixels - or put ... The supplied command line executables work fine, ...
    (sci.image.processing)
  • Extracting a region from a Jpeg
    ... rectangular region from a Jpeg file without decoding the pixels - or put ...
    (sci.image.processing)
  • Re: Extracting a region from a Jpeg
    ... Does anyone know if it would be possible in principle to extract a rectangular region from a Jpeg file without decoding the pixels - or put another way could a jpeg file be cropped without first decoding it? ... for some chroma subsampled images blocks may be multiples of 16 ...
    (sci.image.processing)