The representational image of the city has attracted people’s long-term attention. Nevertheless, the mechanism of interaction between the image and the built environment (BE) and image studies at the town scale have not been fully explored. In this study, we collected multi-source data from 26 characteristic towns in Tianjin, China. We explored a deep learning approach to recognize social media data, which led to the development of quantifiable town uniqueness image (UI) variables. We studied the influence of the BE on the town UI and the moderating effects of positive emotions on the relationship between the two. The results showed that positive emotions had significantly positive moderating effects on the water system ratio’s effect on UI, but weakened sidewalk density and tourist attraction density. They also inhibited the negative effects of road connectivity but could strengthen the negative effects of the sky view factor and points of interest (POI) mix. The moderating effects on other variables are relatively mediocre. This study helps to reveal the inner mechanism of BE and town image. It is conducive to accurately coordinating the relationship between planning policies and design strategies, optimizing resource allocation, and promoting sustainable town development.
Tourism has become a critical pathway for town construction, everyday-life improvement, and cultural revitalization. Yet, the mechanisms through which destination image is associated with town attraction remain insufficiently understood, particularly at the fine-grained town scale. Drawing on social media photographs and check-in records from 26 characteristic towns in Tianjin, China, this study deconstructs tourist destination image into image genes and examines their associations with town gravity. A VGG19-based image-recognition model was used to identify and aggregate 68 scene types into nine image-gene categories, while check-in data from Weibo and Little Red Book were used to measure destination gravity. The results show that uniqueness image, cultural custom genes, public space genes, sidewalk density, and POI mix are significantly and positively associated with town gravity, whereas animal genes exhibit a significant negative association. These findings provide an empirical basis for policymakers and planners to strengthen distinctive cultural representation, optimize public-space systems and service diversity, and promote the sustainable attractiveness of town destinations.