CN111161149B - Image display method and device - Google Patents

Image display method and device Download PDF

Info

Publication number
CN111161149B
CN111161149B CN201911390134.8A CN201911390134A CN111161149B CN 111161149 B CN111161149 B CN 111161149B CN 201911390134 A CN201911390134 A CN 201911390134A CN 111161149 B CN111161149 B CN 111161149B
Authority
CN
China
Prior art keywords
images
image
composite
display
determined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911390134.8A
Other languages
Chinese (zh)
Other versions
CN111161149A (en
Inventor
王雨婷
朱聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201911390134.8A priority Critical patent/CN111161149B/en
Publication of CN111161149A publication Critical patent/CN111161149A/en
Application granted granted Critical
Publication of CN111161149B publication Critical patent/CN111161149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an image display method and device. One embodiment of the method comprises the following steps: determining an image indicated by a selection operation executed by a user in the social application, wherein the image is used for being released to a social space; in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in the social space, stitching at least two of the determined images into a composite image, wherein the number of composite images is at least one; and respectively corresponding the composite image and each image except the at least two images to different image display bits of one display message. The scheme provided by the embodiment of the application can avoid that more images than a preset number cannot be displayed or a plurality of images must be hidden and displayed when the number of the images to be displayed by the user is large, so that more images can be intuitively displayed in the display message.

Description

Image display method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical field of Internet, and particularly relates to an image display method and device.
Background
With the development of internet technology, more and more users use social applications on terminals to conduct social activities.
Social space in social applications typically has a limit on the number of images posted, e.g., 9 images at maximum. In some cases, the social space, although not explicitly limiting the posted image, may only display a portion of the image and hide the other when the message is displayed. At this time, the user needs to perform more operations to see the entire image.
Disclosure of Invention
The embodiment of the application provides an image display method and device.
In a first aspect, an embodiment of the present application provides an image display method, including: determining an image indicated by a selection operation executed by a user in a social application, wherein the image is used for being released to a social space; in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in social space, mosaicing at least two of the determined images into a composite image, wherein the number of composite images is at least one; and respectively corresponding the composite image and each image except at least two images to different image display bits of one display message.
In a second aspect, an embodiment of the present application provides an image display apparatus including: a determining unit configured to determine an image indicated by a selection operation performed by a user in a social application, the image being for posting to a social space; a mosaic unit configured to, in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in the social space, mosaic at least two of the determined images into a composite image, wherein the number of composite images is at least one; and a display bit determining unit configured to correspond the composite image and each of the images other than the at least two images to different image display bits of one presentation message, respectively.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method as in any of the embodiments of the image display method.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any of the embodiments of the image display method.
According to the image display scheme provided by the embodiment of the application, firstly, the image indicated by the selection operation executed by the user in the social application is determined, and the image is used for being published to the social space. Then, in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in the social space, at least two of the determined images are stitched into a composite image, wherein the number of composite images is at least one. And then, respectively corresponding the composite image and each image except at least two images to different image display bits of one display message. According to the scheme provided by the embodiment of the application, the images to be displayed by the user can be subjected to jigsaw display, and the user looking over can look over more images in the social space without further operation. Therefore, the situation that more images cannot be displayed or a plurality of images must be hidden and displayed when the user needs to display more images can be avoided, and more images can be intuitively displayed in the display message.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which some embodiments of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of an image display method according to the present application;
FIG. 3 is a schematic illustration of an application scenario of an image display method according to the present application;
FIG. 4 is a flow chart of yet another embodiment of an image display method according to the present application;
fig. 5 is a schematic structural view of an embodiment of an image display device according to the present application;
FIG. 6 is a schematic diagram of a computer system suitable for use in implementing some embodiments of the application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which an embodiment of an image display method or image display apparatus of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as social platform software, video-type applications, live applications, instant messaging tools, mailbox clients, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smartphones, tablets, electronic book readers, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., multiple software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and process the received data such as the image indicated by the selection operation, and feed back the processing result (for example, an image corresponding to different image display bits of a display message) to the terminal device.
It should be noted that, the image display method provided by the embodiment of the present application may be performed by the server 105 or the terminal devices 101, 102, 103, and accordingly, the image display apparatus may be provided in the server 105 or the terminal devices 101, 102, 103.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of an image display method according to the present application is shown. The image display method comprises the following steps:
step 201, determining an image indicated by a selection operation performed by a user in a social application, wherein the image is used for publishing to a social space.
In the present embodiment, the execution subject of the image display method (e.g., the server or the terminal device shown in fig. 1) may determine an image indicated by a selection operation performed by the user. The selection operation here indicates that the user selects one or some of the images of the terminal, which is an operation performed by the user in the social application. The image indicated by the selection operation may be posted and displayed in the social space in the form of a presentation message.
Step 202, in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in the social space, mosaicing at least two of the determined images into a composite image, wherein the number of composite images is at least one.
In this embodiment, if the executing body detects that the number of the determined images exceeds the threshold of the number of display bits of one presentation message in the social space, the executing body may tile some or all of the determined images. The composite image is an image obtained by jigsaw. The number of images participating in the mosaic of each composite image may be two or more. In one presentation message, there may be at least one composite image. The determined image refers to the image indicated by the above-described selection operation. The display bit refers to a position for displaying an image in the display message, wherein the image can be an image which is indicated by the user selection operation and does not participate in the jigsaw, and can also be a composite image obtained by at least two image jigsaw.
There are limits to the number of display bits in a presentation message in social space, such as a maximum of 9 display bits for a presentation message. Then, in the prior art, this display message can display at most the number of images, or the display message can hide more than the number of images when displayed.
And 203, respectively corresponding the composite image and each image except at least two images to different image display bits of one display message.
In this embodiment, the execution body may respectively correspond each of the composite image and each of the images other than the at least two images participating in the jigsaw with different image display bits in one display message, that is, establish a correspondence between each composite image and each determined image not participating in the jigsaw, and each of the images respectively with different image display bits. Thus, each composite image and each image which does not participate in the jigsaw exist corresponding image display bits, and the image display bits corresponding to the images are different.
According to the method provided by the embodiment of the application, the images to be displayed by the user can be subjected to jigsaw display, and the user looking over can look over more images in the social space without further operation. Therefore, the situation that more images cannot be displayed or a plurality of images must be hidden and displayed when the user needs to display more images can be avoided, and more images can be intuitively displayed in the display message.
In some optional implementations of this embodiment, the method may further include: and in response to receiving the confirmation operation from the user, publishing the composite image and each image except the at least two images to a presentation message of the social space.
In these optional implementations, after establishing the correspondence, if the executing body detects a confirmation operation of the user, the executing body may issue each composite image obtained by the puzzle and each image except for the at least two images in the determined images to a presentation message in the social space according to the correspondence. Specifically, after the execution subject performs the jigsaw, there may not be any image other than the at least two images, and then the execution subject may issue the composite image only to one presentation message in the social space.
The realization modes can release the composite image and other images obtained by the jigsaw, so that hidden display of the images selected by the user in the display message is not needed, and all the images selected by the user can be intuitively and completely displayed.
In some optional implementations of the present embodiment, the mosaicing at least two of the determined images in step 202 into a composite image may include: selecting, from among the determined images, images having a number equal to the threshold number of display bits; and comparing the difference value between the determined number of images and the display bit number threshold with the display bit number threshold, and mosaicing the unselected images with the selected images based on the comparison result.
In these alternative implementations, the execution subject may select images from the determined images, the number of images being equal to the display bit number threshold. Thereafter, the execution subject may determine a difference between the determined number of images and the display number of bits threshold, and compare the difference to the display number of bits threshold. Then, the execution subject may perform the mosaic of the unselected image and the selected image based on the comparison result of the comparison.
In practice, the execution subject may perform the jigsaw based on the comparison result in various ways. For example, when the comparison result is that the difference is large, the execution subject may perform the mosaic with each selected image, from among the unselected images, the number of images being the threshold of the number of display bits. For example, if the user's selection operation indicates 20 images in total, the threshold of the number of display bits is 9, and the execution subject may select 9 images. Then, the execution subject may perform the jigsaw with each of the first 9 images out of the other 11 images, respectively, to obtain 9 composite images. And when the message is displayed in the social space, hiding and displaying the rest 2 images in the other 11 images.
These implementations may compare the difference between the determined number of images and the display number of bits threshold and use the comparison of the difference to the display number of bits threshold to perform the appropriate tiling scheme on each image.
In some optional application scenarios of these implementations, stitching the unselected image with the selected image based on the comparison result in these implementations may include: if the comparison result is the difference value and is smaller than or equal to the threshold value of the number of the display digits, each image in the unselected images is respectively spliced with different selected images, and the composite images with the number equal to the number of the unselected images are obtained.
In these optional application scenarios, if the comparison result is that the difference between the number of the determined images and the threshold of the number of display bits is smaller than or equal to the threshold of the number of display bits, the execution subject may perform one-to-one jigsaw on each of the unselected images and each of the selected images, so as to obtain a plurality of composite images. The number of composite images obtained here, consistent with the number of selected images participating in the puzzle, is equal to the number of unselected images. The order of the images participating in the jigsaw may be according to the preset sorting rule or may be random. Specifically, the preset ranking rule may be a selection order of the user's selection operation on the images, that is, the image indicated by the selection operation performed first by the user is the image ranked first in the preset ranking rule.
For example, if the number of images selected by the user through the selection operation is 16, the threshold of the number of display bits is 9, and the difference between the two is 7. The comparison of the difference 7 with the above-mentioned display quantity threshold 9 is smaller. The execution subject may select 9 images from the 16 images and perform one-to-one mosaicing with each of the unselected 7 images with 7 images of the 9 selected images, respectively, thereby obtaining 7 composite images. Specifically, the execution subject may select the images from the selected and unselected images according to the order of the preset sorting rule, respectively, to perform the jigsaw. That is, the execution subject may tile a first one of the non-selected 7 images with a first one of the selected 9 images, and tile a 2 nd one of the non-selected 7 images with a 2 nd one of the selected 9 images. And so on until the execution subject performs the mosaic of the 7 th image of the unselected 7 images and the 7 th image of the selected 9 images.
Under the condition that the number of images selected by a user is relatively small, the application scenes can carry out one-to-one jigsaw on the unselected images and the selected images, so that the problem that the images participating in the jigsaw in a certain composite image are too many is avoided, and all the images can be well displayed.
In some optional application scenarios of these implementations, stitching the unselected image with the selected image based on the comparison result in these implementations may include: if the comparison result is a difference value and is larger than the display bit number threshold, respectively splicing images with the number equal to the display bit number threshold in the unselected images with each selected image to obtain composite images with the number equal to the display bit number threshold; and in response to the fact that the unselected images which do not participate in the jigsaw currently exist, the images which do not participate in the jigsaw in the unselected images are subjected to the jigsaw with the selected images, wherein the difference value of the number of times that each selected image participates in the jigsaw is not more than 1.
In these optional application scenarios, if the comparison result is that the difference is larger, the execution subject may first pick out a part of the images from the unselected images, and perform one-to-one jigsaw with each selected image. The number of such partial images is equal to the above-described threshold number of display bits. The execution body may then execute the following subsequent steps: and performing mosaic on the images which do not participate in the mosaic from the unselected images and the selected images. This subsequent step may be performed multiple times. The order of the images participating in the jigsaw may be according to the preset sorting rule or may be random. The opportunities for each selected image to participate in the tile are relatively equal, so that the executing entity will proceed to the next tile after all selected images have participated in the tile.
For example, if the number of images selected by the user through the selection operation is 20, the threshold of the number of display bits is 9, and then the difference between the two is 11. The comparison of the difference 11 with the display quantity threshold 9 is greater than. The execution body may select 9 images and perform one-to-one mosaicing on each of 9 images (e.g., 1 st to 9 th images out of 11 images) among the non-selected 11 images with each of the 9 selected images, respectively, thereby obtaining 9 composite images. Specifically, the execution subject may select the images from the selected and unselected images according to the order of the preset sorting rule, respectively, to perform the jigsaw. That is, the execution subject may perform the mosaic of a first one of 9 images out of the 11 images that are not selected with a first one of the 9 images that are selected, and perform the mosaic of a second one of the 9 images that are not selected with a second one of the 9 images that are selected. And so on until the execution subject performs the mosaic of the 9 th image of the non-selected 9 images with the 9 th image of the selected 9 images. Then, the execution body may perform the jigsaw with 2 images out of the remaining 2 images out of the 11 images, and the selected 2 images may also perform the jigsaw according to the preset sorting rule, for example.
Under the condition that the number of images selected by a user is relatively large, the application scenes can carry out multi-round one-to-one jigsaw on the unselected images and the selected images, so that excessive images participating in the jigsaw in a certain composite image are avoided, and all the images can be well displayed.
In some optional implementations of the present embodiment, the mosaicing at least two of the determined images in step 202 into a composite image may include: determining at least two images from the determined images based on the determined patterns of the images, wherein the patterns comprise styles and/or color systems; and (3) the at least two image puzzles are combined images, wherein the similarity of patterns between images of puzzles participating in the same combined image is greater than or equal to the similarity of patterns between images of puzzles participating in different combined images.
In these alternative implementations, the execution subject may determine the at least two images from the determined images based on the determined pattern of images. Here, the style of the image may include at least one of a style and a color system. Specifically, the executing body may select images with similar styles and/or color systems from the determined images, and perform a mosaic on the images.
In practice, the execution subject may determine the at least two images based on the determined pattern of images in various manners. For example, the execution subject may classify the determined images by style and jig-saw puzzle the images of the same or similar style into a composite image. Other images may be left unpopulated or randomly tiled. In addition, the executing body may perform the stitching according to a rule that the probability that the image stitching with higher style similarity is the same composite image is higher, so that the most similar image stitching is the same composite image.
The realization modes can carry out the jigsaw according to the styles and color systems, so that the image styles obtained by the jigsaw are more unified and harmonious.
In some optional implementations of this embodiment, the method described above is applied to a terminal, and the method further includes: displaying the composite image and each image other than the at least two images; in response to detecting a first change operation to the displayed first target image, changing a position of the first target image, wherein the target image is one image of the composite image or one image of each image other than the at least two images; and changing an image display bit corresponding to a second target image in response to detecting a second change operation on the second target image, wherein the second target image is a composite image corresponding to one image display bit or one image of each of at least two images.
In these alternative implementations, the execution subject may display each composite image obtained by the jigsaw and each image other than the at least two images, so that the user changes the positional relationship between the images.
In practice, the execution subject may change the positional relationship between any two images in the same image display position (participating in the tile), may change the positional relationship between any two images in different image display positions (participating in the tile), may change the position between any two images not participating in the tile (images other than at least two images), or may change the positional relationship between any one image in the composite image (participating in the tile) and any one image not participating in the tile, when the first change operation is detected. In addition, the execution subject may shift any one of the images (participating in the puzzle) or the image not participating in the puzzle in the composite image to the upper, lower, left or right of a certain image, such as between a certain two images, or the like. Specifically, the first change operation may be a drag operation for the first target image, or a click operation for two first target images whose positions are to be changed, or the like.
In practice, the execution subject may change the image display bit of the composite image as a whole or of an image that does not participate in the puzzle, in the case where the second changing operation is detected. For example, the execution subject may move the whole composite image or an image that does not participate in the jigsaw to the upper, lower, left or right of a certain image display position, for example, to between two certain image display positions. Specifically, the second changing operation may be a drag operation for the second target image, or a click operation for the two second target images whose positions are to be changed, or the like. For example, the user may drag or click the second target image with two fingers, or may perform the second change operation with long press.
The implementation modes can enable the user to flexibly adjust the position of the image under the condition that the execution main body is a terminal, and enable the image released into the social space by the user to be more in line with the wish of the user.
In some optional application scenarios of these implementations, changing the location of the first target image in response to detecting the first change operation to the displayed first target image may include: in response to detecting that the first target image is one of the composite images and the first altering operation indicates a change in the position of the first target image within the image display bit, changing the position of the target image to a first target position within the image display bit indicated by the first altering operation; in response to detecting an operation of the first changing operation indicating a change in the position of the first target image between the image display bits, the position of the first target image is changed to a second target position in the image display bits to which the operation indicates that it is to be moved.
In these application scenarios, the first change operation performed by the user may be to change the position of the first target image to an arbitrary position for displaying an image within the image display bits, or to change the position of the first target image to an arbitrary position for displaying an image within the other image display bits.
The application scenes can enable the user to flexibly change the position of the first target image in the image display positions or among the image display positions.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the image display method according to the present embodiment. In the application scenario of fig. 3, the execution subject 301 may determine 20 images 302 indicated by a selection operation performed by a user in the social application, the images 302 being for posting to the social space. The execution body 301 tiles at least two of the determined images as composite images 303 in response to detecting that the determined number 20 of images 302 exceeds a display bit number threshold of one presentation message in social space, the display bit number threshold being 9, wherein the number of composite images is at least one. The execution body 301 associates 304 the composite image and each of the at least two images with different image display bits of one presentation message.
With further reference to fig. 4, a flow 400 of yet another embodiment of an image display method is shown. The flow 400 of the image display method includes the steps of:
step 401, determining an image indicated by a selection operation performed by a user in a social application, wherein the image is used for publishing to a social space.
In the present embodiment, the execution subject of the image display method (e.g., the server or the terminal device shown in fig. 1) may determine an image indicated by a selection operation performed by the user. The selection operation here indicates that the user's selection of one or some of the images of the terminal is an operation performed in the social application. The image indicated by the selection operation may be posted and displayed in the social space in the form of a presentation message.
Step 402, obtaining the maximum value of the number of images participating in the jigsaw in a composite image.
In this embodiment, the execution subject may acquire the maximum value of the number of images participating in the mosaic of one composite image. This maximum value may be preset. For example, the composite image can be obtained by stitching up to 4 images, and then the maximum value of the composite image is 4. Typically, this maximum value is equal for each composite image.
Step 403, determining a difference between the determined number of images and a display bit number threshold.
In this embodiment, the execution subject may determine the number of the determined images, and determine a difference between the number and the threshold of the number of display bits. Thus, the execution subject can determine the image participating in the mosaic among the determined images based on the difference value, and perform the mosaic.
Step 404, selecting the images with the number equal to the threshold of the number of the display bits from the determined images.
In this embodiment, the execution subject may select some of the determined images, where the number of selected images is equal to the threshold number of display bits. In practice, the execution subject described above may select an image in various ways. For example, the execution subject may select the images corresponding to the number according to the selection order of the images by the user's selection operation. In addition, the execution subject can also perform random selection.
And step 405, comparing the difference value with the maximum value, and performing mosaic on the unselected image and the selected image based on the comparison result to obtain the composite image.
In this embodiment, the execution body may compare the difference value with the maximum value, and perform a mosaic between at least one image of the unselected images and the selected at least one image, so as to obtain a composite image. For example, the execution subject may perform the mosaic of all of the non-selected images with a part of the selected images.
In some optional implementations of this embodiment, based on the comparison result in step 405, stitching the unselected image with the selected image to obtain the composite image may include: if the comparison result is that the difference value is smaller than the maximum value, the non-selected images and one image picture in the selected images are spliced into a composite image, wherein the sequence of one image is the first, or the sequence number of the sequence is a preset sequence number.
In these alternative implementations, the execution body may tile each of the unselected images with one of the selected images to form a composite image if the difference is less than the maximum value. One of the images selected here may be the image ranked first, or may be the image ranked at a preset number of digits, for example, in the case where the threshold of the number of display digits is 9, the preset number may be the intermediate number, that is, 5 th. The ordering rule herein may be the preset ordering rule described above.
For example, if the maximum value of the number of images participating in the mosaic in one composite image is 4, the difference between the determined number of images and the threshold value of the number of display bits is 3, that is, the number of unselected images is 3, the difference is smaller than the maximum value. The execution subject may then jig-saw the 3 images with the first image selected by the user, and the resulting composite image contains 4 images.
These implementations can tile images beyond the number of display bits with images at very significant locations, thereby enabling images beyond a preset number to be fully displayed in a display message.
In some optional implementations of this embodiment, based on the comparison result in step 405, stitching the unselected image with the selected image to obtain the composite image may include: if the comparison result is that the difference value is larger than or equal to the maximum value, the designated number of images in the unselected images and the image jigsaw ordered at the first in the selected images are formed into a composite image, wherein the designated number is 1 less than the threshold value of the number of display bits; and matching the images which are not selected and are out of the specified number of images with at least one image which is selected and is ranked in advance in the images which are out of the first images, wherein the at least one image is the mosaic.
In these alternative implementations, the execution subject may tile a specified number of the non-selected images with one of the selected images to obtain a composite image if the difference is greater than or equal to the maximum value. The execution subject may perform the mosaic of the images other than the specified number of images among the unselected images with other images among the selected images to obtain other composite images. The other images are images except the first image, and the images are at least one image selected from the first to the last images according to the preset ordering rule.
For example, the user selects 16 images altogether, the execution subject may first select 9 images, then select 3 images from the other 7 images, and perform the mosaic with the first image of the 9 images to obtain the first composite image. There are 4 images at present, and so on, the execution subject may select 3 images of the 4 images and a second image of the 9 images to perform the mosaic, so as to obtain a second composite image. Finally, the execution subject may perform the mosaic of the remaining 1 image and the third image to obtain a third composite image.
The implementation modes can carry out jigsaw on a plurality of images exceeding the number of display bits and the images at each obvious position, so that the images exceeding the preset number can be fully displayed in the display message.
And step 406, respectively corresponding the composite image and each image except at least two images to different image display bits of one display message.
In this embodiment, the executing body may respectively correspond each of the composite image and each of the images other than the at least two images participating in the jigsaw with different image display bits in one display message, that is, establish a correspondence between each composite image and each determined image not participating in the jigsaw, and each of the images respectively with different image display bits. Thus, each composite image and each image which does not participate in the jigsaw exist corresponding image display bits, and the image display bits corresponding to different images in the images are different.
The embodiment can reasonably arrange the display positions of the images according to the display capability of the image display bits by comparing the difference value with the threshold value of the display bit number, so as to properly and accurately determine the image display bits corresponding to the images.
With further reference to fig. 5, as an implementation of the method shown in the foregoing figures, the present application provides an embodiment of an image display device, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the embodiment of the device may further include the same or corresponding features or effects as the embodiment of the method shown in fig. 2, except for the features described below. The device can be applied to various electronic equipment.
As shown in fig. 5, the image display apparatus 500 of the present embodiment includes: a determination unit 501, a tile unit 502 and a display bit determination unit 503. Wherein the determining unit 501 is configured to determine an image indicated by a selection operation performed by a user in the social application, the image being for posting to the social space; a mosaic unit 502 configured to, in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in the social space, mosaic at least two of the determined images into a composite image, wherein the number of composite images is at least one; the display bit determining unit 503 is configured to correspond the composite image and each of the images other than the at least two images to different image display bits of one presentation message, respectively.
In some embodiments, the determination unit 501 of the image display apparatus 500 may determine an image indicated by a selection operation performed by the user. The selection operation here indicates that the user selects one or some of the images of the terminal, which is an operation performed by the user in the social application. The image indicated by the selection operation may be posted and displayed in the social space in the form of a presentation message.
In some embodiments, tile unit 502 may tile some or all of the determined images. The composite image is an image obtained by jigsaw. The number of images participating in the mosaic of each composite image may be two or more. In one presentation message, there may be at least one composite image.
In some embodiments, the display bit determining unit 503 may respectively correspond the composite image, and each image other than at least two images participating in the tile, to different image display bits in one presentation message, that is, establish a correspondence between each composite image and each determined image not participating in the tile, and each different image display bit. Thus, each composite image and each image which does not participate in the jigsaw exist corresponding image display bits, and the image display bits corresponding to the images are different.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; a storage 608; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing means 601. It should be noted that the computer readable medium of the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In an embodiment of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. Whereas in embodiments of the present disclosure, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes a determination unit, a tile unit, and a display bit determination unit. The names of these units do not constitute a limitation on the unit itself in some cases, and the determination unit may also be described as "a unit that determines an image indicated by a selection operation performed by a user in a social application", for example.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: determining an image indicated by a selection operation executed by a user in a social application, wherein the image is used for being released to a social space; in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in social space, mosaicing at least two of the determined images into a composite image, wherein the number of composite images is at least one; and respectively corresponding the composite image and each image except at least two images to different image display bits of one display message.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (12)

1. An image display method, the method comprising:
determining an image indicated by a selection operation executed by a user in a social application, wherein the image is used for being released to a social space;
in response to detecting that the determined number of images exceeds a display bit number threshold of one presentation message in the social space, mosaicing at least two of the determined images into a composite image, wherein the number of composite images is at least one;
the composite image and each image except the at least two images are respectively corresponding to different image display bits of one display message;
the method further comprises the steps of:
obtaining the maximum value of the number of images participating in the jigsaw in a composite image; determining a difference between the determined number of images and the display bit number threshold; selecting the images with the number equal to the threshold of the number of display bits from the determined images; and
the stitching at least two images of the determined images into a composite image includes:
comparing the difference value with the maximum value, and performing jigsaw on the unselected image and the selected image based on the comparison result;
the stitching the unselected image with the selected image based on the comparison result comprises:
If the comparison result is that the difference value is greater than or equal to the maximum value, a designated number of images in the unselected images and the image jigsaw ordered first in the selected images are combined into a composite image, wherein the designated number is 1 less than the threshold value of the number of display bits; and matching the images which are not selected and are out of the specified number of images with at least one image which is not selected and is ranked in front of the images which are out of the first images in the selected images, wherein the at least one image is ranked in front of the first images in the selected images.
2. The method of claim 1, wherein the method further comprises:
obtaining the maximum value of the number of images participating in the jigsaw in a composite image;
determining a difference between the determined number of images and the display bit number threshold;
selecting the images with the number equal to the threshold of the number of display bits from the determined images; and
the stitching at least two images of the determined images into a composite image includes:
comparing the difference value with the maximum value, and performing mosaic on the unselected image and the selected image based on the comparison result.
3. The method of claim 2, wherein the stitching the unselected image with the selected image based on the comparison result comprises:
And if the comparison result is that the difference value is smaller than the maximum value, splicing each unselected image with one image in the selected images to form a composite image, wherein the sequence of the one image is the first or the sequence number is a preset sequence number.
4. The method of claim 1, wherein the stitching at least two of the determined images into a composite image comprises:
selecting, from among the determined images, an image having a number equal to a display bit number threshold;
and comparing the difference value between the determined number of images and the display bit number threshold with the display bit number threshold, and mosaicing unselected images with the selected images based on the comparison result.
5. The method of claim 4, wherein the stitching the unselected image with the selected image based on the comparison result comprises:
and if the comparison result is that the difference value is smaller than or equal to the threshold value of the number of display bits, respectively splicing each image in the unselected images with different selected images to obtain composite images with the number equal to the number of the unselected images.
6. The method of claim 4, wherein the stitching the unselected image with the selected image based on the comparison result comprises:
if the comparison result is that the difference value is larger than the display bit number threshold, performing jigsaw on images with the number equal to the display bit number threshold in the unselected images and each selected image respectively to obtain composite images with the number equal to the display bit number threshold;
and in response to the fact that the unselected images which do not participate in the jigsaw currently exist, the images which do not participate in the jigsaw in the unselected images are subjected to the jigsaw with the selected images, wherein the difference value of the number of times that each selected image participates in the jigsaw is not more than 1.
7. The method of claim 1, wherein the stitching at least two of the determined images into a composite image comprises:
determining the at least two images from the determined images based on the determined pattern of images, wherein the pattern comprises a style and/or a color system;
and the at least two image puzzles are composite images, wherein the similarity of patterns among the images of the puzzles participating in the same composite image is greater than or equal to the similarity of patterns among the images of the puzzles participating in different composite images.
8. The method of claim 1, wherein the method is applied to a terminal, the method further comprising:
displaying the composite image and each image other than the at least two images;
in response to detecting a first change operation to a displayed first target image, changing a position of the first target image, wherein the target image is one image of the composite image or one image of each image other than the at least two images;
and changing an image display bit corresponding to a second target image in response to detecting a second change operation on the second target image, wherein the second target image is a composite image corresponding to one image display bit or one image of the images except the at least two images.
9. The method of claim 8, wherein the changing the location of the first target image in response to detecting the first change operation to the displayed first target image comprises:
in response to detecting that the first target image is one of the composite images and the first change operation indicates a change in the position of the first target image within an image display bit, changing the position of the target image to a first target position within the image display bit indicated by the first change operation;
In response to detecting that the first changing operation indicates an operation of changing the position of the first target image between image display bits, changing the position of the first target image to a second target position in the image display bits to which the operation indicates that the first target image is to be moved.
10. The method of claim 1, wherein the method further comprises:
and in response to receiving a confirmation operation from the user, publishing the composite image and each image except the at least two images to a presentation message of the social space.
11. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-10.
12. A computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-10.
CN201911390134.8A 2019-12-30 2019-12-30 Image display method and device Active CN111161149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911390134.8A CN111161149B (en) 2019-12-30 2019-12-30 Image display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911390134.8A CN111161149B (en) 2019-12-30 2019-12-30 Image display method and device

Publications (2)

Publication Number Publication Date
CN111161149A CN111161149A (en) 2020-05-15
CN111161149B true CN111161149B (en) 2023-11-17

Family

ID=70559206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911390134.8A Active CN111161149B (en) 2019-12-30 2019-12-30 Image display method and device

Country Status (1)

Country Link
CN (1) CN111161149B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015192713A1 (en) * 2014-06-19 2015-12-23 努比亚技术有限公司 Image processing method and device, mobile terminal, and computer storage medium
CN105760408A (en) * 2014-12-19 2016-07-13 华为终端(东莞)有限公司 Picture sharing method and apparatus and terminal device
CN107330858A (en) * 2017-06-30 2017-11-07 北京金山安全软件有限公司 Picture processing method and device, electronic equipment and storage medium
CN107920015A (en) * 2017-11-17 2018-04-17 北京小米移动软件有限公司 Issue the method for picture and the device of issue picture
CN108153461A (en) * 2017-12-25 2018-06-12 维沃移动通信有限公司 A kind of sending method of image data, device and mobile terminal
CN108255923A (en) * 2017-11-06 2018-07-06 优视科技有限公司 Image presentation method, equipment and electronic equipment
CN110490808A (en) * 2019-08-27 2019-11-22 腾讯科技(深圳)有限公司 Picture joining method, device, terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015192713A1 (en) * 2014-06-19 2015-12-23 努比亚技术有限公司 Image processing method and device, mobile terminal, and computer storage medium
CN105760408A (en) * 2014-12-19 2016-07-13 华为终端(东莞)有限公司 Picture sharing method and apparatus and terminal device
CN107330858A (en) * 2017-06-30 2017-11-07 北京金山安全软件有限公司 Picture processing method and device, electronic equipment and storage medium
CN108255923A (en) * 2017-11-06 2018-07-06 优视科技有限公司 Image presentation method, equipment and electronic equipment
CN107920015A (en) * 2017-11-17 2018-04-17 北京小米移动软件有限公司 Issue the method for picture and the device of issue picture
CN108153461A (en) * 2017-12-25 2018-06-12 维沃移动通信有限公司 A kind of sending method of image data, device and mobile terminal
CN110490808A (en) * 2019-08-27 2019-11-22 腾讯科技(深圳)有限公司 Picture joining method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN111161149A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
KR102083696B1 (en) Image identification and organisation according to a layout without user intervention
WO2020001234A1 (en) Folder icon display method, system, readable storage medium and terminal
US20170083172A1 (en) Controlling a Device
US20200278776A1 (en) Method and apparatus for visualization of public welfare activities
WO2015130270A1 (en) Photo and document integration
CN110634220B (en) Information processing method and device
US20210019106A1 (en) Desktop Sharing Method and Mobile Terminal
CN105005599A (en) Photograph sharing method and mobile terminal
US20160291836A1 (en) Smart terminal and associated method for displaying application icons
CN110781408A (en) Information display method and device
CN110069919B (en) Information acquisition method and device
CN110007936B (en) Data processing method and device
CN112035030B (en) Information display method and device and electronic equipment
CN113794795B (en) Information sharing method and device, electronic equipment and readable storage medium
US11921983B2 (en) Method and apparatus for visualization of public welfare activities
CN110677267A (en) Information processing method and device
US20220350681A1 (en) Method, system, and non-transitory computer-readable record medium for managing event messages and system for presenting conversation thread
CN111596995A (en) Display method and device and electronic equipment
EP2868095A1 (en) Collaboration environments and views
US20170188214A1 (en) Method and electronic device for sharing multimedia information
CN114154000A (en) Multimedia resource publishing method and device
CN111597009A (en) Application program display method and device and terminal equipment
CN110058857B (en) Boarded application generation method and apparatus
CN111161149B (en) Image display method and device
US11258838B2 (en) Method, system, and non-transitory computer readable record medium for processing chatroom based on usage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant