Picture preview method and device, storage medium and electronic equipment
By generating and sending virtual image mapping addresses in the cloud, the problem of cloud image storage address leakage is solved, thereby improving security and preview speed.
Patent Information
- Application Number
- CN202410972928.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2026-01-20
AI Technical Summary
In existing technologies, while improving image preview speed, internet cloud storage applications pose a risk of leaking the actual storage address of images in the cloud, resulting in insufficient storage address security.
Instead of sending the actual storage address directly, a virtual image mapping address is generated in the cloud and sent to the client for preview. The client then uses the virtual mapping address to determine the target image for preview display.
It improves the security of image storage addresses in the cloud, avoids the leakage of real storage addresses, and meets the needs of different preview modes while improving preview speed.
Smart Images

Figure CN121365019A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, and particularly relates to a picture preview method and device, a storage medium and an electronic device. BACKGROUND
[0002] Cloud disk is a specific application of cloud storage technology, aiming to provide a convenient online file storage and sharing solution for individual users and enterprises. Cloud disk services are usually provided through network interfaces or special client software, and users can upload, download, share and manage files without relying on specific devices or locations, so that users can access their data stored in the cloud at any time and anywhere.
[0003] Online preview is an important function in cloud disk services, which allows users to preview the content of various document formats directly through browsers or applications without downloading the files. In related technologies, in order to improve the user's picture preview experience, the Internet cloud disk application usually chooses to shorten the loading and rendering time of the picture to speed up the display of the picture. SUMMARY
[0004] The embodiments of the present application provide a picture preview method, device, computer storage medium and electronic device. The technical solution is as follows:
[0005] In a first aspect, the embodiments of the present application provide a picture preview method, which comprises:
[0006] receiving a picture preview request sent by a client in a cloud storage scenario, determining a picture virtual mapping address based on the picture preview request;
[0007] sending the picture virtual mapping address to the client, so that the client determines a target picture based on the picture virtual mapping address and performs preview display based on the target picture.
[0008] In some possible implementation manners, the determining of the picture virtual mapping address based on the picture preview request comprises:
[0009] performing preview type analysis processing based on the picture preview request to obtain a target preview type;
[0010] determining a picture virtual mapping address corresponding to the picture preview request based on the target preview type.
[0011] In some possible implementation manners, the determining of the picture virtual mapping address corresponding to the picture preview request based on the target preview type comprises:
[0012] obtaining a picture virtual address data table based on the target preview type;
[0013] determine a picture preview range indicated by the picture preview request, and query a picture virtual mapping address corresponding to the picture preview range based on the picture virtual address data table.
[0014] In some possible implementation manners, an original picture uploaded by a client for a cloud storage scenario is acquired, and picture conversion processing is performed on the original picture to obtain a converted picture.
[0015] Virtual address mapping processing is performed on the converted picture to obtain a reference picture virtual mapping address.
[0016] In some possible implementation manners, the picture conversion processing performed on the original picture to obtain a converted picture includes:
[0017] A picture preview configuration mode corresponding to the client is acquired.
[0018] Picture conversion processing is performed on the original picture based on the picture preview configuration mode to obtain a converted picture.
[0019] In some possible implementation manners, the picture conversion processing performed on the original picture based on the picture preview configuration mode to obtain a converted picture includes:
[0020] A picture conversion strategy for the client is determined based on the picture preview configuration mode.
[0021] Picture conversion processing is performed on the original picture by using the picture conversion strategy to obtain a converted picture.
[0022] In some possible implementation manners, the virtual address mapping processing performed on the converted picture to obtain a reference picture virtual mapping address includes:
[0023] An actual cloud storage address of the converted picture is determined.
[0024] Virtual address mapping processing is performed based on the actual cloud storage address to obtain a reference picture virtual mapping address.
[0025] In some possible implementation manners, the method further includes:
[0026] An address validity duration is configured for the reference picture virtual mapping address.
[0027] When it is monitored that a current validity duration of the reference picture virtual mapping address is greater than the address validity duration, address updating processing is performed on the reference picture virtual mapping address based on the actual cloud storage address to obtain an updated reference picture virtual mapping address corresponding to the actual cloud storage address.
[0028] In a second aspect, the embodiments of the present application provide a picture preview method, the method comprising:
[0029] obtaining a picture preview request in a cloud storage scenario, sending the picture preview request to a server, so that the server determines a picture virtual mapping address based on the picture preview request;
[0030] receiving the picture virtual mapping address sent by the server, determining a target picture based on the picture virtual mapping address, and performing preview display based on the target picture.
[0031] In some possible implementation manners, the method further comprises:
[0032] obtaining an original picture selected locally for a cloud storage scenario, uploading the original picture to a server, so that the server determines a reference picture virtual mapping address based on the original picture.
[0033] In a third aspect, the embodiments of the present application provide a picture preview device, the device comprising:
[0034] an address determination module configured to receive a picture preview request sent by a client in a cloud storage scenario, and determine a picture virtual mapping address based on the picture preview request;
[0035] an address sending module configured to send the picture virtual mapping address to the client, so that the client determines a target picture based on the picture virtual mapping address and performs preview display based on the target picture.
[0036] Optionally, the address determination module comprises:
[0037] a request analysis unit configured to perform preview type analysis processing based on the picture preview request to obtain a target preview type;
[0038] an address determination unit configured to determine a picture virtual mapping address corresponding to the picture preview request based on the target preview type.
[0039] Optionally, the address determination unit is specifically configured to:
[0040] obtain a picture virtual address data table based on the target preview type;
[0041] determine a picture preview range indicated by the picture preview request, and query a picture virtual mapping address corresponding to the picture preview range based on the picture virtual address data table.
[0042] Optionally, the picture preview device further comprises:
[0043] The picture conversion module is configured to obtain an original picture uploaded by a client in a cloud storage scenario, and perform picture conversion processing on the original picture to obtain a converted picture.
[0044] The address mapping module is configured to perform virtual address mapping processing on the converted picture to obtain a reference picture virtual mapping address.
[0045] Optionally, the picture conversion module comprises:
[0046] The first conversion unit is configured to obtain a picture preview configuration mode corresponding to the client.
[0047] The second conversion unit is configured to perform picture conversion processing on the original picture based on the picture preview configuration mode to obtain a converted picture.
[0048] Optionally, the second conversion unit is specifically configured to:
[0049] determine a picture conversion strategy for the client based on the picture preview configuration mode;
[0050] perform picture conversion processing on the original picture based on the picture conversion strategy to obtain a converted picture.
[0051] Optionally, the address mapping module comprises:
[0052] The first mapping unit is configured to determine an actual cloud storage address of the converted picture.
[0053] The second mapping unit is configured to perform virtual address mapping processing based on the actual cloud storage address to obtain a reference picture virtual mapping address.
[0054] Optionally, the address mapping module further comprises:
[0055] The time limit configuration unit is configured to configure an address valid time limit for the reference picture virtual mapping address.
[0056] The address updating unit is configured to, when it is monitored that a current valid time limit of the reference picture virtual mapping address is greater than the address valid time limit, perform address updating processing on the reference picture virtual mapping address based on the actual cloud storage address to obtain an updated reference picture virtual mapping address corresponding to the actual cloud storage address.
[0057] In a fourth aspect, an embodiment of the present application provides a picture preview device, and the device comprises:
[0058] The request sending module is configured to obtain a picture preview request in a cloud storage scenario, and send the picture preview request to a server, so that the server determines a picture virtual mapping address based on the picture preview request.
[0059] a picture preview module, configured to receive the picture virtual mapping address sent by the server, determine a target picture based on the picture virtual mapping address, and perform preview display based on the target picture.
[0060] Optionally, the picture preview apparatus is further configured to:
[0061] Optionally, the picture preview apparatus is further configured to:
[0062] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which has a plurality of instructions. The instructions are suitable for being loaded by a processor and performing the method described above.
[0063] In a sixth aspect, an embodiment of the present application provides an electronic device, which can include a memory and a processor. The memory stores a computer program, and the computer program is suitable for being loaded by the memory and performing the method described above.
[0064] The technical scheme provided by the embodiment of the present application has at least the following beneficial effects:
[0065] The picture preview method provided by the embodiment of the present application receives a picture preview request sent by a client in a cloud storage scenario to determine a picture virtual mapping address, and then sends the picture virtual mapping address to the client, so that the client can determine a target picture based on the picture virtual mapping address and perform preview display based on the target picture. The above method responds to the picture preview request of the client by sending the picture virtual mapping address to the client, instead of sending the real storage address of the picture in the cloud to the client, thereby avoiding the real storage address of the picture in the cloud from being leaked, and improving the security of the storage address of the picture in the cloud. BRIEF DESCRIPTION OF DRAWINGS
[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiment or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0067] Figure 1 is a scene schematic diagram of a picture preview method provided by the embodiment of the present application;
[0068] Figure 2 is a flow schematic diagram of a picture preview method provided by the embodiment of the present application;
[0069] Figure 3 is a flowchart of another picture preview method provided by an embodiment of the present application;
[0070] Figure 4 is a flowchart of a picture preview method provided by an embodiment of the present application;
[0071] Figure 5 is a flowchart of another picture preview method provided by an embodiment of the present application;
[0072] Figure 6 is a structural diagram of a picture preview device provided by an embodiment of the present application;
[0073] Figure 7 is a structural diagram of another picture preview device provided by an embodiment of the present application;
[0074] Figure 8 is a structural diagram of an electronic device provided by an embodiment of the present application;
[0075] Figure 9 is a structural diagram of another electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0076] In order to make the purposes, features and advantages of the embodiments of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0077] In the description of the present application, it should be understood that the terms "first", "second" and the like are used only for descriptive purposes and are not intended to indicate or imply relative importance. In the description of the present application, it should be noted that, unless otherwise explicitly specified and limited, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or optionally also includes other steps or units inherent to the process, method, product or device. The specific meaning of the above terms in the present application can be understood by the person skilled in the art according to the specific circumstances. In addition, in the description of the present application, "multiple" means two or more, unless otherwise specified. The association relationship of the associated objects is described, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after it.
[0078] In related technologies, in order to improve the picture preview experience of users, the Internet cloud disk application selects to shorten the loading and rendering time of the picture to speed up the display speed of the picture. The technical principle is: using HTML5 technology to obtain the source address of the picture in the cloud, then obtaining the corresponding picture resource from the source address, to load and render the picture into the user's browser, and the browser will also cache the picture, when the user accesses the picture again, directly obtain the picture from the cache without downloading the picture again, to shorten the loading and rendering time of the picture to speed up the display speed of the picture. In the above method, the source address of the picture in the cloud may be exposed, and there is a risk of exposing the source address. Therefore, how to improve the security of the storage address of the picture in the cloud is a technical problem to be solved.
[0079] In order to solve the above technical problems, the present application will be described in detail below in combination with specific embodiments.
[0080] Please refer to Figure 1 , a scene schematic diagram of a picture preview method provided by an embodiment of the present application.
[0081] As Figure 1 shown, the picture preview scene includes a server and at least one client, and the server and the client are connected respectively. It can be understood that the number of clients is only exemplary, and the number of clients is not limited by the embodiments of the present application.
[0082] In the embodiments of the present application, the server refers to an electronic device for managing and storing user data in cloud storage, and the client refers to a user device. The user can use the client to interact with the server to realize the storage of user data in cloud storage. For example, taking a cloud disk application for cloud storage as an example, the server can refer to an electronic device for managing and storing user data in the cloud disk application, and the client can refer to a user device that can access the software or website or applet of the cloud disk application. For example, the client can include but is not limited to tablet, computer, mobile phone and the like.
[0083] For example, the server can be a separate server device, and can also be a server cluster composed of multiple nodes. When the server is a server cluster composed of multiple nodes, each node in the server can be a separate server device, for example: rack, blade, tower or cabinet type server device, or a hardware device with strong computing power such as workstation, mainframe computer, etc.; or a server cluster composed of multiple servers, each server in the service cluster can be composed in a symmetrical manner, that is, each server is functionally equivalent and positionally equivalent in the transaction link, and each server can independently provide services to the outside. Providing services to the outside can be understood as not needing the assistance of other servers.
[0084] In the picture preview method provided by the embodiments of the present application, the server can perform the following steps: receiving a picture preview request sent by the client in a cloud storage scenario, determining a picture virtual mapping address based on the picture preview request; sending the picture virtual mapping address to the client, so that the client determines a target picture based on the picture virtual mapping address and performs preview display based on the target picture.
[0085] The picture preview method provided by the embodiments of the present application receives the picture preview request sent by the client in the cloud storage scenario to determine the picture virtual mapping address, and then sends the picture virtual mapping address to the client, so that the client can determine the target picture based on the picture virtual mapping address and perform preview display based on the target picture. The above method responds to the picture preview request of the client by sending the picture mapping virtual address to the client, instead of sending the real storage address of the picture in the cloud to the client, thereby avoiding the leakage of the real storage address of the picture in the cloud, and improving the security of the storage address of the picture in the cloud.
[0086] It should be noted that any one client can establish a communication connection with the server through the network for interactive communication, and any one client can also establish a communication connection with at least one node in the server through the network for interactive communication. Among them, the network can be a wireless network or a wired network, the wireless network includes but is not limited to a cellular network, a wireless local area network, an infrared network or a Bluetooth network, and the wired network includes but is not limited to an Ethernet, a universal serial bus (USB) or a controller area network. In one or more embodiments of the specification, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML) and the like are used to represent the data (such as the target compressed package) exchanged through the network. In addition, all or some links can be encrypted using conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) and the like. In other embodiments, custom and / or dedicated data communication technologies can be used instead of or in addition to the above data communication technologies.
[0087] In one embodiment, as shown in Figure 2 a picture preview method is proposed, which can be implemented by a computer program and can run on a picture preview device based on the von Neumann architecture. The computer program can be integrated in an application or run as an independent tool application.
[0088] Specifically, the execution subject of the picture preview method is a server, and the picture preview method comprises:
[0089] S201, receiving a picture preview request sent by a client in a cloud storage scenario, and determining a picture virtual mapping address based on the picture preview request.
[0090] The cloud storage scenario refers to a scenario of storing and managing user data by using cloud computing technology and infrastructure provided storage services. In the cloud storage scenario, a communication connection between the client and the server corresponding to the cloud disk application is established by taking the cloud disk application as a carrier. The cloud disk application allows users to upload files, documents, pictures, videos and other data to the server through the Internet, so as to access, share or backup these data anytime and anywhere.
[0091] The picture preview request refers to a preview request triggered by a user inputting a picture preview operation on a client. The picture preview request can be a preview request for previewing one picture or a preview request for previewing multiple pictures.
[0092] The picture virtual mapping address refers to a virtual storage address having a mapping relationship with a picture converted based on a cloud picture. The cloud picture is a picture stored in a server through a cloud disk application. After receiving a cloud picture uploaded by a user, the server can generate a picture virtual mapping address corresponding to a picture converted based on each cloud picture, and save the mapping relationship between the picture converted based on the cloud picture and the picture virtual mapping address.
[0093] For example, in a cloud storage scenario, a user stores pictures, files, documents, videos, and other data in a cloud disk application through a client. These data are uploaded to a server for storage through the cloud disk application. When the user accesses software of the cloud disk application or a website or a mini-program of the cloud disk application through the client, the user inputs a picture preview operation in the cloud disk application to trigger a picture preview request. The server can receive the picture preview request sent by the client. The server can analyze the picture preview request to determine a cloud disk picture requested by the user for preview and determine a picture virtual mapping address corresponding to a picture converted based on the cloud disk picture. When storing the cloud disk picture uploaded by the user, the server generates the picture virtual mapping address for the picture converted based on the cloud disk picture and stores the picture virtual mapping address. Therefore, after receiving the picture preview request, the picture virtual mapping address corresponding to the picture converted based on the cloud disk picture can be easily obtained by determining the cloud disk picture requested for preview.
[0094] It can be understood that the user in the embodiments of the present application can be an individual user or an enterprise user.
[0095] S202, sending the picture virtual mapping address to the client, so that the client determines a target picture based on the picture virtual mapping address and performs preview display based on the target picture.
[0096] The target picture refers to a converted picture corresponding to a cloud picture requested by the user for preview. The target picture can be a converted picture corresponding to one cloud picture, or converted pictures corresponding to multiple cloud pictures.
[0097] In some embodiments, when the user requests to preview multiple cloud pictures, the server can respectively determine the converted pictures corresponding to the cloud pictures respectively, determine the picture virtual mapping addresses corresponding to the converted pictures respectively, the server can send the multiple picture virtual mapping addresses to the client, and the server can also identify the picture identifiers corresponding to the picture virtual mapping addresses (the picture identifiers of the cloud pictures), so that the client can determine that the picture virtual mapping address is the picture virtual mapping address corresponding to the cloud picture indicated by the picture identifier, the client can obtain the target picture (the converted picture corresponding to the cloud picture) according to the picture virtual mapping address, and then output the preview display of the target picture. When the user requests to preview a cloud picture, the server determines the converted picture corresponding to the cloud picture, determines the picture virtual mapping address corresponding to the converted picture, and can directly send the picture virtual mapping address to the client, the converted picture determined according to the picture virtual mapping address by the client is the target picture, and then the preview display of the target picture is outputted.
[0098] The picture preview method provided by the embodiments of the present application receives the picture preview request sent by the client in the cloud storage scenario to determine the picture virtual mapping address, and then sends the picture virtual mapping address to the client, so that the client can determine the target picture according to the picture virtual mapping address and perform preview display based on the target picture. The above method responds to the picture preview request of the client by sending the picture mapping virtual address to the client, instead of sending the real storage address of the picture in the cloud to the client, thereby avoiding the real storage address of the picture in the cloud from being leaked, and improving the security of the storage address of the picture in the cloud.
[0099] Further, please refer to Figure 3 , Figure 3 is a flow diagram of another embodiment of a picture preview method proposed by the present application.
[0100] Specifically, the execution subject of the picture preview method is a server, and the picture preview method comprises the following steps.
[0101] S301, obtaining an original picture uploaded by a client in a cloud storage scenario, and performing picture conversion processing on the original picture to obtain a converted picture.
[0102] The original picture refers to a picture selected by a user from a local client and uploaded to a cloud disk application for cloud storage.
[0103] The converted picture refers to a picture obtained by performing conversion processing such as compression, cropping, format conversion, etc. on the original picture. The storage capacity of the converted picture can be smaller than that of the original picture.
[0104] In some embodiments, in a cloud storage scenario, a user stores pictures, files, documents, videos, etc. data in a cloud disk application through a client, and the data is uploaded to a server for storage through the cloud disk application. When the user accesses the software of the cloud disk application or the website of the cloud disk application or the applet of the cloud disk application through the client, the user inputs an upload operation for an original picture in the cloud disk application, and the client uploads the original picture to the server in response to the upload operation, so that the server can obtain the original picture. The number of original pictures can be one or more.
[0105] When the server performs the operation of performing picture conversion processing on the original picture to obtain a converted picture, it can specifically include: A1, obtaining a picture preview configuration mode corresponding to the client; A2, performing picture conversion processing on the original picture based on the picture preview configuration mode to obtain a converted picture.
[0106] The picture preview configuration mode can include at least one of a high-definition preview mode, a thumbnail preview mode, and a grid preview mode. The high-definition preview mode can refer to displaying a picture in high definition. The thumbnail preview mode can refer to displaying a picture in a small size and low resolution. The grid preview mode refers to arranging and displaying multiple thumbnails or pictures in a grid or rectangular shape.
[0107] When step A1 is performed, after the server receives the original picture uploaded by the client, the server can send a preview mode obtaining instruction to the client. The client obtains one or more picture preview configuration modes configured in the client in response to the preview mode obtaining instruction, and sends the picture preview configuration mode to the server, so that the server can obtain the picture preview configuration mode corresponding to the client. Specifically, the one or more picture preview modes configured in the client can be one or more picture preview modes configured by the user in the cloud disk application. The cloud disk application can be configured with a preview mode setting interface, and the user can set the corresponding picture preview mode according to the demand in the preview mode setting interface.
[0108] In the step A2, the following operations can be included: determining a picture conversion policy for the client based on the picture preview configuration mode; and performing picture conversion processing on the original picture based on the picture conversion policy to obtain a converted picture. The picture conversion policy can include at least one of a compression policy, a cropping policy, and a format conversion policy. Specifically, different picture preview configuration modes correspond to different picture conversion policies. For example, the picture conversion policy corresponding to the high-definition preview mode can be a format conversion policy, and the picture conversion policy corresponding to the thumbnail preview mode can include a compression policy and a cropping policy. The conversion policy mapping relationship can be pre-set based on expert experience, and the conversion policy mapping relationship can include at least one reference picture conversion policy corresponding to a reference preview configuration mode for a reference picture preview configuration mode. Then, the target picture conversion policy corresponding to the picture preview configuration mode can be queried in the conversion policy mapping relationship, and the target picture conversion policy is the picture conversion policy for the client. Further, the original picture is processed according to the picture conversion policy to obtain the converted picture. For example, the picture conversion policy is a format conversion policy, the original picture is in png format, and the converted picture obtained by the picture conversion policy is in ipeg format.
[0109] The converted picture obtained by the picture conversion policy has a storage capacity smaller than that of the original picture. Therefore, the converted picture can not only meet the preview requirements of different preview modes, but also ensure that the picture occupies less storage capacity in the case of distortion.
[0110] S302, the converted picture is processed to obtain a reference picture virtual mapping address.
[0111] The reference picture virtual mapping address refers to a virtual storage address having a mapping relationship with the converted picture, and the converted picture can be obtained through the reference picture virtual mapping address.
[0112] Specifically, the step S302 can include: determining an actual cloud storage address of the converted picture; and performing virtual address mapping processing based on the actual cloud storage address to obtain the reference picture virtual mapping address. The actual cloud storage address refers to the actual storage address of the converted picture in the cloud. Specifically, after obtaining the converted picture, the converted picture is stored in the cloud, and the actual storage address of the converted picture in the cloud, i.e. the actual cloud storage address, can be determined. The actual storage address is processed by virtual address mapping to obtain the reference picture virtual mapping address, so that the converted picture stored in the actual storage address can be obtained through the reference picture virtual mapping address without exposing the actual storage address.
[0113] Optionally, a picture virtual address data table can be configured for each picture preview configuration mode corresponding to a client, and a reference picture virtual mapping address corresponding to the picture preview configuration mode is stored in the picture virtual address data table. The reference picture virtual mapping address corresponding to the picture preview configuration mode refers to a reference picture virtual mapping address corresponding to a converted picture obtained by performing picture conversion on an original picture by using a picture conversion strategy corresponding to the picture preview configuration mode.
[0114] Optionally, after step S302 is performed, the method further includes: configuring an address validity duration for the reference picture virtual mapping address; and when it is monitored that a current validity duration of the reference picture virtual mapping address is greater than the address validity duration, performing address updating processing on the reference picture virtual mapping address based on an actual cloud storage address to obtain an updated reference picture virtual mapping address corresponding to the actual cloud storage address. The current validity duration refers to a duration from a time when the picture virtual mapping address is generated to a current time.
[0115] Specifically, the address validity duration can be configured for each reference picture virtual mapping address, and the address validity duration can be used to evaluate whether the reference picture virtual mapping address is invalid. When it is monitored that the current validity duration of the reference picture virtual mapping address is greater than the address validity duration, it is indicated that the reference picture virtual mapping address is invalid, and the reference picture virtual mapping address needs to be updated to obtain an updated reference picture virtual mapping address. For example, the address validity duration can be set to 1 hour, 3 hours, 6 hours, 8 hours, etc. In this way, by automatically monitoring the invalid reference picture virtual mapping address and updating the invalid reference picture virtual mapping address, the picture virtual mapping address can be prevented from being leaked externally.
[0116] It can be understood that after the reference picture virtual mapping address is invalid, the reference picture virtual mapping address in the virtual address data table can also be updated to the updated reference picture virtual mapping address, so as to ensure that the virtual address data table is updated along with the updating of the reference picture virtual mapping address.
[0117] S303, receiving a picture preview request sent by the client in the cloud storage scenario.
[0118] For example, in the cloud storage scenario, the picture preview request can be a preview request triggered by a user inputting a high-definition preview operation on the client, the picture preview request can also be a preview request triggered by a user inputting a thumbnail preview operation on the client, and the picture preview request can also be a preview request triggered by a user inputting a grid preview operation on the client. The client sends the picture preview request to the server in response to any one of the above picture preview requests, so that the server can receive the picture preview request.
[0119] S304, performing preview type analysis based on the picture preview request to obtain a target preview type.
[0120] The target preview type can include, but is not limited to, a high-definition preview type, a thumbnail preview type, a grid preview type, and the like.
[0121] In some embodiments, when the picture preview request is a preview request triggered based on a high-definition preview operation, the server can analyze the target preview type of the picture preview request as a high-definition preview type. When the picture preview request is a preview request triggered based on a thumbnail preview operation, the server can analyze the target preview type of the picture preview request as a thumbnail type. When the picture preview request is a preview request triggered based on a grid preview operation, the server can analyze the target preview type of the picture preview request as a grid preview type.
[0122] S305, determining a picture virtual mapping address corresponding to the picture preview request based on the target preview type.
[0123] In some embodiments, performing step S305 can include: obtaining a picture virtual address data table based on the target preview type; determining a picture preview range indicated by the picture preview request, and querying a picture virtual mapping address corresponding to the picture preview range based on the picture virtual address data table.
[0124] Specifically, as known from the above step S302, a picture virtual address data table is configured for each client corresponding to a picture preview configuration mode. The target preview type corresponding target picture preview configuration mode can be determined, and then the picture virtual address data table corresponding to the target picture preview configuration mode is obtained. When the target preview type is a high-definition preview type, the target picture preview configuration mode can be determined as a high-definition preview mode. When the target preview type is a thumbnail type, the target picture preview configuration mode can be determined as a thumbnail preview mode. When the target preview type is a grid preview type, the target picture preview configuration mode can be determined as a grid preview mode.
[0125] The picture preview request can carry a folder identifier of a picture folder requested by the user for preview, or carry a picture identifier of a certain picture or a picture requested by the user for preview. The server can perform identifier analysis on the picture preview request to obtain the folder identifier or the picture identifier, so as to determine a picture preview range indicated by the picture preview request according to the folder identifier or the picture identifier. The picture preview range includes one or more pictures requested by the user for preview. A converted picture corresponding to each picture in the picture preview range is determined, and a picture virtual mapping address corresponding to the converted picture is queried in the picture virtual address data table.
[0126] S306, send the picture virtual mapping address to the client, so that the client determines the target picture based on the picture virtual mapping address and performs preview display based on the target picture.
[0127] In some embodiments, when the picture preview range indicated by the picture preview request includes multiple pictures, the server can send the picture virtual mapping addresses corresponding to the multiple pictures to the client, and the server can also identify the picture identifiers corresponding to the picture virtual mapping addresses, so that the client can determine that the picture virtual mapping addresses correspond to the target pictures corresponding to the picture identifiers, the target pictures are the converted pictures corresponding to the pictures, and then the target pictures are used for preview display. When the picture preview range indicated by the picture preview request includes one picture, the server can directly send the picture virtual mapping address corresponding to the picture to the client, and the converted picture determined by the client based on the picture virtual mapping address is the target picture, and then the target picture is used for preview display.
[0128] The picture preview method provided by the embodiments of the present application first obtains an original picture uploaded by a client in a cloud storage scenario, performs picture conversion processing on the original picture to obtain a converted picture, performs virtual address mapping processing on the converted picture to obtain a reference picture virtual mapping address, converts the original picture uploaded by the user to the cloud to obtain a converted picture with a smaller storage capacity than the original picture, hides the actual cloud storage address of the converted picture, and determines the reference picture virtual mapping address corresponding to the converted picture. Then, when receiving a picture preview request sent by the client, the target preview type is obtained by performing preview type analysis processing based on the picture preview request, and the picture virtual mapping address corresponding to the picture preview request is determined based on the target preview type, so that the picture virtual mapping address corresponding to the picture preview request can be obtained from the previously stored reference picture virtual mapping address when the user requests to preview the picture. Finally, the picture virtual mapping address is sent to the client, so that the client determines the target picture based on the picture virtual mapping address and performs preview display based on the target picture. For the picture preview request sent by the client, the server does not send the actual cloud storage address corresponding to the original picture to the client, but sends the picture virtual mapping address corresponding to the original picture to the client, and the client can also obtain the corresponding picture resource based on the picture virtual mapping address and perform preview display based on the picture resource. Therefore, the embodiments of the present application provide preview display of the picture for the user without exposing the actual cloud storage address of the picture, ensure the security of the actual cloud storage address of the picture, and the picture resource obtained by the client based on the picture virtual mapping address can not only meet the preview requirements of different preview modes, but also can improve the picture preview display speed by loading a picture resource with smaller capacity without distortion.
[0129] Next, see Figure 4 , a flowchart of an embodiment of a picture preview method provided for an embodiment of the present application.
[0130] Specifically, the execution subject of the picture preview method is a client, and the picture preview method comprises:
[0131] S401, obtaining a picture preview request in a cloud storage scenario, sending the picture preview request to a server to enable the server to determine a picture virtual mapping address based on the picture preview request.
[0132] Illustratively, in the cloud storage scenario, a user stores pictures, files, documents, videos and other data in a cloud disk application through a client, and these data are uploaded to a server for storage through the cloud disk application. When the user accesses the software of the cloud disk application or the website of the cloud disk application or the applet of the cloud disk application through the client, the user inputs a picture preview operation in the cloud disk application to trigger the client to generate a picture preview request. The client sends the picture preview request to the server corresponding to the cloud disk application, so that the server determines a picture virtual mapping address based on the picture preview request.
[0133] It can be understood that the user can be a personal user or an enterprise user.
[0134] The picture preview request can be a preview request for previewing one picture, or can be a preview request for previewing multiple pictures.
[0135] S402, receiving the picture virtual mapping address sent by the server, determining a target picture based on the picture virtual mapping address, and performing preview display based on the target picture.
[0136] In some embodiments, after the client sends the picture preview request to the server, the client can receive the picture virtual mapping address returned by the server based on the picture preview request. The client can obtain a picture resource according to the picture virtual mapping address, load and render a target picture according to the picture resource, and output the target picture to perform preview display in response to the picture preview request.
[0137] The target picture can be a converted picture corresponding to the picture requested by the user for preview in the cloud.
[0138] The picture preview method provided by the embodiments of the present application sends a picture preview request obtained by a client in a cloud storage scenario to a server, so that the server can determine a picture virtual mapping address according to the picture preview request, and the picture virtual mapping address sent by the server is received, so that a target picture can be determined according to the picture virtual mapping address, and preview display is performed based on the target picture. In the method, the server does not send the real storage address of the picture in the cloud to the client, but sends the picture mapping virtual address to the client, so that the real storage address of the picture in the cloud is avoided to be leaked, and the security of the storage address of the picture in the cloud is improved.
[0139] Further, please refer to Figure 5 , a flowchart of another embodiment of a picture preview method provided by the embodiments of the present application.
[0140] Specifically, the execution subject of the picture preview method is a client, and the picture preview method comprises the following steps.
[0141] S501, an original picture selected from the local for a cloud storage scenario is obtained, and the original picture is uploaded to a server, so that the server determines a reference picture virtual mapping address based on the original picture.
[0142] In the cloud storage scenario, a user stores pictures, files, documents, videos and other data in a cloud disk application through a client, and the data is uploaded to a server for storage through the cloud disk application.
[0143] Illustratively, a user can access the software of the cloud disk application or the website of the cloud disk application, or the applet of the cloud disk application through a client, and the user can select an original picture stored locally in the cloud disk application, can input an upload operation for the original picture, and the client uploads the original picture to the server in response to the upload operation. In this way, the server can store the original picture, and the server can also determine a reference picture virtual mapping address according to the original picture. Specifically, the server can perform picture conversion processing on the original picture to obtain a converted picture, and perform virtual address mapping processing on the converted picture to obtain the reference picture virtual mapping address. For the implementation of the server to obtain the reference picture virtual mapping address, please refer to the description of S301 and S302 in the embodiment shown in Figure 3
[0144] S502, a picture preview request in the cloud storage scenario is obtained, and the picture preview request is sent to the server, so that the server determines a picture virtual mapping address based on the picture preview request.
[0145] For example, when a user accesses the software of the cloud disk application or the website of the cloud disk application or the applet of the cloud disk application through a client, the user inputs a picture preview operation in the cloud disk application, triggering the client to generate a picture preview request. The client sends the picture preview request to the server corresponding to the cloud disk application, so that the server determines a picture virtual mapping address based on the picture preview request.
[0146] It can be understood that the picture preview request can be a preview request triggered by the client based on a high-definition preview operation input by the user in the cloud disk application, the picture preview request can also be a preview request triggered by the client based on a thumbnail preview operation input by the user in the cloud disk application, and the picture preview request can also be a preview request triggered by the client based on a grid preview operation input by the user in the cloud disk application.
[0147] S503, receiving the picture virtual mapping address sent by the server.
[0148] In some embodiments, the number of picture virtual mapping addresses sent by the server can be one or more. When the picture preview request sent by the client is a preview request for multiple pictures, the number of picture virtual mapping addresses received by the client is also multiple, one picture virtual mapping address corresponds to one picture, and in this case, each picture virtual mapping address can correspond to a picture identifier, which can be used by the client to identify that the picture virtual mapping address corresponds to the picture indicated by the picture identifier.
[0149] When the picture preview request sent by the client is a preview request for one picture, the picture virtual mapping address received by the client is the picture virtual mapping address corresponding to the picture.
[0150] S504, determining a target picture based on the picture virtual mapping address, and performing preview display based on the target picture.
[0151] In some embodiments, after the client sends the picture preview request to the server, the client can receive the picture virtual mapping address returned by the server based on the picture preview request. The client can obtain picture resources according to the picture virtual mapping address, load and render a target picture according to the picture resources, and output the target picture to perform preview display in response to the picture preview request.
[0152] It can be understood that the storage capacity of the picture resources obtained by the client according to the picture virtual mapping address is smaller than the storage capacity of the original picture, because the picture resources obtained through the picture virtual mapping address are picture resources of a converted picture obtained by the server by performing picture conversion processing on the original picture. The server performs conversion processing on the original picture by using strategies such as format conversion, compression, and cropping, so that the server can reduce the storage capacity of the picture while ensuring no loss of quality.
[0153] When the picture preview request is a preview request triggered by the client generated by the user inputting a high-definition preview operation in the cloud disk application, the client performs preview display based on the target picture, that is, the client displays the target picture according to the picture resource with high definition to realize high-definition preview display.
[0154] When the picture preview request is a preview request triggered by the client generated by the user inputting a thumbnail preview operation in the cloud disk application, the client performs preview display based on the target picture, that is, the client displays the thumbnail corresponding to the cloud picture according to the picture resource to realize thumbnail preview display.
[0155] When the picture preview request is a preview request triggered by the client generated by the user inputting a mosaic preview operation in the cloud disk application, the client performs preview display based on the target picture, that is, the client displays the mosaic display picture corresponding to the cloud picture according to the picture resource to realize mosaic preview display.
[0156] The picture preview display method provided by the embodiment of the application can meet the preview requirements of different preview modes through the picture resources obtained by the client through the picture virtual mapping address sent by the server, and the storage capacity of the picture resources is smaller than that of the original picture, so that the client improves the picture preview display speed by loading the picture resources with smaller capacity without distortion.
[0157] The picture preview display method provided by the embodiment of the application can meet the preview requirements of different preview modes through the picture resources obtained by the client through the picture virtual mapping address sent by the server, and the storage capacity of the picture resources is smaller than that of the original picture, so that the client improves the picture preview display speed by loading the picture resources with smaller capacity without distortion. Figure 6 The picture preview device provided by the embodiment of the application will be described in detail. It should be noted that, Figure 6 The picture preview device shown in the figure is used to execute the picture preview method provided by the embodiment of the application. Figures 1-3 The method of the embodiment shown is only used to show the part related to the embodiment of the application for the convenience of description, and the specific technical details not disclosed are described with reference to the method of the embodiment shown. Figures 1-3 The embodiment shown.
[0158] Please refer to Figure 6 which shows the structure diagram of the picture preview device of the embodiment of the application. The picture preview device 1 can be realized by software, hardware or a combination of the two to become all or part of the device. According to some embodiments, the picture preview device 1 includes an address determination module 11 and an address sending module 12, which are specifically used for:
[0159] The address determination module 11 is used to receive the picture preview request sent by the client in the cloud storage scene, and determine the picture virtual mapping address based on the picture preview request;
[0160] The address sending module 12 is used to send the picture virtual mapping address to the client, so that the client determines the target picture based on the picture virtual mapping address and performs preview display based on the target picture.
[0161] Optionally, the address determining module 11 comprises:
[0162] a request parsing unit, configured to perform preview type parsing processing based on the picture preview request to obtain a target preview type;
[0163] an address determining unit, configured to determine a picture virtual mapping address corresponding to the picture preview request based on the target preview type.
[0164] Optionally, the address determining unit is specifically configured to:
[0165] obtain a picture virtual address data table based on the target preview type;
[0166] determine a picture preview range indicated by the picture preview request, and query a picture virtual mapping address corresponding to the picture preview range based on the picture virtual address data table.
[0167] Optionally, the picture preview device 1 further comprises:
[0168] a picture conversion module, configured to obtain an original picture uploaded by a client for a cloud storage scenario, and perform picture conversion processing on the original picture to obtain a converted picture;
[0169] an address mapping module, configured to perform virtual address mapping processing on the converted picture to obtain a reference picture virtual mapping address.
[0170] Optionally, the picture conversion module comprises:
[0171] a first conversion unit, configured to obtain a picture preview configuration mode corresponding to the client;
[0172] a second conversion unit, configured to perform picture conversion processing on the original picture based on the picture preview configuration mode to obtain a converted picture.
[0173] Optionally, the second conversion unit is specifically configured to:
[0174] determine a picture conversion strategy for the client based on the picture preview configuration mode;
[0175] perform picture conversion processing on the original picture by using the picture conversion strategy to obtain a converted picture.
[0176] Optionally, the address mapping module comprises:
[0177] a first mapping unit, configured to determine an actual cloud storage address of the converted picture;
[0178] A second mapping unit is configured to perform virtual address mapping processing based on the actual cloud storage address to obtain a reference picture virtual mapping address.
[0179] Optionally, the address mapping module further comprises:
[0180] An expiration configuration unit is configured to configure an address valid time length for the reference picture virtual mapping address.
[0181] An address updating unit is configured to perform address updating processing on the reference picture virtual mapping address based on the actual cloud storage address to obtain an updated reference picture virtual mapping address corresponding to the actual cloud storage address when it is monitored that a current valid time length of the reference picture virtual mapping address is greater than the address valid time length.
[0182] The specific implementation of the picture preview device will be described below in conjunction with Figure 7 The picture preview device provided by the embodiments of the present application will be described in detail. It should be noted that, Figure 7 The picture preview device shown in the drawings is configured to execute the method of the embodiments of the present application. Figures 4-5 The method of the embodiments shown in the drawings, for the convenience of description, only shows the parts related to the embodiments of the present application, and the specific technical details not disclosed, please refer to the embodiments shown in the drawings of the present application. Figures 4-5 The embodiments shown in the drawings.
[0183] Please refer to Figure 7 , which shows a structural schematic diagram of the picture preview device according to the embodiments of the present application. The picture preview device 2 can be realized by software, hardware or a combination of the two to become all or part of the device. According to some embodiments, the picture preview device 2 comprises a request sending module 21 and a picture preview module 22, which are specifically configured to:
[0184] The request sending module 21 is configured to obtain a picture preview request in a cloud storage scenario, and send the picture preview request to a server, so that the server determines a picture virtual mapping address based on the picture preview request.
[0185] The picture preview module 22 is configured to receive the picture virtual mapping address sent by the server, determine a target picture based on the picture virtual mapping address, and perform preview display based on the target picture.
[0186] Optionally, the picture preview device 2 is further configured to:
[0187] Obtain an original picture selected from the local for the cloud storage scenario, and upload the original picture to the server, so that the server determines a reference picture virtual mapping address based on the original picture.
[0188] Please refer to Figure 8 , Figure 8A structural schematic diagram of an electronic device is provided for an embodiment of the present application. Illustratively, the electronic device in the embodiment of the present application can be specifically a server, and the electronic device can include one or more of the following components: a processor 110, a memory 120, an input device 130, an output device 140, and a bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 can be connected through the bus 150.
[0189] The processor 110 can include one or more processing cores. The processor 110 connects various parts within the entire electronic device by using various interfaces and lines, executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Alternatively, the processor 110 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 110 can be integrated with a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU is mainly used to process an operating system, a user interface, and an application program; the GPU is used to be responsible for rendering and drawing of display content; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 110, but be implemented by a separate communication chip.
[0190] The memory 120 can include a random access memory (RAM) and can also include a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the following method embodiments, etc. The operating system can be an Android system, an IOS system developed by Apple Inc., a system developed based on the Android system, a system developed based on the IOS system, or other systems.
[0191] In order to enable the operating system to distinguish the specific application scenarios of the third-party application, it is necessary to open up the data communication between the third-party application and the operating system, so that the operating system can obtain the current scenario information of the third-party application at any time, and then perform targeted system resource adaptation based on the current scenario.
[0192] The input device 130 is configured to receive input instructions or data, and the input device 130 includes but is not limited to a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is configured to output instructions or data, and the output device 140 includes but is not limited to a display device and a speaker. In one example, the input device 130 and the output device 140 can be combined, and the input device 130 and the output device 140 are a touch display screen.
[0193] The touch display screen can be designed as a full screen, a curved screen, or a special-shaped screen. The touch display screen can also be designed as a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, and the present application does not limit this.
[0194] In addition, those skilled in the art can understand that the structure of the electronic device shown in the above-described drawings does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than those shown in the drawings, or combine certain components, or different component arrangements. For example, the electronic device also includes radio frequency circuitry, an input unit, a sensor, audio circuitry, a wireless fidelity (WiFi) module, a power supply, a Bluetooth module, and other components, which are not described here.
[0195] In Figure 8The electronic device shown, the processor 110 can be used to call the picture preview method stored in the memory 120 program, and specifically execute the following operations:
[0196] Receiving a picture preview request sent by a client in a cloud storage scenario, determining a picture virtual mapping address based on the picture preview request;
[0197] Send the picture virtual mapping address to the client, so that the client determines the target picture based on the picture virtual mapping address and displays the preview based on the target picture.
[0198] In one embodiment, the processor 110 specifically executes the following operations when executing the step of determining the picture virtual mapping address based on the picture preview request:
[0199] Based on the picture preview request, the target preview type is obtained through preview type analysis processing;
[0200] Determine the picture virtual mapping address corresponding to the picture preview request based on the target preview type.
[0201] In one embodiment, the processor 110 specifically executes the following operations when executing the step of determining the picture virtual mapping address corresponding to the picture preview request based on the target preview type:
[0202] Based on the target preview type, obtain the picture virtual address data table;
[0203] Determine the picture preview range indicated by the picture preview request, and query the picture virtual mapping address corresponding to the picture preview range based on the picture virtual address data table.
[0204] In one embodiment, the processor 110 further executes the following operations:
[0205] Obtain the original picture uploaded by the client for the cloud storage scenario, and perform picture conversion processing on the original picture to obtain a converted picture;
[0206] Perform virtual address mapping processing on the converted picture to obtain a reference picture virtual mapping address.
[0207] In one embodiment, the processor 110 specifically executes the following operations when executing the step of performing picture conversion processing on the original picture to obtain a converted picture:
[0208] Obtain the picture preview configuration mode corresponding to the client;
[0209] Based on the picture preview configuration mode, the original picture is processed to obtain a converted picture.
[0210] In an embodiment, the processor 110, when performing the picture conversion processing on the original picture based on the picture preview configuration mode to obtain a converted picture, specifically performs the following operations:
[0211] determining a picture conversion strategy for the client based on the picture preview configuration mode;
[0212] performing picture conversion processing on the original picture based on the picture conversion strategy to obtain a converted picture.
[0213] In an embodiment, the processor 110, when performing the virtual address mapping processing on the converted picture to obtain a reference picture virtual mapping address, specifically performs the following operations:
[0214] determining an actual cloud storage address of the converted picture;
[0215] performing virtual address mapping processing based on the actual cloud storage address to obtain a reference picture virtual mapping address.
[0216] In an embodiment, the processor 110 further performs the following operations:
[0217] configuring an address validity duration for the reference picture virtual mapping address;
[0218] when it is monitored that the current validity duration of the reference picture virtual mapping address is greater than the address validity duration, performing address update processing on the reference picture virtual mapping address based on the actual cloud storage address to obtain an updated reference picture virtual mapping address corresponding to the actual cloud storage address.
[0219] Please refer to Figure 9 , Figure 9 A structural schematic diagram of an electronic device provided by an embodiment of the present application. For example, the electronic device in the embodiment of the present application can be a client, such as Figure 9 As shown in FIG. 9, the electronic device 900 can include at least one processor 901, at least one network interface 904, a user interface 903, a memory 905, and at least one communication bus 902.
[0220] The communication bus 902 is used to realize the connection and communication between the components.
[0221] The user interface 903 can include a display screen (Display), a camera (Camera), and optionally a standard wired interface and a wireless interface.
[0222] The network interface 904 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
[0223] The processor 901 can include one or more processing cores. The processor 901 connects various parts within the entire electronic device 900 through various interfaces and lines, and performs various functions of the electronic device 900 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 905, and calling data stored in the memory 905. The processor 901 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 901 can be integrated with one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU is mainly responsible for processing an operating system, a user interface, and an application program. The GPU is responsible for rendering and drawing content to be displayed on a display screen. The modem is responsible for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 901, but can be implemented by a separate chip.
[0224] The memory 905 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 905 can include a non-transitory computer-readable storage medium. The memory 905 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 905 can include a program storage area and a data storage area. The program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 905 can also be at least one storage device located away from the above-mentioned processor 901. As shown, the memory 905 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a program of the picture preview method. Figure 9 As shown, the memory 905 as a computer storage medium can include an operating system, a network communication module, a user interface module, and a program of the picture preview method.
[0225] In Figure 9 In the electronic device 900 shown, the user interface 903 is mainly used to provide an interface for user input, and obtain data input by the user; and the processor 901 can be used to call a program of a picture preview method stored in the memory 905, and specifically perform the following operations:
[0226] obtain a picture preview request in a cloud storage scenario, and send the picture preview request to a server, so that the server determines a picture virtual mapping address based on the picture preview request;
[0227] receive the picture virtual mapping address sent by the server, determine a target picture based on the picture virtual mapping address, and perform preview display based on the target picture.
[0228] In one embodiment, the processor 901 further performs the following operations:
[0229] obtain an original picture selected from the local for a cloud storage scenario, and upload the original picture to the server, so that the server determines a reference picture virtual mapping address based on the original picture.
[0230] The embodiments of the present application also provide a computer readable storage medium, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the picture preview method according to the above various embodiments.
[0231] The embodiments of the present application also provide a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the picture preview method according to the above various embodiments.
[0232] Those skilled in the art should be aware that, in one or more examples described above, the functions described in the embodiments of the present application can be implemented in hardware, software, firmware or any combination thereof. When implemented in software, these functions can be stored in a computer readable medium or transmitted as one or more instructions or codes on a computer readable medium. The computer readable medium includes computer storage medium and communication medium, wherein the communication medium includes any medium that facilitates the transfer of computer programs from one place to another. The storage medium can be any available medium accessible by a general or special purpose computer.
[0233] The above description is only optional embodiments of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A picture preview method, characterized by, The method comprises: receiving a picture preview request sent by a client in a cloud storage scenario, determining a picture virtual mapping address based on the picture preview request; sending the picture virtual mapping address to the client, so that the client determines a target picture based on the picture virtual mapping address and performs preview display based on the target picture.
2. The method of claim 1, wherein, The determination of the picture virtual mapping address based on the picture preview request comprises: performing preview type analysis processing based on the picture preview request to obtain a target preview type; determining a picture virtual mapping address corresponding to the picture preview request based on the target preview type.
3. The method of claim 2, wherein, The determination of the picture virtual mapping address corresponding to the picture preview request based on the target preview type comprises: obtaining a picture virtual address data table based on the target preview type; determining a picture preview range indicated by the picture preview request, and querying a picture virtual mapping address corresponding to the picture preview range based on the picture virtual address data table.
4. The method of claim 1, wherein, The method further comprises: obtaining an original picture uploaded by a client in a cloud storage scenario, and performing picture conversion processing on the original picture to obtain a converted picture; performing virtual address mapping processing on the converted picture to obtain a reference picture virtual mapping address.
5. The method of claim 4, wherein, The picture conversion processing on the original picture to obtain a converted picture comprises: obtaining a picture preview configuration mode corresponding to the client; performing picture conversion processing on the original picture based on the picture preview configuration mode to obtain a converted picture.
6. A picture preview method, characterized by, The method comprises: obtaining a picture preview request in a cloud storage scenario, sending the picture preview request to a server, so that the server determines a picture virtual mapping address based on the picture preview request; receiving the picture virtual mapping address sent by the server, determining a target picture based on the picture virtual mapping address, and performing preview display based on the target picture.
7. A picture preview apparatus characterized by comprising: The device comprises: an address determination module configured to receive a picture preview request sent by a client in a cloud storage scenario, and determine a picture virtual mapping address based on the picture preview request; an address sending module configured to send the picture virtual mapping address to the client, so that the client determines a target picture based on the picture virtual mapping address and performs preview display based on the target picture.
8. An image preview apparatus characterized by comprising: The device comprises: a request sending module configured to obtain a picture preview request in a cloud storage scenario, and send the picture preview request to a server, so that the server determines a picture virtual mapping address based on the picture preview request; a picture preview module configured to receive the picture virtual mapping address sent by the server, determine a target picture based on the picture virtual mapping address, and perform preview display based on the target picture.
9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded and executed by a processor to implement the method of any one of claims 1-5 or 6.
10. An electronic device, comprising: comprises: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded and executed by the processor to implement the method of any one of claims 1-5 or 6.