A computer-implemented image sharing method, comprising: grouping (S210) images in a gallery according to attribute information of the images in the gallery, to obtain at least one group of images of a same event, the grouping (S210) comprises: grouping the images in the gallery according to at least the following attribute information of the images in the gallery: time information and photographing parameter information, to obtain the at least one group of images of the same event; then obtaining an allowed maximum of sharing photos at once allowed by a target sharing platform by a terminal device from a network-side server; obtaining (S220) images selected from the gallery by a user, the images are photos taken by the user, wherein a quantity of the selected images is greater than the allowed maximum, the obtaining comprises: obtaining the at least one group of images of the same event selected from the gallery by the user; determining, according to the quantity of the images selected from the gallery by the user and the allowed maximum, an image template used by a processed image; performing (S230) synthesis processing on at least two selected images to obtain at least one processed to-be-shared image, wherein a quantity of the processed to-be-shared mages after processing is less than or equal to the allowed maximum, and the image template is used to splicing the at least two selected images into a long photo determined according to the quantity of images selected from the gallery by the user and the allowed maximum; and sending (S240) the processed to-be-shared images to the target sharing platform. grouping (S210) images in a gallery according to attribute information of the images in the gallery, to obtain at least one group of images of a same event, the grouping (S210) comprises: grouping the images in the gallery according to at least the following attribute information of the images in the gallery: time information and photographing parameter information, to obtain the at least one group of images of the same event; then obtaining an allowed maximum of sharing photos at once allowed by a target sharing platform by a terminal device from a network-side server; obtaining (S220) images selected from the gallery by a user, the images are photos taken by the user, wherein a quantity of the selected images is greater than the allowed maximum, the obtaining comprises: obtaining the at least one group of images of the same event selected from the gallery by the user; determining, according to the quantity of the images selected from the gallery by the user and the allowed maximum, an image template used by a processed image; performing (S230) synthesis processing on at least two selected images to obtain at least one processed to-be-shared image, wherein a quantity of the processed to-be-shared mages after processing is less than or equal to the allowed maximum, and the image template is used to splicing the at least two selected images into a long photo determined according to the quantity of images selected from the gallery by the user and the allowed maximum; and sending (S240) the processed to-be-shared images to the target sharing platform. <EOS>