Image import already refused to hand the decoder a JPEG with more than 1024 Extended XMP chunks, which the pinned zune-jpeg re-sorts and rescans after every marker. Export decoded JPEG images and masks through zune-jpeg and image without that check. The check is now shared (upright_image::decodable_metadata) and runs before every export decoder entry point: jpeg_size, which jpeg_of_size goes through for RGB, grey and mask JPEGs, and cmyk_jpeg_samples.