CN113282846A - Image display method and device, electronic equipment and computer readable storage medium - Google Patents

Image display method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN113282846A
CN113282846A CN202110546408.9A CN202110546408A CN113282846A CN 113282846 A CN113282846 A CN 113282846A CN 202110546408 A CN202110546408 A CN 202110546408A CN 113282846 A CN113282846 A CN 113282846A
Authority
CN
China
Prior art keywords
image
list
target
determining
identification information
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.)
Granted
Application number
CN202110546408.9A
Other languages
Chinese (zh)
Other versions
CN113282846B (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.)
Wuhan Yuexuebang Network Technology Co ltd
Original Assignee
Wuhan Yuexuebang 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 Wuhan Yuexuebang Network Technology Co ltd filed Critical Wuhan Yuexuebang Network Technology Co ltd
Priority to CN202110546408.9A priority Critical patent/CN113282846B/en
Publication of CN113282846A publication Critical patent/CN113282846A/en
Application granted granted Critical
Publication of CN113282846B publication Critical patent/CN113282846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides an image display method, an apparatus, an electronic device and a computer-readable storage medium, wherein the method comprises: determining a first image displayed on a display interface of a target client at the current moment, and determining a target image list to which the first image belongs; determining at least one second image in the target image list according to the image identification information of the first image; and responding to the image switching instruction, searching the image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface. According to the embodiment of the disclosure, the resources in the target image list can be selectively loaded according to the currently previewed first image, so that the flow resources are saved, the memory consumption of the terminal device to which the target client belongs can be reduced, and the image previewing rate is improved.

Description

