Laser-scanning microscopy (LSM) is an indispensable imaging tool in biology and medicine.1,2 By eliminating scattered light from out-of-focus planes, LSM offers high spatial resolution images and the capability for “optical sectioning” of cells and tissues.3 Real-time LSM systems applied to in vivo and noninvasive skin imaging have been reported.4,5 Among various laser-beam-scanning technologies, acousto-optical deflector, rotating polygon mirrors, and resonant galvanometers are able to achieve video-rate scanning.6 The galvanometric scanner, also known as galvo, is a popular optical scanning device based on permanent magnetic motor principles and a resonant galvo typically has a maximal rotating frequency of 8 KHz.7 Besides its applications in real-time and in vivo tissue imaging, LSM is also useful in examining ex vivo samples for potential disease biomarkers. To explicitly characterize tissue, cellular morphology needs to be correlated with the underlying chemical composition, which requires spectra (fluorescence and/or Raman) to be acquired by allowing the excitation laser to dwell at focus points for a specified time period. A resonant galvanometer cannot be driven at frequencies other than its frequency and does not allow random access to individual scanning pixels.6 A closed-loop linear galvanometer allows arbitrary scan patterns with high accuracy at variable scanning speeds. Therefore, a linear galvanometer excels in providing precise control of scan angle and dwell time despite its slow speed. As a mechanical device, the inertia of a galvo rotor means a constant response time, which translates into position errors between commanded and actual scanner positions during continuous scanning. At a fast image update rate, the position errors lead to image distortions that complicate calibrating/focusing of the microscopy. Unlike a resonant scanner that comes with line scan synchronization trigger signals, a linear galvo scanner needs to eliminate the effect of inertia differently.8 One proposed method is to use the actual mirror position to synchronize data acquisition (DAQ) and limit the scanning range within the central linear scanning range.9 This method circumvents the effect of response time and also avoids the distortion due to the galvo’s limited bandwidth. However, its performance strongly depends on a proper image reconstruction algorithm. Another possible method is to shift pixels according to the time delay either in real time or after image acquisition.10 Shifting pixels always results in imprecise timing of the delayed response. In this paper, we discuss the scanning parameters that affect the reconstructed image quality at a moderate image update rate. We demonstrate a new method that offers precise and real-time error correction between the driving command and the actual galvo position.