Blocking artifact is one of the main drawbacks of the block-based watermarking method. Though a number of researches on "transparent" digital watermarking system have been presented, all of them use their own criteria in specific domain such as the discrete cosine transform (DCT), discrete wavelet transform (DWT), etc. In this paper, a generic criterion, the local peak signal-to-noise ratio (LPSNR) is presented to ensure the transparency of block-based watermarking method. The central contribution of this paper is the proposal of an approach which takes into account the transparency in spatial domain. However, the watermark can be embedded in either spatial domain or any transform domain.