Image display method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of information technologies, and in particular, to an image display method and apparatus, an electronic device, and a computer-readable storage medium.
Background
At present, after the internet gradually blends into daily life, previewing pictures or downloading images through the internet becomes a part of daily life of many people, for example, a user can browse and download corresponding pictures in a certain webpage. When a user browses pictures in the internet through terminal equipment, an existing picture preview implementation scheme is paging preview, the paging preview scheme mainly carries out paging preview by paging loading list contents, and after existing list picture resources are previewed, a network request needs to be sent again to carry out acquisition and preview of subsequent resources. For example, when a user loads any one picture in the list, all images in the list need to be loaded, and at this time, the memory of the terminal device will be consumed, the operation speed of the terminal device will be reduced, and the browsing of the network picture will be not facilitated.
Disclosure of Invention
The embodiment of the disclosure at least provides an image display method, an image display device, electronic equipment and a computer-readable storage medium.
In a first aspect, an embodiment of the present disclosure provides an image display method, including: determining a first image displayed on a display interface of a target client at the current moment, and determining a target image list to which the first image belongs, wherein the target image list comprises image information of images uploaded by a registered user of the target client in the target client; determining at least one second image in the target image list according to the image identification information of the first image; wherein the at least one second image is an image uploaded to the target client before and/or after the first image; and responding to an image switching instruction, searching image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface.
With reference to the first aspect, embodiments of the present disclosure provide a first possible implementation manner of the first aspect, where: acquiring an image display mode of the image data; and displaying the image data on the display interface according to the image display mode.
With reference to the first possible implementation manner of the first aspect, this disclosed embodiment provides a second possible implementation manner of the first aspect, where: after finding the image data of the requested switching image, determining whether the sub-list to which the first image belongs and the sub-list to which the requested switching image belongs are the same; and under the condition that the images are different, displaying target prompt information on the display interface, wherein the target prompt information is used for prompting the user of the category information of the images contained in the sub-list to which the image requested to be switched belongs.
With reference to the second possible implementation manner of the first aspect, this disclosed embodiment provides a third possible implementation manner of the first aspect, where: acquiring an uploading time stamp of each image in the target image list, wherein the uploading time stamp is used for representing the uploading time of each image; determining the uploading time of the first image, and determining the uploading time adjacent to the uploading time of the first image according to the uploading timestamp; and determining the image uploaded at the adjacent uploading time in the target image list as the at least one second image.
With reference to the third possible implementation manner of the first aspect, this disclosed embodiment provides a fourth possible implementation manner of the first aspect, where: searching whether the image identification information of the requested switching image exists in the image identification information of the at least one second image; and under the condition that the image identification information of the requested switching image is found, determining the image data of the second image which has the same image identification information with the requested switching image in the at least one second image as the image data of the requested switching image.
With reference to the fourth possible implementation manner of the first aspect, this disclosure provides a fifth possible implementation manner of the first aspect, where: determining list classification information of a sub-list to which the requested switching image belongs, wherein the list classification information is used for representing the category information of the image contained in the sub-list; and displaying the list classification information on the display interface as the target prompt information.
With reference to the fifth possible implementation manner of the first aspect, this disclosed embodiment provides a sixth possible implementation manner of the first aspect, where: acquiring previewed image data in the target image list under the condition that the image identification information of the requested switching image is not found; storing the previewed image data into an intermediate cache file of the target client, and deleting the expired previewed image data in the intermediate cache file.
In a second aspect, an embodiment of the present disclosure provides an image display apparatus, including: a first determination module: the method comprises the steps of determining a first image displayed on a display interface of a target client at the current moment, wherein the first image is an image in a target image list, and the target image list comprises information of images uploaded by all users in the target client; a second determination module: the image processing device is used for determining at least one second image in the target image list according to the image identification information of the first image; wherein the at least one second image is an image uploaded by a user in the target client before the first image and/or after the first image; a searching module: and the image switching device is used for responding to an image switching instruction, searching image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the image presentation method of any one of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the image presentation method in any one of the first aspect.
In the embodiment of the present disclosure, when a first image is previewed in a target client, at least one second image uploaded adjacent to the first image may be determined according to image identification information of the first image, and then a mode of image data of an image requested to be switched by a user is determined according to the image identification information of the at least one second image, so that selective loading of resources in a target image list according to the currently previewed first image may be implemented, and compared with a mode in the prior art that all image resources in the image list need to be loaded when any one image is previewed, traffic resources may be saved, memory consumption of a terminal device to which the target client belongs may be reduced, and a rate of image previewing may be increased.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 shows a flowchart of an image displaying method provided by an embodiment of the present disclosure;
fig. 2 illustrates that in the image displaying method provided by the embodiment of the present disclosure, a first image is displayed and displayed on a display interface of a terminal device in a preset size;
fig. 3 shows a preset browsing mode diagram for displaying a loading mark on a display interface in an image display method provided by the embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an image display apparatus provided by an embodiment of the present disclosure;
fig. 5 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Research shows that when a user browses pictures in the internet through terminal equipment, the conventional picture preview implementation scheme is paging preview, the paging preview scheme mainly loads list contents through paging so as to perform paging preview, and after the existing list picture resources are previewed, a network request needs to be initiated again to acquire and preview subsequent resources. For example, when a user loads any one picture in the list, all images in the list need to be loaded, and at this time, the memory of the terminal device will be consumed, the operation speed of the terminal device will be reduced, and the browsing of the network picture will be not facilitated.
Based on the research, the image display method is provided by the disclosure, and according to the technical scheme provided by the embodiment of the disclosure, the image resource of the second image is obtained by obtaining the image identification information of the second image of the first image and is displayed on the display interface of the terminal equipment in the display mode, so that the situation that the display mode needs to be quitted for reloading when the list image resource is not completely loaded or the current list is previewed is avoided, and in addition, compared with the situation that all the image resources in the list are loaded, certain throttling effect can be achieved by loading according to the preview requirement of a user.
To facilitate understanding of the present embodiment, first, an image displaying method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the image displaying method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or a server or other processing device. In some possible implementations, the image presentation method may be implemented by a processor calling computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of an image displaying method provided in the embodiment of the present disclosure is shown, where the method includes steps S101 to S105, where:
s101: determining a first image displayed on a display interface of a target client at the current moment, and determining a target image list to which the first image belongs, wherein the target image list comprises image information of images uploaded in the target client by a registered user of the target client.
In the embodiment of the disclosure, the target client is pre-installed in the terminal device, and the target client may be social software, online education software, news software, or the like. The user can click a target client side in the terminal device, select an image in the target client side, and after selection, the selected image can be displayed on a display interface of the target client side, wherein the image selected by the user is the first image.
It should be noted that, in the embodiment of the present disclosure, the target image list includes information of images uploaded by each user of the target client (i.e., all users logged into the target registration account of the target client) through the target client, where the information may be upload time information of the images, such as 20 minutes and 45 seconds at 3 pm on 5/11/2021/20 pm, 2021-04-25-17-30-12, and the like; attribute information of the uploaded image, such as a geographical location, an image description, an image size, a photographic subject, and the like; the user is a user who logs into a target registered account on a target client. For example, if the target client is online education software, the user is a user who is registered in the online education software in advance or a user who logs in using a registered account. For example, the online education software includes an education resource sharing module, and the user can share education thoughts, education materials, learning progress and the like in the module by sharing pictures. Other users can preview the educational materials, educational thoughts, learning progress, etc. uploaded by the user in the module.
In the disclosed embodiment, users using the same registered account may default to the same user, and for the online education software, a target image list may be correspondingly set for each user, where the target image list includes information of images uploaded by the user. And the same target image list can be correspondingly set for all the users, and the target image list comprises the information of the images uploaded by each user. The present disclosure does not specifically limit this with respect to the manner in which the target image list is set.
S103: determining at least one second image in the target image list according to the image identification information of the first image; wherein the at least one second image is an image uploaded to the target client before and/or after the first image.
Specifically, the second image generally refers to an image whose display position on the client interface is adjacent to the first image, or an image whose storage position is adjacent to the first image, which is not described in detail herein.
Alternatively, the second image may be an image whose time interval between the uploading time and the uploading time of the first image is smaller than a set threshold, and if the uploading time of the first image is 20 minutes and 45 seconds at 3 pm on day 17 pm of 2021 year 5 month 17 and the set threshold is 10 seconds, the second image may be an image uploaded within 3 minutes and 35 seconds at 3 pm on day 17 pm of 2021 year 5 month 17 to 20 minutes and 55 seconds at 3 pm on day 5 month 17 pm of 2021 year 5 month. Of course, the setting threshold may be flexibly set according to actual conditions, and may be set to a smaller value in a time period when the client is frequently used, and may be set to a larger value in a time period when the client is not frequently used, which is not described herein again.
In the embodiment of the present disclosure, after the first image is determined, at least one second image may be determined in the target image list according to image identification information of the first image, where the image identification information may be ID information of the image, and besides, other identification information capable of uniquely representing the image, such as image size information, image uploading time information, image size information, image description information, and the like.
In an embodiment of the present disclosure, the at least one second image is an image uploaded to the target client before and/or after the first image. That is, at least one second image may be understood as an image whose uploading time is adjacent to the first image (for example, the uploading time interval is smaller than a set threshold value, etc.), where the second image is an adjacent image of the first image in the target image list of the first image, that is, the second image is adjacent to the first image in the arrangement order in the target image list.
For example, the second image may be one or more images uploaded by the user prior to uploading the first image, and/or one or more images uploaded by the user after uploading the first image.
Here, the user who uploads the first image and the user who uploads the second image may be the same or different, and this disclosure does not specifically limit this.
That is, when the target image list is a target image list corresponding to a certain user, the second image may be an image that is uploaded by the user and is adjacent to the first image; when the target image list is a common target image list for all users, the second image may generally be an image uploaded by the user or other users that is adjacent to the first image.
For example, assuming that the target client is an instant messaging client, user a, user B, and user C may upload corresponding images in the instant messaging client. The user a, the user B, and the user C have access rights with each other, and the access rights can be understood as being capable of browsing images uploaded by each other.
If the user a browses the first image on the instant messaging client, at this time, a target image list to which the first image belongs may be determined, where the target image list includes images uploaded by the user a, the user B, and the user C. At this time, at least one second image may be determined in the target image list, and at this time, the determined at least one second image may be an image uploaded by any one or more of the user a, the user B, and the user C.
The number of the second images is not particularly limited in the present disclosure, and may be dynamically set according to the actual needs of the user.
It should be understood that the target image list may store information of images uploaded by each registered user within a preset time period, for example, the preset time period may be one week, one month, or even permanently.
S105: and responding to an image switching instruction, searching image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface.
In the embodiment of the present disclosure, when the user wants to switch the first image, the image switching instruction may be issued by performing a leftward sliding, a rightward sliding, a leftward shaking, a rightward shaking, a double-click on the screen, a click on a switching key, or the like on the display interface. After detecting the image switching instruction, the target client may determine whether the image requested to be switched by the user is the previous image of the first image or the next image of the first image according to the image switching instruction. At this time, image data of the image requested to be switched by the user may be determined in the at least one second image and displayed on the display interface.
It should be noted that the specific implementation of the switching instruction can be customized according to the use requirement of the user. For example, sliding a finger on the display interface, pressing a designated key, shaking the device, or tapping the display interface a predetermined number of times, etc. Specifically, when the user wants to view the next image of the first image, the user can slide backwards on the display interface; or on the right side of the screen, tapping the screen through the finger joints for a predetermined number of times.
In the embodiment of the present disclosure, when a first image is previewed in a target client, at least one second image uploaded adjacent to the first image may be determined according to image identification information of the first image, and then a mode of switching image data requested by a user is determined according to the image identification information of the at least one second image.
In the embodiment of the present disclosure, after the at least one second image is determined, a loading operation may be further performed on the at least one second image. After the at least one second image is loaded, the image data of the image requested to be switched in the image switching instruction may be searched for in the loaded at least one second image.
Here, after at least one second image is determined, all the second images may be selected to be loaded, and a part of the second images may also be selected to be loaded, for example, the number of the second images to be preloaded may be set according to the preview speed of the user for the images in the target image list.
For example, when the preview speed of the user is fast, all the second images can be loaded; when the preview speed of the user is slow, part of the second image may be loaded.
In the foregoing embodiment, after the at least one second image is determined, the at least one second image is loaded, so that resources in the target image list can be selectively loaded according to the currently previewed image, thereby reducing memory consumption of the terminal device to which the target client belongs and improving the image previewing rate under the condition of saving traffic resources.
In the embodiment of the present disclosure, when the image data is displayed on the display interface, the following process is specifically included:
(1) and acquiring an image display mode of the image data.
(2) And displaying the image data on a display interface of the terminal equipment according to the image display mode.
In the embodiment of the present disclosure, an image display mode may be preset, and the image display mode may be freely set according to the use requirement of the user. For example, the image display mode may be displaying the image data on a display interface of the terminal device in a preset size, wherein the preset size may be freely adjusted, as shown in fig. 2.
In addition to the dimensions described above, the image presentation mode may also contain the following data: the display position of the image data on the display interface of the target client, the display color of the image data on the display interface of the target client and the like.
As can be seen from the above description, in the embodiment of the present disclosure, the image may be displayed through a preset image display mode, and the image display mode may display the image data in a preset format and size, so as to facilitate the user to preview the image.
As can be seen from the above description, the target image list includes information of images uploaded by each user in the target client. In an optional embodiment, if the target image list includes a plurality of image sub-lists, each image sub-list includes information of images uploaded by a respective user in the target client within a specified time period. For example, if the target client is a social client, the target image list may be understood as an image uploaded by a friend in the social circle of the corresponding user in the social client, and at this time, the image sub-list represents information of the image uploaded by each friend in the social client within a specified time period.
As can be seen from the technical solutions described in the background art, the browsing manner of the existing network picture is paging preview, where the paging preview refers to an operation of performing paging browsing on an image sub-list in a social client. In the existing paging preview mode, after browsing of pictures in the current image sub-list is finished, the terminal device exits the preview mode. However, it is still more desirable for some users to maintain the preview state throughout the preview process without the user being forced to close the preview state due to paging requested resources. Based on this, in the embodiment of the present disclosure, by adopting the technical solutions described in the above steps S101 to S105, it is possible to implement continuous browsing of images in each image sub-list without exiting the preview mode.
In the embodiment of the present disclosure, if the image switching instruction indicates to switch from browsing images in the current image sub-list to browsing images in the next image sub-list, the method provided by the embodiment of the present disclosure further includes the following processes:
(1) after finding the image data of the image requested to be switched, determining whether the sub-list to which the first image belongs is the same as the sub-list to which the image requested to be switched belongs;
as can be seen from the above description, the target image list includes information of images uploaded by each user in the target client. After detecting the image uploaded by the user, the target client may preset classification information, and store information of the image uploaded by the user into a corresponding sub-list of the target image list, for example, the preset classification information may include the following information: user information, image uploading time, image basic attribute information and the like.
In the embodiment of the present disclosure, after the requested switching image is found according to the image identification information of at least one second image, it may be further determined whether the sub-list to which the requested switching image belongs is the same as the sub-list to which the first image belongs.
(2) And under the condition that the image switching request is different from the image switching request, displaying target prompt information on the display interface, wherein the target prompt information is used for prompting the user of the category information of the image contained in the sub-list to which the image switching request belongs.
In the embodiment of the present disclosure, when it is determined that the sub-list to which the requested switching image belongs and the sub-list to which the first image belongs are different lists, the user may be prompted by displaying the target prompt information on the display interface.
It should be noted that the target prompt information may be set in a text form, and then displayed on the display interface in the text form. For example, when detecting that the sub-list to which the current preview image belongs changes, the target prompt information is displayed on the display interface in combination with the list classification information of the sub-list.
In other possible embodiments, the target image lists (or sub-lists) may further set priorities, when the first image is the first or last image of the target image list to which the first image belongs, in addition to performing cross-list display according to the order of the respective target image lists when the image switching instruction is received (that is, when the first image is the first image or the last image, the first image or the last image in an adjacent target image list may be displayed), each target image list may also be set with priorities in advance, and after the current target image list is displayed, images in other target image lists may be displayed according to the priorities.
Of course, the priority may also be set before each image in each target image list (or sub-list), and during the display, the display may be performed according to the priority, or may be performed according to the order, so as to improve the flexibility, which is not described in detail herein.
In the embodiment of the present disclosure, when target prompt information is displayed on the display interface, list classification information of a sub-list to which the requested image is switched may be first determined, and the category information may be subject information to which an image uploaded by a user belongs. Wherein the list classification information is used to characterize the category information of the images contained in the sub-list. And then, displaying the list classification information as the target prompt information on the display interface.
For online education software, because different sub-lists are information of images uploaded by different users, when images in one sub-list are previewed and images in the other sub-list are previewed, the subjects corresponding to the two images are different, in order to avoid the user from reading the requested switching image according to the subject of the first image, a prompt can be given to the user under the condition that the first image and the requested switching image belong to different sub-lists, so that the user is prompted to give a prompt about the category information of the images included in the sub-list to which the user requests to switch the images, wherein the category information can be the subject information to which the requested switching image belongs.
For example, the first image belongs to the topic of "junior high school mathematics on-line classroom", and the requested switching image belongs to the topic of "primary school mathematics on-line classroom", and at this time, the contents of representations of the first image and the requested switching image are also different.
As can be seen from the above description, in the case that the first image and the image requested to be switched belong to different sub-lists, the user can be prompted in the form of target prompt information, so that the lists to which the different images belong are distinguished in the preview process, and the user is prevented from reading the image requested to be switched according to the theme of the first image. Meanwhile, through the processing mode, the images in the plurality of sub-lists can be browsed in a linked manner, so that the situation that the image display mode exits after the image preview in each sub-list is finished is avoided, and convenience is brought to the preview process of a user.
As can be seen from the above description, in the embodiment of the present disclosure, a first image displayed on a display interface of a target client at a current time is determined, and then at least one second image is determined in the target image list according to image identification information of the first image.
In an optional embodiment, determining at least one second image in the target image list according to the image identification information of the first image specifically includes the following processes:
step S1031: and acquiring an uploading time stamp of each image in the target image list, wherein the uploading time stamp is used for representing the uploading time of each image.
In this embodiment of the present disclosure, when a user uploads an image through a target client, the target client may generate a corresponding timestamp for the image according to the upload time of the user, where the timestamp may be: uploading time: XX month XX day XX of XX year.
Step S1032: and determining the uploading time of the first image, and determining the uploading time adjacent to the uploading time of the first image according to the uploading timestamp.
In the embodiment of the present disclosure, after a user uploads an image through a target client and generates a corresponding timestamp for the image, the image may be sorted according to the timestamp to obtain an uploading sequence of the image. Next, an upload time adjacent to the upload time of the first image may be determined in the upload order sequence.
Step S1033: and determining the image uploaded at the adjacent uploading time in the target image list as the at least one second image.
In the embodiment of the present disclosure, according to the determined adjacent uploading time, at least one uploading image corresponding to the adjacent uploading time is determined, and the uploading image is determined as a second image.
As can be seen from the above description, in the embodiment of the present disclosure, an uploading sequence may be obtained according to the uploading time of the uploaded images, and the user may preview the uploaded images according to the uploading sequence, so as to better meet the preview requirement of the user.
In this disclosure, after determining at least one second image in the target image list according to the image identification information of the first image, the method may search for image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and specifically includes the following steps:
(1) and searching whether the image identification information of the requested switching image exists in the image identification information of the at least one second image.
In the embodiment of the present disclosure, the image flag information of the requested image to be switched is determined, the image identification information of the at least one second image is obtained, and the image flag information of the requested image to be switched is searched for in the image identification information of the at least one second image.
(2) And under the condition that the image identification information of the requested switching image is found, determining the image data of the second image which has the same image identification information with the requested switching image in the at least one second image as the image data of the requested switching image.
In the embodiment of the present disclosure, after the image identification information that is the same as the requested switching image is found in the image identification information of at least one second image, the second image corresponding to the same image identification information is determined as the requested switching image, and the image data of the requested switching image is acquired.
The image data may be original image data obtained when the second image is uploaded, or image data in which the resolution is reduced in addition to the original image data, so as to adapt to different network conditions. When the network state is poor and the loading is slow, a loading mark can be displayed on the display interface, and at this time, the picture in the preview mode cannot be operated, so that unnecessary operation instructions of the user are limited, and the waste of the flow is avoided, as shown in fig. 3, and the user can be asked whether the definition of the picture needs to be reduced.
In addition, in a case that the image identification information of the requested switching image is not found, for example, when the first image is the last image uploaded by the corresponding user and the image switching instruction is the next image switched to the first image, or when the first image is the first image uploaded by the corresponding user and the image switching instruction is the previous image switched to the first image, it is determined that the image identification information of the requested switching image is not found. When it is determined that the image identification information of the requested switching image is not found, query information may be displayed on the display interface, where the query information is used to query whether the user ends the image display mode, and after the user determines that the image display mode is ended, the image display mode is ended.
As can be seen from the above description, in the embodiment of the present disclosure, a manner of obtaining corresponding image data by comparing the image identification information of at least one second image with the image identification information of the requested switching image can play a certain throttling role compared with a manner of obtaining image data of all images in the sub-list. And when the image display mode is detected to be not available, the image display mode can be ended according to the requirements of the user, so that the operation experience and the operation freedom of the user are further improved.
In this embodiment of the present disclosure, after storing the preview image data in an intermediate cache file, the method further includes:
(1) and acquiring previewed image data in the target image list under the condition that the image identification information of the requested switching image is not found.
In the embodiment of the present disclosure, the user may select to end the current image display mode when the image identification information of the requested switching image is not found; thereafter, the previewed image data in the target image list may also be acquired. In addition, the user can actively end the image display mode in the preview process.
(2) And storing the previewed image data into an intermediate cache file of the target client, and deleting the expired previewed image data in the intermediate cache file.
In this disclosure, the previewed image data may be stored in an intermediate cache file according to the obtained previewed image data in the target image list.
In the embodiment of the present disclosure, an intermediate cache file may be preset, and the intermediate cache file is used to store the previewed image data generated in the image display mode. And after the image display mode is finished, storing the previewed image data into the intermediate cache file.
In the embodiment of the present disclosure, the previewed image data cached in the intermediate cache file includes a corresponding validity period, for example, the validity period may be one month, or one week, and after the previewed image data in the intermediate cache file exceeds the validity period, the corresponding expired previewed image data is deleted.
If the previewed image data does not exceed the validity period, after an image previewing instruction for the previewed image data is detected, the corresponding previewed image data is directly called in the intermediate cache file according to the image identification information indicated by the image previewing instruction.
It should be noted that, the user may set the validity period of the intermediate cache file according to the preview requirement. Preview image data exceeding the validity period is detected, and the preview image data is determined as expired preview image data. Upon detecting the existence of expired preview image data, the expired preview image data is deleted.
As can be seen from the above description, in the embodiment of the present disclosure, after the image display mode is ended, the previewed image data in the cache file can be previewed in the cache period, so that the consumption traffic of reloading the image data during the secondary previewing is avoided. And after the caching period is finished, previewed image data in the caching file is automatically cleaned, so that the phenomenon that the image data is stored too much and occupies the memory of the terminal equipment is avoided.
In the embodiment of the present disclosure, when a first image is previewed in a target client, at least one second image uploaded adjacent to the first image may be determined according to image identification information of the first image, and then a mode of image data of an image requested to be switched by a user is determined according to the image identification information of the at least one second image, so that selective loading of resources in a target image list according to the currently previewed first image may be implemented, and compared with a mode in the prior art that all image resources in the image list need to be loaded when any one image is previewed, traffic resources may be saved, memory consumption of a terminal device to which the target client belongs may be reduced, and a rate of image previewing may be increased.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, an image display apparatus corresponding to the image display method is also provided in the embodiments of the present disclosure, and since the principle of the apparatus in the embodiments of the present disclosure for solving the problem is similar to the image display method described above in the embodiments of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 4, a schematic diagram of an image pre-display provided in an embodiment of the present disclosure is shown, where the apparatus includes: the device comprises a first determining module, a second determining module and a searching module; wherein the content of the first and second substances,
the first determining module is used for determining a first image displayed on a display interface of a target client at the current moment and determining a target image list to which the first image belongs, wherein the target image list comprises image information of images uploaded by a registered user of the target client in the target client;
a second determining module, configured to determine at least one second image in the target image list according to the image identification information of the first image; wherein the at least one second image is an image uploaded to the target client before and/or after the first image;
and the searching module is used for responding to an image switching instruction, searching the image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface.
In the embodiment of the present disclosure, when a first image is previewed in a target client, at least one second image uploaded adjacent to the first image may be determined according to image identification information of the first image, and then a mode of image data of an image requested to be switched by a user is determined according to the image identification information of the at least one second image, so that selective loading of resources in a target image list according to the currently previewed first image may be implemented, and compared with a mode in the prior art that all image resources in the image list need to be loaded when any one image is previewed, traffic resources may be saved, memory consumption of a terminal device to which the target client belongs may be reduced, and a rate of image previewing may be increased.
In one possible embodiment, the second determining module is configured to: acquiring an uploading time stamp of each image in the target image list, wherein the uploading time stamp is used for representing the uploading time of each image; determining the uploading time of the first image, and determining the uploading time adjacent to the uploading time of the first image according to the uploading timestamp; and determining the image uploaded at the adjacent uploading time in the target image list as the at least one second image.
In a possible implementation, the search module is configured to: searching whether the image identification information of the requested switching image exists in the image identification information of the at least one second image; and under the condition that the image identification information of the requested switching image is found, determining the image data of the second image which has the same image identification information with the requested switching image in the at least one second image as the image data of the requested switching image.
In a possible implementation, the search module is further configured to: acquiring previewed image data in the target image list under the condition that the image identification information of the requested switching image is not found; storing the previewed image data into an intermediate cache file of the target client, and deleting the expired previewed image data in the intermediate cache file.
In a possible implementation, the search module is further configured to: acquiring an image display mode of the image data; and displaying the image data on the display interface according to the image display mode.
In one possible embodiment, the apparatus is further configured to: after finding the image data of the requested switching image, determining whether the sub-list to which the first image belongs and the sub-list to which the requested switching image belongs are the same; and under the condition that the images are different, displaying target prompt information on the display interface, wherein the target prompt information is used for prompting the user of the category information of the images contained in the sub-list to which the image requested to be switched belongs.
In one possible embodiment, the apparatus is further configured to: determining list classification information of a sub-list to which the requested switching image belongs, wherein the list classification information is used for representing the category information of the image contained in the sub-list; and displaying the list classification information on the display interface as the target prompt information.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Corresponding to the image display method in fig. 5, an embodiment of the present disclosure further provides an electronic device 500, as shown in fig. 5, a schematic structural diagram of the electronic device 500 provided in the embodiment of the present disclosure includes:
a processor 51, a memory 52, and a bus 53; the storage 52 is used for storing execution instructions and comprises a memory 521 and an external storage 522; the memory 521 is also referred to as an internal memory, and is configured to temporarily store operation data in the processor 51 and data exchanged with an external memory 522 such as a hard disk, the processor 51 exchanges data with the external memory 522 through the memory 521, and when the electronic device 500 operates, the processor 51 communicates with the memory 52 through the bus 53, so that the processor 51 executes the following instructions:
determining a first image displayed on a display interface of a target client at the current moment, and determining a target image list to which the first image belongs, wherein the target image list comprises image information of images uploaded by a registered user of the target client in the target client; determining at least one second image in the target image list according to the image identification information of the first image; wherein the at least one second image is an image uploaded to the target client before and/or after the first image; and responding to an image switching instruction, searching image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the image displaying method in the foregoing method embodiments are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product bears a program code, and instructions included in the program code may be used to execute the steps of the image displaying method in the foregoing method embodiments, which may be referred to specifically for the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. An image presentation method, comprising:
determining a first image displayed on a display interface of a target client at the current moment, and determining a target image list to which the first image belongs, wherein the target image list comprises image information of images uploaded by a registered user of the target client in the target client;
determining at least one second image in the target image list according to the image identification information of the first image; wherein the at least one second image is an image uploaded to the target client before and/or after the first image;
and responding to an image switching instruction, searching image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface.
2. The method of claim 1, wherein the displaying the image data on the display interface comprises:
acquiring an image display mode of the image data;
and displaying the image data on the display interface according to the image display mode.
3. The method according to claim 1, wherein the target image list comprises a plurality of image sub-lists, each image sub-list comprises image information of images uploaded by respective users in the target client within a specified time period; the method further comprises the following steps:
after finding the image data of the requested switching image, determining whether the sub-list to which the first image belongs and the sub-list to which the requested switching image belongs are the same;
and under the condition that the images are different, displaying target prompt information on the display interface, wherein the target prompt information is used for prompting the user of the category information of the images contained in the sub-list to which the image requested to be switched belongs.
4. The method of claim 3, wherein displaying a target prompt on the display interface comprises:
determining list classification information of a sub-list to which the requested switching image belongs, wherein the list classification information is used for representing the category information of the image contained in the sub-list;
and displaying the list classification information on the display interface as the target prompt information.
5. The method according to claim 1, wherein the determining at least one second image in the target image list according to the image identification information of the first image comprises:
acquiring an uploading time stamp of each image in the target image list, wherein the uploading time stamp is used for representing the uploading time of each image;
determining the uploading time of the first image, and determining the uploading time adjacent to the uploading time of the first image according to the uploading timestamp;
and determining the image uploaded at the adjacent uploading time in the target image list as the at least one second image.
6. The method according to claim 1, wherein the searching for the image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image comprises:
searching whether the image identification information of the requested switching image exists in the image identification information of the at least one second image;
and under the condition that the image identification information of the requested switching image is found, determining the image data of the second image which has the same image identification information with the requested switching image in the at least one second image as the image data of the requested switching image.
7. The method of claim 6, further comprising:
acquiring previewed image data in the target image list under the condition that the image identification information of the requested switching image is not found;
storing the previewed image data into an intermediate cache file of the target client, and deleting the expired previewed image data in the intermediate cache file.
8. An image display apparatus, comprising:
a first determination module: the image processing method comprises the steps of determining a first image displayed on a display interface of a target client at the current moment, and determining a target image list to which the first image belongs, wherein the target image list comprises image information of images uploaded in the target client by a registered user of the target client;
a second determination module: the image processing device is used for determining at least one second image in the target image list according to the image identification information of the first image; wherein the at least one second image is an image uploaded to the target client before and/or after the first image;
a searching module: and the image switching device is used for responding to an image switching instruction, searching image data of the image requested to be switched in the image switching instruction according to the image identification information of the at least one second image, and displaying the image data on the display interface.
9. An electronic device, comprising: processor, memory and bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the image presentation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the image presentation method according to any one of claims 1 to 7.
CN202110546408.9A 2021-05-19 2021-05-19 Image display method and device, electronic equipment and computer readable storage medium Active CN113282846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110546408.9A CN113282846B (en) 2021-05-19 2021-05-19 Image display method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110546408.9A CN113282846B (en) 2021-05-19 2021-05-19 Image display method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113282846A true CN113282846A (en) 2021-08-20
CN113282846B CN113282846B (en) 2022-09-23

