If, when the area to be raised in picture quality is designated, and the area including the area to be raised in picture quality is quantized, the quantization step width for the area to be raised in picture quality is reduced, the post-compression bit rate in its entirety tends to be deviated from the target bit rate.