Aiming at the study of the compression of Khalimsky topological spaces which is an interesting field in digital geometry and computer science, the present paper develops a new homotopy thinning suitable for the work. Since Khalimsky continuity of maps between Khalimsky topological spaces has some limitations of performing a discrete geometric transformation, the paper uses another continuity (see Definition 3.4) that can support the discrete geometric transformation and a homotopic thinning suitable for studying Khalimsky topological spaces. By using this homotopy, we can develop a new homotopic thinning for compressing the spaces and can write an algorithm for compressing 2D Khalimsky topological spaces.