Family

ID=77279914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110546408.9A Active CN113282846B (en) 2021-05-19 2021-05-19 Image display method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113282846B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115859413A (en) * 2023-02-16 2023-03-28 北京探索者软件股份有限公司 Data insertion method and device for CAD client, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030105776A1 (en) * 1998-09-04 2003-06-05 Kamon Hasuo File management system and its method and storage medium
CN110136807A (en) * 2019-05-22 2019-08-16 图兮深维医疗科技(苏州)有限公司 A kind of medical image pre-load means and equipment
CN110580124A (en) * 2018-06-07 2019-12-17 阿里巴巴集团控股有限公司 Image display method and device
US20210067687A1 (en) * 2019-08-30 2021-03-04 Canon Kabushiki Kaisha Electronic apparatus, image capture apparatus, method for controlling the same, and storage medium
CN112463998A (en) * 2020-11-25 2021-03-09 京东方科技集团股份有限公司 Album resource processing method, apparatus, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030105776A1 (en) * 1998-09-04 2003-06-05 Kamon Hasuo File management system and its method and storage medium
CN110580124A (en) * 2018-06-07 2019-12-17 阿里巴巴集团控股有限公司 Image display method and device
CN110136807A (en) * 2019-05-22 2019-08-16 图兮深维医疗科技(苏州)有限公司 A kind of medical image pre-load means and equipment
US20210067687A1 (en) * 2019-08-30 2021-03-04 Canon Kabushiki Kaisha Electronic apparatus, image capture apparatus, method for controlling the same, and storage medium
CN112463998A (en) * 2020-11-25 2021-03-09 京东方科技集团股份有限公司 Album resource processing method, apparatus, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115859413A (en) * 2023-02-16 2023-03-28 北京探索者软件股份有限公司 Data insertion method and device for CAD client, storage medium and electronic device
CN115859413B (en) * 2023-02-16 2023-11-28 北京探索者软件股份有限公司 Data insertion method and device of CAD (computer aided design) client, storage medium and electronic device

