A picture is blurred when it is taken by the mobile phone camera in dim light conditions. There are some hardware approaches for commercial use to solve this problem, but they cost high and occupy a large space in the camera. A software approach, called image deblurring, takes much time to process and its result is not suitable for real applications because of the ringing effect. In this paper, we introduce a fast anti-shaking algorithm that is suitable for the mobile phone camera which uses a full-size image with fast shutter speed, and a preview image. The proposed algorithm is relatively free from both cost and size restraints, and shows good ability to prevent the blur of the image. The