Also Published As

Publication number Publication date
CN113282846B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
US9781071B2 (en) Method, apparatus and computer program product for providing automatic delivery of information to a terminal
US10203845B1 (en) Controlling the rendering of supplemental content related to electronic books
EP2750054A1 (en) Content recommendation method
US8214464B2 (en) Current updates
KR20150132074A (en) Method for organising content
Ames et al. Requirements for mobile photoware
EP3528140A1 (en) Picture processing method, device, electronic device and graphic user interface
CN112799561A (en) Information display method and device and computer storage medium
JP6209335B2 (en) Information processing apparatus and information processing method
CN113220774A (en) Encyclopedic information display method and device and computer storage medium
KR101328249B1 (en) Method of providing a cloud service and terminal using the cloud service
CN113536137A (en) Information display method and device and computer storage medium
CN110740088B (en) Method, device, terminal and medium for recommending and adding social resources
CN108268198B (en) Interactive information display method and device
CN112087667A (en) Information processing method and device and computer storage medium
CN114860919A (en) Topic recommendation method and device, computer equipment and storage medium
CN112422592B (en) Information recommendation method and device, electronic equipment and storage medium
CN113282846B (en) Image display method and device, electronic equipment and computer readable storage medium
CN112131466A (en) Group display method, device, system and storage medium
JP6507263B2 (en) Content filtering based on user mobile network and data plan
EP3258398B1 (en) Engaged micro-interactions on digital devices
CN111061532B (en) Wallpaper display method and terminal equipment
CN113032626A (en) Search result processing method and device, electronic equipment and storage medium
CN105204718B (en) Information processing method and electronic equipment
US9942287B2 (en) Information processing system, terminal device, and method

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