Picture processing method and device
By sending a product page access request to the server and obtaining client information, it determines the display risk and provides image decryption information to control the display and dissemination of merchants' self-created images, which solves the problem that self-created images on e-commerce platforms cannot be effectively controlled. Copyright protection is achieved.
Patent Information
- Application Number
- CN202410628230.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-10
AI Technical Summary
The display and dissemination of images created by merchants on e-commerce platforms cannot be effectively controlled. Users can repeatedly access or download images for repeated analysis and dissemination, infringing on the copyright of the image creator.
By sending a product page access request to the server, the client information and self-created image identification are obtained, and the client is judged whether there is a display risk. If there is no risk, the image decryption information is provided, the graphic file of the controllable graphic object is obtained, and the decrypted image is used as Background image to prevent downloading and dissemination.
It effectively controls the display and dissemination of images created by merchants, prevents users from downloading or publishing them to other stores, and protects the copyright of image creators.
Smart Images

Figure CN118627089A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and specifically to image processing methods, devices and systems, and electronic devices. Background Art
[0002] When merchants on e-commerce platforms publish the products they sell, they often use product images that they created themselves. Merchant users hope that the e-commerce platforms can protect the copyright of their self-created images.
[0003] At present, a typical way to protect the copyright of merchant-created pictures is to store the encrypted files of merchant-created pictures on the server side. When the server side displays the merchant-created pictures to other users, it first decrypts the encrypted files of the merchant-created pictures and then displays the decrypted product pictures themselves. This processing method can prevent users from using automated tools to easily download merchant-created pictures in batches, and can protect the copyright of merchant-created pictures to a certain extent.
[0004] However, the inventors have discovered at least the following problems in the process of implementing this application: 1) Users can visit the product page multiple times and frequently view the merchant's self-created pictures on the page, or download the merchant's self-created pictures on the product page to the local computer, and repeatedly analyze the merchant's self-created pictures without the permission of the picture creator, while the picture creator has no way of knowing the display of the self-created pictures and has no control over the display of the self-created pictures, thereby infringing the legitimate rights and interests of the picture creator; 2) Users can directly publish the downloaded merchant's self-created pictures to similar products sold in their own stores, while the picture creator has no way of knowing the dissemination of the self-created pictures and has no control over the dissemination of the self-created pictures, thereby infringing the legitimate rights and interests of the picture creator. Summary of the invention
[0005] The present application provides a method, device and system for processing pictures to solve the problem in the prior art that creators cannot control the display and dissemination of their self-created pictures. The present application also provides a picture processing device and an electronic device.
[0006] This application provides a method for processing an image, including:
[0007] Send a product page access request to the server;
[0008] For the product page provided by the server, obtaining the client information and the self-created picture logo in the product page through the first script included in the product page;
[0009] According to the self-created picture identifier and the client information, a request for obtaining picture decryption information is sent to the server, so that the server determines whether the client has a risk of displaying the self-created picture according to the client information; if the client does not have a risk of displaying the self-created picture, the server provides the client with picture decryption information corresponding to the self-created picture identifier;
[0010] Decrypting the encrypted image of the self-created image according to the image decryption information provided by the server;
[0011] Acquire a graphic file of a controllable graphic object corresponding to the self-created picture;
[0012] The decrypted image of the self-created image is used as the background image of the page image element corresponding to the self-created image, and the graphic file is used as the foreground image of the page image element.
[0013] Optionally, obtaining the self-created image logo in the product page through a first script included in the product page includes:
[0014] Get the image address of the image element on the page;
[0015] If the picture address meets the self-created picture address rule, the self-created picture identifier is obtained from the picture address.
[0016] Optionally, the step of obtaining a graphic file of a controllable graphic object corresponding to the self-created picture includes:
[0017] Obtaining, through the first script, a graphic file template capable of controlling a graphic object, wherein the graphic file template includes an encrypted picture address template of a self-created picture;
[0018] Filling the self-created picture identifier into the encrypted picture address template;
[0019] The graphic file template after filling in the self-created picture mark is used as the graphic file.
[0020] Optionally, also include:
[0021] Downloading the graphic file;
[0022] If the client opens the downloaded graphic file, the client information and the self-created picture logo in the graphic file are obtained through the second script included in the graphic file;
[0023] Sending a request for obtaining image decryption information to the server according to the self-created image identifier and the client information;
[0024] The encrypted image in the graphic file is decrypted according to the image decryption information provided by the server.
[0025] Optionally, the self-created picture is a self-created picture of a product in the first store;
[0026] The method further comprises:
[0027] A request for publishing a picture of the same product in a second store is sent to the server, wherein the request for publishing the picture includes the self-created graphic identifier, so that if the server determines that the second store is an authorized store of the first store, the self-created graphic is used as the picture of the same product; information on the use of the self-created picture by the second store is recorded, and the use information is provided to the first store.
[0028] Optionally, the graphic file includes a second script; the second script is used to obtain client information and a self-created picture identifier in the graphic file; based on the self-created picture identifier and the client information, a request for obtaining picture decryption information is sent to the server; based on the picture decryption information provided by the server, the encrypted picture in the graphic file is decrypted.
[0029] The present application also provides a method for processing an image, including:
[0030] Receive product page access requests sent by clients;
[0031] Providing a product page to the client, so that the client obtains client information and a self-created picture logo in the product page through a first script included in the product page;
[0032] Receiving a request for obtaining picture decryption information sent by the client, wherein the request for obtaining picture decryption information includes the client information and the self-created picture identifier;
[0033] Based on the client information, determine whether the client faces a risk of displaying a self-created picture; if the client faces no risk of displaying a self-created picture, provide the client with picture decryption information corresponding to the self-created picture identifier, so that the client decrypts the encrypted picture of the self-created picture based on the picture decryption information; obtain a graphic file of a controllable graphic object corresponding to the self-created picture; use the decrypted picture of the self-created picture as a background picture of a page picture element corresponding to the self-created picture, and use the graphic file as a foreground picture of the page picture element.
[0034] Optionally, also include:
[0035] Recording the first number of times the client obtains the image decryption information;
[0036] The determining, based on the client information, whether the client has a risk of displaying self-created pictures includes:
[0037] According to the first number, it is determined whether the client has a risk of displaying self-created pictures.
[0038] Optionally, the client information includes client environment information;
[0039] The determining, based on the client information, whether the client has a risk of displaying self-created pictures includes:
[0040] If the client environment is an automatic download tool, it is determined that the client has a risk of displaying self-created pictures.
[0041] Optionally, also include:
[0042] Recording the second number of times the client user obtains the image decryption information;
[0043] The determining, based on the client information, whether the client has a risk of displaying self-created pictures includes:
[0044] According to the second number, it is determined whether the client has a risk of displaying self-created pictures.
[0045] Optionally, also include:
[0046] If the client has no right to view the self-created picture, an alarm message indicating that the client has illegally used the self-created picture is provided to the first store to which the self-created picture belongs.
[0047] Optionally, also include:
[0048] receiving a picture publishing request for the same product in a second store sent by the client, wherein the picture publishing request includes the self-created graphic logo;
[0049] If the second store is an authorized store of the first store to which the self-created picture belongs, then the use information of the self-created picture by the second store is recorded;
[0050] The usage information is provided to the first store.
[0051] Optionally, also include:
[0052] A request is received from the first store to authorize the self-created image to the second store.
[0053] The present application also provides a method for processing an image, and the present application also provides the following:
[0054] The client opens the graphic file of the controllable graphic object corresponding to the self-created picture;
[0055] Obtaining client information and a self-created picture identifier in the graphic file through a second script included in the graphic file;
[0056] According to the self-created picture identifier and the client information, a request for obtaining self-created picture decryption information is sent to the server, so that the server determines whether the client has the right to view the self-created picture according to the client information; if the client has the right to view the self-created picture, the self-created picture decryption information corresponding to the self-created picture identifier is provided to the client;
[0057] The encrypted image in the graphic file is decrypted according to the self-created image decryption information provided by the server.
[0058] The present application also provides a method for processing an image, including:
[0059] receiving a request for obtaining picture decryption information sent by a second script included in a graphic file when a client opens a graphic file of a controllable graphic object corresponding to a self-created picture, wherein the request for obtaining picture decryption information includes client information and a self-created picture identifier obtained by the client through the second script;
[0060] Based on the client information, determine whether the client has the right to view the self-created picture; if the client has the right to view the self-created picture, provide the client with picture decryption information corresponding to the self-created picture identifier, so that the client can decrypt the encrypted picture of the self-created picture according to the picture decryption information.
[0061] The present application also provides an image processing device, comprising:
[0062] A first request sending unit, used to send a product page access request to the server;
[0063] An information acquisition unit, configured to acquire client information and a self-created image identifier in a product page provided by the server through a first script included in the product page;
[0064] A second request sending unit is used to send a request for obtaining image decryption information to the server according to the self-created image identifier and the client information, so that the server determines whether the client has a risk of displaying the self-created image according to the client information; if the client does not have a risk of displaying the self-created image, the server provides the client with image decryption information corresponding to the self-created image identifier;
[0065] A picture decryption unit, used to decrypt the encrypted picture of the self-created picture according to the picture decryption information provided by the server;
[0066] A graphic file acquisition unit, used to acquire a graphic file of a controllable graphic object corresponding to the self-created picture;
[0067] The page element setting unit is used to use the decrypted image of the self-created image as the background image of the page image element corresponding to the self-created image, and use the graphic file as the foreground image of the page image element.
[0068] The present application also provides an image processing device, comprising:
[0069] A first request receiving unit, configured to receive a product page access request sent by a client;
[0070] A product page providing unit, configured to provide a product page to the client, so that the client obtains client information and a self-created image identifier in the product page through a first script included in the product page;
[0071] A second request receiving unit, configured to receive a self-created picture decryption information acquisition request sent by the client, wherein the picture decryption information acquisition request includes the client information and the self-created picture identifier;
[0072] A judging unit, configured to judge whether the client has a risk of displaying self-created pictures according to the client information;
[0073] A decryption information providing unit is used to provide the client with picture decryption information corresponding to the self-created picture identifier if there is no risk of display of the self-created picture on the client, so that the client can decrypt the encrypted picture of the self-created picture according to the picture decryption information; obtain a graphic file of a controllable graphic object corresponding to the self-created picture; use the decrypted picture of the self-created picture as the background picture of the page picture element corresponding to the self-created picture, and use the graphic file as the foreground picture of the page picture element.
[0074] The present application also provides an image processing system, comprising: any one of the above-mentioned image processing devices for a client; and any one of the above-mentioned image processing devices for a server.
[0075] The present application also provides an electronic device, comprising: a processor; and a memory for storing a program for implementing the image processing method according to any one of the above items, the device is powered on and runs the program of the method through the processor.
[0076] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned various methods.
[0077] The present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the above-mentioned various methods.
[0078] Compared with the prior art, this application has the following advantages:
[0079] The image processing method provided in the embodiment of the present application includes sending a product page access request to a server; for the product page provided by the server, obtaining client information and a self-created image identifier in the product page through a first script included in the product page; sending a self-created image decryption information acquisition request to the server according to the self-created image identifier and the client information, so that the server determines whether the client has the right to view the self-created image according to the client information; if the client has the right to view the self-created image, providing the client with the self-created image decryption information corresponding to the self-created image identifier; decrypting the encrypted image of the self-created image according to the self-created image decryption information provided by the server; obtaining a graphic file of a controllable graphic object corresponding to the self-created image; using the decrypted image of the self-created image as the background image of the page image element corresponding to the self-created image, and using the graphic file as the foreground image of the page image element. By adopting this processing method, it is possible to control the display and viewing of merchant's self-created pictures by the client, prevent users from downloading the original pictures of the merchant's self-created pictures to their local computers, and control the dissemination of the original pictures of the merchant's self-created pictures, such as preventing users from posting the original pictures of the merchant's self-created pictures to similar products sold in their own stores; therefore, it is possible to effectively control the dissemination and display of self-created pictures, thereby protecting the copyright of self-created pictures.
[0080] The image processing method provided in the embodiment of the present application receives a product page access request sent by a client; provides a product page to the client, so that the client obtains client information and a self-created image identifier in the product page through a first script included in the product page; receives a picture decryption information acquisition request sent by the client, the picture decryption information acquisition request includes the client information and the self-created image identifier; determines whether the client has a risk of displaying a self-created image based on the client information; if the client does not have a risk of displaying a self-created image, provides the client with picture decryption information corresponding to the self-created image identifier, so that the client decrypts the encrypted picture of the self-created image based on the picture decryption information; obtains a graphic file of a controllable graphic object corresponding to the self-created image; uses the decrypted picture of the self-created picture as the background picture of the page picture element corresponding to the self-created picture, and uses the graphic file as the foreground picture of the page picture element. By adopting this processing method, it is possible to control the display and viewing of merchant's self-created pictures by the client, prevent users from downloading the original pictures of the merchant's self-created pictures to their local computers, and control the dissemination of the original pictures of the merchant's self-created pictures, such as preventing users from posting the original pictures of the merchant's self-created pictures to similar products sold in their own stores; therefore, it is possible to effectively control the dissemination and display of self-created pictures, thereby protecting the copyright of self-created pictures. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for processing an image provided by the present application;
[0082] Figure 2 A schematic diagram of a specific process of an embodiment of the image processing method provided by the present application;
[0083] Figure 3 A schematic diagram of a scene of an embodiment of the image processing method provided by the present application;
[0084] Figure 4 A schematic diagram of a flow chart of an embodiment of a method for processing images provided in the present application. DETAILED DESCRIPTION
[0085] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0086] In the present application, a method, device and system for image processing, and an electronic device are provided. In the following, various solutions are described in detail one by one in each embodiment.
[0087] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).
[0088] First embodiment
[0089] Please refer to Figure 1 , which is a flow chart of the image processing method of the present application. In this embodiment, the method may include the following steps:
[0090] Step S101: Send a product page access request to the server.
[0091] Product pages refer to pages whose content includes product information, including but not limited to: product details page, product recommendation page, etc. The product details page includes various information about a product, such as product name, price, origin, product image, etc. The product recommendation page may include multiple products, each of which may occupy a resource slot, and each resource slot may display a corresponding product image.
[0092] The execution subject of the method provided in the embodiment of the present application is a client, and the client can be a personal computer, a server, an intelligent communication device, etc. The server can be a server of an e-commerce platform, or other server that can provide a product page. The client sends a product page access request to the server, and the request may include a page identifier, a product identifier, and / or a page link address. The server responds to the request, obtains the corresponding product page, and returns the product page to the client.
[0093] The product page may include self-created pictures and non-self-created pictures. In order to protect the copyright of the merchant to the self-created pictures, the method provided in the embodiment of the present application does not quote the self-created pictures themselves in the product page, but the encrypted pictures of the self-created pictures. For non-self-created pictures, the non-self-created pictures themselves are directly quoted in the product page. In this embodiment, the product page also includes a first script for controlling the dissemination and display of the self-created pictures.
[0094] Step S103: For the product page provided by the server, obtain the client information and the self-created picture logo in the product page through the first script included in the product page.
[0095] After the client receives the product page provided by the server, the first script in the product page starts to run, and the script obtains the self-created picture logo and client information included in the product page.
[0096] In one example, obtaining the self-created picture identifier can be implemented in the following manner: obtaining the picture address of the picture element in the product page; if the picture address meets the self-created picture address rule, obtaining the self-created picture identifier from the picture address. In this case, the picture address is determined according to the self-created picture address rule. During specific implementation, the self-created picture address rule can be determined according to application requirements. For example, the self-created picture address rule is that the picture address has the prefix ZC-, then the picture address ZC-01 indicates that the picture is a self-created picture, the picture address 02 indicates that the picture is not a self-created picture, and the picture address ZC-03 indicates that the picture is a self-created picture. The self-created picture address rule can also be that the picture address has the suffix -ZC, and so on.
[0097] In HTML pages, product pages usually include image elements with Tags, etc. According to the image element tag, the image address in the product page is obtained; for each image element, if the image address meets the self-created image address rule, it is determined that the image element corresponds to a self-created image, and the image identifier of the self-created image is extracted from the image address. For example, the prefix ZC- of the image address indicates that the image is a self-created image, the image address ZC-01 indicates that the image is a self-created image, and the image identifier extracted from the address is 01; the image address ZC-abc indicates that the image is a self-created image, and the image identifier extracted from the address is abc.
[0098] In another example, the picture element in the product page includes an attribute of whether it is a self-created picture. The first script identifies the self-created picture according to the attribute and obtains the picture identifier of the self-created picture from the picture address.
[0099] After the first script of the product page starts running, it will not only obtain the self-created image logo, but also obtain the client information. The client information includes but is not limited to at least one of the following information: client IP address, client user ID, client environment information, etc. In this embodiment, the client can be a browser, and the corresponding client environment can be a browser environment, and the browser environment can be an automatic download tool or a non-automatic download tool. Automatic download tools include but are not limited to: web crawlers, automated browser tools that simulate user behavior, etc. Various client information can be obtained as needed through the first script of the product page.
[0100] Step S105: sending a request for obtaining picture decryption information to the server according to the self-created picture identifier and the client information.
[0101] In this embodiment, the product page refers to the encrypted image of the self-created image, that is, the address of the image element corresponding to the self-created image is the encrypted image address. In order to display the self-created image itself, the encrypted image needs to be decrypted. The client sends a request to obtain image decryption information to the server to obtain the image decryption information provided by the server.
[0102] The request for obtaining image decryption information includes the client information and the self-created image identifier. The server determines whether the client has a risk of displaying self-created images based on the client information. If it is determined that the client has a risk of displaying self-created images, it refuses to provide image decryption information. If it is determined that the client does not have a risk of displaying self-created images, it queries the decryption information corresponding to the self-created image based on the self-created image identifier and provides it to the client.
[0103] In specific implementation, if the encrypted image is obtained by encrypting the pixels of a self-created image through a cryptographic encryption algorithm, the image decryption information may include the cryptographic encryption algorithm identifier and key, and the client decrypts the encrypted image according to the encryption algorithm identifier and key.
[0104] In specific implementation, if the encrypted image is obtained by watermarking a self-created image using a reversible watermark encryption algorithm, the image decryption information may include a watermark encryption algorithm identifier and a key, and the client decrypts the encrypted image based on the watermark encryption algorithm identifier and the key.
[0105] The server determines whether there is a risk of displaying self-created images based on the client information. The server may use a variety of judgment methods, including but not limited to one or more of the following methods:
[0106] Method 1: The client information includes the client environment information; if the client environment is an automatic download tool, it is determined that the client has a risk of displaying self-created pictures. This processing method makes it impossible for the client to automatically obtain self-created pictures through the automatic download tool, thereby controlling the automatic download tool from obtaining self-created pictures.
[0107] Method 2: Record the first number of times the client obtains the image decryption information, that is, accumulate the number of times the client displays the self-created image; based on the first number, determine whether the client has a risk of displaying the self-created image. For example, if the first number is greater than the first number threshold, it is determined that the client has a risk of displaying the self-created image. This processing method is used to control the display of the self-created image by the client.
[0108] Method 3: Record the second number of times the client user obtains the image decryption information, that is, accumulate the number of times the client user views the self-created image; based on the second number, determine whether the client has a risk of displaying the self-created image. For example, if the first number is greater than the first number threshold, it is determined that the client has a risk of displaying the self-created image. This processing method allows the user to record the number of times the user views the self-created image no matter which client the user uses to view the self-created image, thereby controlling the user's viewing of the self-created image.
[0109] Method 4: If the client user is in a competitive relationship with the merchant of the self-created image, it is determined that there is a risk of displaying the self-created image. In this case, the competitive relationship between the users can be set in advance. With this processing method, it is possible to control the viewing of self-created images by competing users.
[0110] In this embodiment, the server stores the corresponding relationship between the self-created picture identifier and the self-created picture decryption information so as to query it when receiving a request to obtain the self-created picture decryption information. Table 1 below shows the self-created picture data table in this embodiment.
[0111]
[0112] Table 1. Self-created picture data table
[0113] As can be seen from Table 1, a merchant may include multiple product objects, each product object may correspond to one or more product images, the product image may be a self-created image or a non-self-created image, the product image has a label indicating whether it is a self-created image, the self-created image has decryption information, the decryption information includes an encryption algorithm and a key, each product image has an image identifier, and different self-created images may use different encryption algorithms and keys.
[0114] In this embodiment, the product image can be published to the file storage system of the server, and the file storage system includes the original image of the non-self-created image and the encrypted image of the self-created image. The file name of the encrypted image can be determined by the self-created image address rule. For example, "specific prefix" + self-created image identification, where the specific prefix indicates that the image is a secret image, and the self-created image identification is used to query the encryption algorithm and key information in Table 1.
[0115] Step S107: decrypt the encrypted image of the self-created image according to the self-created image decryption information provided by the server.
[0116] After receiving the image decryption information provided by the server, the client can load the corresponding decryption algorithm module, pass in the key and the encrypted image, and obtain the decrypted image of the self-created image, that is, the original image of the self-created image.
[0117] Step S109: Acquire a graphic file of a controllable graphic object corresponding to the self-created picture.
[0118] The graphic file of the controllable graphic object may embed a script (such as a JavaScript script or an ECMAScript script) to control the graphic object, that is, the graphic file of the controllable graphic object includes a graphic object control script and graphic object related information. The graphic file of the controllable graphic object may comply with XML syntax or HTML syntax, and use a descriptive language in a text format to describe the image content, so it may be a vector graphics format that is independent of the image resolution. The graphic file of the controllable graphic object may allow one or more of the following types of graphic objects: vector graphics, raster images (such as PNG, JPEG images), and picture addresses (such as picture link URLs).
[0119] In this embodiment, the graphic file of the controllable graphic object adopts a scalable vector graphics (SVG) file. SVG is a language for describing two-dimensional graphics. The descriptive language may comply with XML syntax. The graphic file of the controllable graphic object written in SVG language is called SVG file. In specific implementation, other forms of graphic files of the controllable graphic object may also be adopted, such as graphic files of the controllable graphic object using other two-dimensional graphic description languages other than SVG.
[0120] In this embodiment, the graphic object in the graphic file of the controllable graphic object is an encrypted picture of a self-created picture. The graphic object related information may include a self-created picture identifier and the encrypted picture itself. In this case, the graphic object type supported by the graphic file of the controllable graphic object is a raster image. The graphic object related information may also be the address of the encrypted picture, such as an encrypted picture address link URL. The encrypted picture address includes an encrypted picture name, and the encrypted picture name may be determined according to the self-created picture identifier and the self-created picture address rule. In this case, the graphic object type supported by the graphic file of the controllable graphic object is text, and the text is an encrypted picture address link URL.
[0121] In this embodiment, the graphic object control script in the graphic file that can control the graphic object is the second script, which is used to control the dissemination and display of the self-created picture. In specific implementation, the second script can perform the following processing: obtain the client information and the self-created picture identifier in the graphic file; send a picture decryption information acquisition request to the server according to the self-created picture identifier and the client information; decrypt the encrypted picture in the graphic file according to the picture decryption information provided by the server. The above processing performed by the second script corresponds to the above steps S103 to S107, and the same parts are not repeated. The difference between the second script and the first script includes: the first script obtains the self-created picture identifier from the product page, while the second script obtains the self-created picture identifier from the graphic file, such as extracting the self-created picture identifier from the encrypted picture address, or directly obtaining the self-created picture identifier from the graphic file. This processing method can not only control the display and viewing of the merchant's self-created pictures by the client, but also prevent users from downloading the merchant's self-created pictures to the local computer, and control the dissemination of the merchant's self-created pictures, such as preventing users from publishing the merchant's self-created pictures to similar products sold in their own stores.
[0122] In one example, obtaining a graphic file of a controllable graphic object corresponding to the self-created picture can be implemented in the following manner: obtaining a graphic file template of a controllable graphic object through the first script, the graphic file template including an encrypted picture address template of the self-created picture; filling the self-created picture identifier into the encrypted picture address template; and using the graphic file template after filling in the self-created picture identifier as the graphic file. By adopting this processing method, the graphic object related information in the graphic file includes the encrypted picture address, so that the size of the generated graphic file is small, which can effectively reduce the file parsing overhead.
[0123] In specific implementation, obtaining a graphic file of a controllable graphic object corresponding to the self-created picture can be achieved in the following manner: obtaining a graphic file template of a controllable graphic object through the first script; filling the self-created picture identifier and the encrypted picture of the self-created picture into the graphic file template; and using the graphic file template filled with the self-created picture identifier and the encrypted picture as the graphic file. By adopting this processing method, the graphic file directly includes the encrypted picture, rather than obtaining the encrypted picture through the encrypted picture address, which can effectively reduce network traffic overhead.
[0124] Step S111: using the decrypted image of the self-created image as the background image of the image element corresponding to the self-created image, and using the SVG image as the foreground image of the image element.
[0125] In this embodiment, the first script uses the decrypted image of the self-created image as the background image of the image element, and uses the graphic file as the foreground image of the image element. When the image element is used in the product page to reference the graphic file as the foreground image, the browser, for security design, only executes the first script of the product page when accessing the product page, and does not execute the second script of the graphic file. Since the second script in the graphic file cannot be executed when displayed in the product page, and the graphic file cannot reference external images, the graphic file is only used as a transparent placeholder for the picture element, and the decrypted image of the self-created picture is displayed through the background image of the picture element in the page. At this time, the user actually sees the background image of the picture element, that is, the decrypted image of the self-created picture. The image can be rendered by the CSS of the picture element, not the picture element. The picture element is just a transparent and content-free graphic file of a controllable graphic object, which is used for placeholder. When the user right-clicks on the self-created picture to save, what is downloaded to the local is the graphic file (such as an SVG file) of the controllable graphic object, so that the original picture of the self-created picture can be avoided from being downloaded to the user's local area, and the user can avoid using the original picture of the self-created picture at will. For example, it can prevent other business users from posting the original self-created pictures to their stores, thereby protecting the copyright of the self-created pictures to which the business users belong. Another example is to prevent users from repeatedly viewing and analyzing downloaded self-created pictures.
[0126] In a specific implementation, the decrypted image of the self-created image is used as the background image of the image element corresponding to the self-created image, which can be implemented in the following manner: the decrypted image in the memory is used to generate a uniform resource locator (URL) of a large object (BinaryLargeObject, Blub), referred to as Blub URL, as the background image of the image element corresponding to the self-created product image (i.e. In a specific implementation, the decrypted image in the memory can be placed in an ArrayBuffer, and the first script can export the memory area of the ArrayBuffer into a URL resource through the Blub API, so that the decrypted image can be used as the background image URL of the CSS.
[0127] In a specific implementation, the graphic file is used as the foreground image of the picture element, which can be realized in the following manner: the BlubURL of the graphic file generated in the memory is assigned to the src path of the picture element.
[0128] Please refer to Figure 2, which is a flow chart of the image processing method of the present application. In one example, the client downloads the graphic file of the controllable graphic object corresponding to the self-created image to the user's local computer; accordingly, the method provided in the embodiment of the present application may also include the following steps:
[0129] Step S201: if the client opens the downloaded graphic file, the client information and the self-created picture logo in the graphic file are obtained through the second script included in the graphic file.
[0130] Step S203: sending a request for obtaining picture decryption information to the server according to the self-created picture identifier and the client information.
[0131] Step S205: decrypting the encrypted image in the graphic file according to the image decryption information provided by the server.
[0132] When the user opens the locally stored graphic file separately through a browser, the second script in the graphic file can be executed normally. At this time, the script can execute steps S201 to S205 to display the original image of the self-created image. It should be noted that each time the client opens the graphic file, steps S201 and S203 will be executed. Step S205 can only be executed when the server determines that the client does not have the risk of displaying self-created pictures. After executing step S203, the server will determine whether the client has the risk of displaying self-created pictures based on the client information. The above-mentioned judgment method can be used specifically, which will not be repeated here.
[0133] In one example, the self-created picture is a self-created picture of a product under a first store; the method provided in the embodiment of the present application may also include the following steps: sending a picture publishing request for the same product under a second store to the server, the picture publishing request includes the self-created graphic logo, so that if the server determines that the second store is an authorized store of the first store, the self-created graphic will be used as the picture of the same product under the second store. The server may also use the above steps S101 to S111 to display the product page of the same product under the second store to the client. By adopting this processing method, the merchant of the first store to which the self-created picture belongs can authorize the self-created picture to other store merchants for use.
[0134] In specific implementation, the server can also record the usage information of the self-created picture by the second store, such as how many buyers in the second store have viewed the self-created picture, the number of times each buyer has viewed the self-created picture, etc., and provide the usage information to the first store. With this processing method, the merchant of the first store to which the self-created picture belongs can obtain the usage information of the self-created picture by the authorized merchants of other stores, so that the first store can control the dissemination and display of the self-created picture.
[0135] Please refer to Figure 3 , which is a schematic diagram of the application scenario of the image processing method of the present application. In specific implementation, the merchant publishes the original self-created image to the server; the client sends a product page access request to the server, which may include page identification, product identification, page link address, etc.; the server returns the product page to the client, and the client displays the product page through an online web page. The product page includes a first script and the URL of the secret image address of the self-created image. The address includes the secret image file name, which may be "specific prefix-self-created image identification"; the client obtains the self-created image identification (image id) and client information (such as browser information) in the product page through the first script, and sends a request to the server for obtaining image decryption information, which includes the self-created image identification and client information; the server evaluates the client information Whether the client has the risk of displaying the self-created picture. If not, the picture decryption information of the self-created picture is queried from the database, which may include the encryption algorithm and the key, and the picture decryption information is returned to the client; if it is determined that the client has the risk, the picture decryption information is not provided; the client obtains the corresponding decryption module from the CDN according to the algorithm, and through the decryption module, decrypts the encrypted picture (secret picture) according to the picture decryption information, and uses the decrypted picture as the background picture of the picture element of the self-created picture; the client generates a graphic file of a controllable graphic object corresponding to the self-created picture, and uses the file as the foreground picture of the picture element. The second script in the graphic file will not be executed. Therefore, the foreground picture is a transparent picture and is only used for picture download. After the user downloads a graphic file that can control graphic objects, and opens the local graphic file through the client, the second script in the graphic file will be executed. The second script will obtain the self-created image identifier and client information in the graphic file, and send a request for obtaining image decryption information to the server, which includes the self-created image identifier and client information; the server evaluates whether the client has a risk of displaying self-created images based on the client information. If there is no risk, the server queries the database for image decryption information of the self-created image, which may include encryption algorithm and key, and returns the image decryption information to the client; if it is determined that the client is at risk, the image decryption information is not provided; the client decrypts the encrypted image based on the image decryption information.
[0136] It can be seen from the above embodiments that the image processing method provided in the embodiments of the present application sends a product page access request to the server; for the product page provided by the server, obtains the client information and the self-created image identifier in the product page through the first script included in the product page; according to the self-created image identifier and the client information, sends a self-created image decryption information acquisition request to the server, so that the server determines whether the client has the right to view the self-created image according to the client information; if the client has the right to view the self-created image, the self-created image decryption information corresponding to the self-created image identifier is provided to the client; according to the self-created image decryption information provided by the server, the encrypted image of the self-created image is decrypted; the graphic file of the controllable graphic object corresponding to the self-created image is obtained; the decrypted image of the self-created image is used as the background image of the page image element corresponding to the self-created image, and the graphic file is used as the foreground image of the page image element. By adopting this processing method, it is possible to control the display and viewing of merchant's self-created pictures by the client, prevent users from downloading the original pictures of the merchant's self-created pictures to their local computers, and control the dissemination of the original pictures of the merchant's self-created pictures, such as preventing users from posting the original pictures of the merchant's self-created pictures to similar products sold in their own stores; therefore, it is possible to effectively control the dissemination and display of self-created pictures, thereby protecting the copyright of self-created pictures.
[0137] Second embodiment
[0138] In the above-mentioned embodiment, a picture processing method is provided, and correspondingly, the present application also provides a picture processing device. The device corresponds to the above-mentioned method embodiment. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The method embodiment described below is only illustrative.
[0139] In this embodiment, the image processing device may include: a first request sending unit, an information acquiring unit, a second request sending unit, an image decryption unit, a graphic file acquiring unit, and a page element setting unit.
[0140] Among them, the first request sending unit is used to send a product page access request to the server; the information acquisition unit is used to obtain the client information and the self-created picture identification in the product page provided by the server through the first script included in the product page; the second request sending unit is used to send a picture decryption information acquisition request to the server according to the self-created picture identification and the client information, so that the server determines whether the client has the risk of self-created picture display according to the client information; if the client does not have the risk of self-created picture display, the picture decryption information corresponding to the self-created picture identification is provided to the client; the picture decryption unit is used to decrypt the encrypted picture of the self-created picture according to the picture decryption information provided by the server; the graphic file acquisition unit is used to obtain the graphic file of the controllable graphic object corresponding to the self-created picture; the page element setting unit is used to use the decrypted picture of the self-created picture as the background picture of the page picture element corresponding to the self-created picture, and use the graphic file as the foreground picture of the page picture element.
[0141] During specific implementation, the graphic file includes a second script; the second script is used to obtain client information and a self-created picture identifier in the graphic file; based on the self-created picture identifier and the client information, a request for obtaining picture decryption information is sent to the server; based on the picture decryption information provided by the server, the encrypted picture in the graphic file is decrypted.
[0142] In one example, the information acquisition unit is specifically used to obtain the image address of the page image element; if the image address meets the self-created image address rule, the self-created image identifier is obtained from the image address.
[0143] In one example, a graphic file acquisition unit is specifically used to acquire a graphic file template that can control a graphic object through the first script, wherein the graphic file template includes an encrypted picture address template of a self-created picture; fill the self-created picture identifier into the encrypted picture address template; and use the graphic file template after filling in the self-created picture identifier as the graphic file.
[0144] In one example, the device further includes: a file downloading unit and a downloaded file display control unit.
[0145] Among them, the file download unit is used to download the graphic file; the downloaded file display control unit is used to obtain the client information and the self-created picture identification in the graphic file through the second script included in the graphic file if the client opens the downloaded graphic file; according to the self-created picture identification and the client information, send a request for obtaining picture decryption information to the server; according to the picture decryption information provided by the server, decrypt the encrypted picture in the graphic file.
[0146] In one example, the self-created picture is a self-created picture of a product in a first store; the device also includes: a self-created picture publishing unit, used to send a picture publishing request for the same product in a second store to the server, the picture publishing request includes the self-created graphic logo, so that if the server determines that the second store is an authorized store of the first store, the self-created graphic will be used as the picture of the same product; record the usage information of the self-created picture by the second store, and provide the usage information to the first store.
[0147] Third embodiment
[0148] In the above-mentioned embodiment, a method for processing an image is provided. Correspondingly, the present application also provides a method for processing an image, and the execution subject of the method is the server in the first embodiment. The method corresponds to the first embodiment of the method described above. Since the second embodiment of the method is basically similar to the first embodiment of the method, the description is relatively simple, and the relevant parts can be referred to the partial description of the first embodiment of the method. The method embodiment described below is only illustrative.
[0149] Please refer to Figure 4 , which is a flow chart of the image processing method of the present application. In this embodiment, the image processing method may include the following steps:
[0150] Step S401: receiving a product page access request sent by a client.
[0151] Step S403: providing the product page to the client, so that the client obtains the client information and the self-created picture logo in the product page through the first script included in the product page.
[0152] Step S405: receiving a request for obtaining image decryption information sent by the client, wherein the request for obtaining image decryption information includes the client information and the self-created image identifier.
[0153] Step S407: Based on the client information, determine whether the client is at risk of displaying the self-created picture; if the client is not at risk of displaying the self-created picture, provide the client with picture decryption information corresponding to the self-created picture identifier, so that the client decrypts the encrypted picture of the self-created picture according to the picture decryption information; obtain a graphic file of a controllable graphic object corresponding to the self-created picture; use the decrypted picture of the self-created picture as the background picture of the page picture element corresponding to the self-created picture, and use the graphic file as the foreground picture of the page picture element.
[0154] The above step S401 corresponds to the above step S101, the above step S403 corresponds to the above step S103, and the above steps S405 and S407 correspond to the above steps S105 to S111, which will not be repeated here.
[0155] In one example, the method further includes the following steps: recording the first number of times the client obtains the image decryption information; accordingly, judging whether the client has a risk of self-created image display based on the client information in step S407 can be implemented in the following manner: judging whether the client has a risk of self-created image display based on the first number of times. This processing method corresponds to the second method in the first embodiment of the method, and will not be repeated here.
[0156] In one example, the client information includes client environment information; accordingly, judging whether the client has a risk of displaying self-created pictures based on the client information in step S407 can be implemented in the following manner: if the client environment is an automatic download tool, then judging that the client has a risk of displaying self-created pictures. This processing method corresponds to the method 1 in the method embodiment 1, and will not be repeated here.
[0157] In one example, the method further includes the following steps: recording the second number of times the client user obtains the image decryption information; accordingly, judging whether the client has a risk of self-created image display based on the client information in step S407 can be implemented in the following manner: judging whether the client has a risk of self-created image display based on the second number of times. This processing method corresponds to the third method in the first embodiment of the method, and will not be repeated here.
[0158] In one example, the self-created picture is a self-created picture of a product under the first store; the method further comprises the following steps: if the client does not have the right to view the self-created picture, providing the first store with an alarm message indicating that the client has illegally used the self-created picture. With this processing method, the first store can be informed of the illegal use of the self-created picture in a timely manner.
[0159] In one example, the self-created image is a self-created image of a product under a first store; the method further comprises the following steps: receiving a request from the first store to authorize the self-created image to the second store; receiving a request from the client to publish an image for the same product under the second store, the image publishing request including the self-created graphic logo; if the second store is an authorized store of the first store, recording the use information of the self-created image by the second store; and providing the use information to the first store. This processing method corresponds to the client processing in the first embodiment of the method, and will not be repeated here.
[0160] In specific implementation, the server can encrypt the original image when the self-created image is published, which can not only effectively improve the display speed of the self-created image, but also prevent users from using automated tools to easily download the original images of the merchant's self-created images in batches. The server can also encrypt the original image when providing the product page to the client, which can effectively save server storage control.
[0161] When publishing self-created pictures, merchants can configure the type of encryption algorithm according to the options provided by the server. For example, the server provides a cryptographic encryption algorithm group and / or a reversible watermark encryption algorithm group, and the user selects an algorithm F from the corresponding algorithm group. The server generates a key K and encrypts the original self-created picture S to obtain a secret image D = F (S, K), such as completely encrypting the picture pixels, or applying a reversible watermark. In specific implementation, each picture has a different key, and the encryption algorithm can be updated regularly.
[0162] It can be seen from the above embodiments that the image processing method provided in the embodiments of the present application receives a product page access request sent by a client; provides a product page to the client, so that the client obtains client information and a self-created image identifier in the product page through a first script included in the product page; receives a request for obtaining image decryption information sent by the client, and the image decryption information acquisition request includes the client information and the self-created image identifier; determines whether the client has a risk of displaying a self-created image based on the client information; if the client does not have a risk of displaying a self-created image, provides the client with image decryption information corresponding to the self-created image identifier, so that the client decrypts the encrypted image of the self-created image based on the image decryption information; obtains a graphic file of a controllable graphic object corresponding to the self-created image; uses the decrypted image of the self-created image as the background image of the page image element corresponding to the self-created image, and uses the graphic file as the foreground image of the page image element. By adopting this processing method, it is possible to control the display and viewing of merchant's self-created pictures by the client, prevent users from downloading the original pictures of the merchant's self-created pictures to their local computers, and control the dissemination of the original pictures of the merchant's self-created pictures, such as preventing users from posting the original pictures of the merchant's self-created pictures to similar products sold in their own stores; therefore, it is possible to effectively control the dissemination and display of self-created pictures, thereby protecting the copyright of self-created pictures.
[0163] Fourth embodiment
[0164] In the above-mentioned embodiment, a picture processing method is provided, and correspondingly, the present application also provides a picture processing device. The device corresponds to the above-mentioned method embodiment. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The method embodiment described below is only illustrative.
[0165] In this embodiment, the image processing device may include: a first request receiving unit, a product page providing unit, a second request receiving unit, a judging unit, and a decryption information providing unit.
[0166] Among them, the first request receiving unit is used to receive a product page access request sent by a client; the product page providing unit is used to provide a product page to the client, so that the client obtains the client information and the self-created picture identifier in the product page through the first script included in the product page; the second request receiving unit is used to receive a picture decryption information acquisition request sent by the client, and the picture decryption information acquisition request includes the client information and the self-created picture identifier; the judgment unit is used to judge whether the client has a self-created picture display risk based on the client information; the decryption information providing unit is used to provide the client with picture decryption information corresponding to the self-created picture identifier if the client does not have a self-created picture display risk, so that the client decrypts the encrypted picture of the self-created picture based on the picture decryption information; obtain a graphic file of a controllable graphic object corresponding to the self-created picture; use the decrypted picture of the self-created picture as the background picture of the page picture element corresponding to the self-created picture, and use the graphic file as the foreground picture of the page picture element.
[0167] In one example, the device further includes: a client counting unit, used to record a first number of times the client obtains image decryption information; correspondingly, the judgment unit is specifically used to judge whether the client has a risk of self-created image display based on the first number of times.
[0168] In one example, the client information includes client environment information; accordingly, the judgment unit is specifically configured to determine that the client has a risk of displaying self-created images if the client environment is an automatic download tool.
[0169] In one example, the device further includes: a client user counting unit, used to record a second number of times a client user obtains image decryption information; correspondingly, the judgment unit is specifically used to judge whether the client has a risk of self-created image display based on the second number of times.
[0170] In one example, the device further includes: an alarm unit, configured to provide an alarm message of illegal use of the self-created picture by the client to the first store to which the self-created picture belongs if the client has no right to view the self-created picture.
[0171] In one example, the device further includes: a self-created picture publishing unit, a picture usage information recording unit, and a picture usage information providing unit.
[0172] Among them, the self-created picture publishing unit is used to receive a picture publishing request for the same product in the second store sent by the client, and the picture publishing request includes the self-created graphic logo; the picture usage information recording unit is used to record the usage information of the self-created picture by the second store if the second store is an authorized store of the first store to which the self-created picture belongs; the picture usage information providing unit is used to provide the usage information to the first store.
[0173] In one example, the device further includes: an authorization unit, configured to receive a request from the first store to authorize the self-created image to the second store.
[0174] Fifth embodiment
[0175] In the above-mentioned embodiment, a method for processing an image is provided. Correspondingly, the present application also provides a method for processing an image, and the execution subject of the method is a client. The method corresponds to the above-mentioned method embodiment 1. Since method embodiment 5 is basically similar to method embodiment 1, the description is relatively simple, and the relevant parts can be referred to the partial description of method embodiment 1. The method embodiment described below is only illustrative.
[0176] In this embodiment, the image processing method may include the following steps:
[0177] Step S501: The client opens a graphic file of a controllable graphic object corresponding to a self-created picture.
[0178] In this embodiment, the client may obtain the graphic file from a local device or a server device.
[0179] Step S503: Obtain client information and a self-created picture logo in the graphic file through a second script included in the graphic file.
[0180] Step S505: Send a request for obtaining self-created picture decryption information to the server according to the self-created picture identifier and the client information, so that the server determines whether the client has the right to view the self-created picture according to the client information; if the client has the right to view the self-created picture, provide the client with the self-created picture decryption information corresponding to the self-created picture identifier.
[0181] Step S507: decrypting the encrypted image in the graphic file according to the self-created image decryption information provided by the server.
[0182] By adopting this processing method, it is possible to control the display and viewing of merchant's self-created pictures by the client, and it is also possible to control the dissemination of the merchant's self-created pictures' original images, such as preventing users from posting the merchant's self-created pictures' original images to similar products sold in their own stores; therefore, it is possible to effectively control the dissemination and display of self-created pictures, thereby protecting the copyright of self-created pictures.
[0183] Sixth embodiment
[0184] In the above-mentioned embodiment, a picture processing method is provided, and correspondingly, the present application also provides a picture processing device. The device corresponds to the above-mentioned method embodiment. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The method embodiment described below is only illustrative.
[0185] In this embodiment, the image processing device may include: a graphic file opening unit, an information acquisition unit, a request sending unit, and a picture decryption unit.
[0186] Among them, the graphic file opening unit is used for the client to open the graphic file of the controllable graphic object corresponding to the self-created picture; the information acquisition unit is used to obtain the client information and the self-created picture identification in the graphic file through the second script included in the graphic file; the request sending unit is used to send a self-created picture decryption information acquisition request to the server according to the self-created picture identification and the client information, so that the server determines whether the client has the right to view the self-created picture according to the client information; if the client has the right to view the self-created picture, the self-created picture decryption information corresponding to the self-created picture identification is provided to the client; the picture decryption unit is used to decrypt the encrypted picture in the graphic file according to the self-created picture decryption information provided by the server.
[0187] Seventh embodiment
[0188] In the above-mentioned embodiment, a method for processing an image is provided. Correspondingly, the present application also provides a method for processing an image, and the execution subject of the method is a client. The method corresponds to the above-mentioned method embodiment 1. Since method embodiment 5 is basically similar to method embodiment 1, the description is relatively simple, and the relevant parts can be referred to the partial description of method embodiment 1. The method embodiment described below is only illustrative.
[0189] In this embodiment, the image processing method may include the following steps:
[0190] Step S601: receiving a request for obtaining picture decryption information sent by a second script included in a graphic file when a client opens a graphic file of a controllable graphic object corresponding to a self-created picture, wherein the request for obtaining picture decryption information includes client information and a self-created picture identifier obtained by the client through the second script.
[0191] Step S603: Determine whether the client has the right to view the self-created picture based on the client information; if the client has the right to view the self-created picture, provide the client with picture decryption information corresponding to the self-created picture identifier, so that the client can decrypt the encrypted picture of the self-created picture based on the picture decryption information.
[0192] By adopting this processing method, it is possible to control the display and viewing of merchant's self-created pictures by the client, and it is also possible to control the dissemination of the merchant's self-created pictures' original images, such as preventing users from posting the merchant's self-created pictures' original images to similar products sold in their own stores; therefore, it is possible to effectively control the dissemination and display of self-created pictures, thereby protecting the copyright of self-created pictures.
[0193] Eighth embodiment
[0194] In the above-mentioned embodiment, a picture processing method is provided, and correspondingly, the present application also provides a picture processing device. The device corresponds to the above-mentioned method embodiment. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The method embodiment described below is only illustrative.
[0195] In this embodiment, the image processing device may include: a request receiving unit, a judging unit, and a decryption information providing unit.
[0196] A request receiving unit, used to receive a request for obtaining picture decryption information sent by a second script included in a graphic file of a controllable graphic object corresponding to a self-created picture when a client opens the graphic file, wherein the request for obtaining picture decryption information includes client information and a self-created picture identifier obtained by the client through the second script; a judging unit, used to judge whether the client has the right to view the self-created picture according to the client information; and a decryption information providing unit, used to provide the client with picture decryption information corresponding to the self-created picture identifier if the client has the right to view the self-created picture, so that the client can decrypt the encrypted picture of the self-created picture according to the picture decryption information.
[0197] Ninth embodiment
[0198] In the above-mentioned embodiments, a method for processing an image is provided, and correspondingly, the present application also provides a system for processing an image. The device corresponds to the above-mentioned device embodiment. Since the system embodiment is basically similar to the device embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the device embodiment. The system embodiment described below is only illustrative.
[0199] In this embodiment, the image processing system may include: the image processing device in the above-mentioned embodiment 2, and the image processing device in the above-mentioned embodiment 4. With this processing method, the display and viewing of the merchant's self-created images by the client can be controlled, and the dissemination of the merchant's self-created images can also be controlled, such as preventing users from posting the merchant's self-created images to similar products sold in their own stores; therefore, the dissemination and display of self-created images can be effectively controlled, thereby protecting the copyright of self-created images.
[0200] Tenth embodiment
[0201] In the above-mentioned embodiments, a method for processing an image is provided, and correspondingly, the present application also provides a system for processing an image. The device corresponds to the above-mentioned device embodiment. Since the system embodiment is basically similar to the device embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the device embodiment. The system embodiment described below is only illustrative.
[0202] In this embodiment, the image processing system may include: the image processing device in the sixth embodiment and the image processing device in the eighth embodiment. By adopting this processing method, the display and viewing of the merchant's self-created images by the client can be controlled, and the dissemination of the merchant's self-created images can also be controlled, such as preventing users from posting the merchant's self-created images to similar products sold in their own stores; therefore, the dissemination and display of self-created images can be effectively controlled, thereby protecting the copyright of self-created images.
[0203] Eleventh Embodiment
[0204] In the above-mentioned embodiment, a method for processing an image is provided, and correspondingly, the present application also provides an electronic device. The device corresponds to the embodiment of the above-mentioned method. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.
[0205] The electronic device of this embodiment includes: a processor and a memory; the memory is used to store a program for implementing any of the above-mentioned image processing methods, and the device is powered on and runs the program of the method through the processor.
[0206] The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0207] In a specific implementation, the electronic device may also include one or more of the following components: a power supply component, an input / output (I / O) interface, and a communication component. The power supply component provides power to various components of the electronic device. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device. The I / O interface provides an interface between the processor 503 and the peripheral interface module, which may be a keyboard, a click wheel, a button, etc. The communication component is configured to facilitate wired or wireless communication between the electronic device and other devices (such as smart phones, tablet computers, etc.).
[0208] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0209] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0210] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0211] 1. Computer readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include non-transit computer readable media (transit media), such as modulated data signals and carrier waves.
[0212] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims
1. A method for processing an image, characterized in that: include: Send a product page access request to the server; For the product page provided by the server, obtaining the client information and the self-created picture logo in the product page through the first script included in the product page; Sending a request for obtaining image decryption information to the server according to the self-created image identifier and the client information, so that the server determines whether the client has a risk of displaying self-created images according to the client information; If the client does not have a risk of displaying the self-created picture, providing the client with picture decryption information corresponding to the self-created picture identifier; Decrypting the encrypted image of the self-created image according to the image decryption information provided by the server; Acquire a graphic file of a controllable graphic object corresponding to the self-created picture; The decrypted image of the self-created image is used as the background image of the page image element corresponding to the self-created image, and the graphic file is used as the foreground image of the page image element.
2. The method according to claim 1, characterized in that Also includes: If the client opens the downloaded graphic file, the client information and the self-created picture logo in the graphic file are obtained through the second script included in the graphic file; Sending a request for obtaining image decryption information to the server according to the self-created image identifier and the client information; The encrypted image in the graphic file is decrypted according to the image decryption information provided by the server.
3. The method according to claim 1, characterized in that The self-created pictures are self-created pictures of products under the first store; The method further comprises: A request for publishing a picture of the same product in a second store is sent to the server, wherein the request for publishing the picture includes the self-created graphic identifier, so that if the server determines that the second store is an authorized store of the first store, the self-created graphic is used as the picture of the same product; information on the use of the self-created picture by the second store is recorded, and the use information is provided to the first store.
4. The method according to claim 1, characterized in that: The graphic file includes a second script; the second script is used to obtain client information and a self-created picture identifier in the graphic file; according to the self-created picture identifier and the client information, a request for obtaining picture decryption information is sent to the server; according to the picture decryption information provided by the server, the encrypted picture in the graphic file is decrypted.
5. A method for processing an image, characterized in that: include: Receive product page access requests sent by clients; Providing a product page to the client, so that the client obtains client information and a self-created picture logo in the product page through a first script included in the product page; Receiving a request for obtaining picture decryption information sent by the client, wherein the request for obtaining picture decryption information includes the client information and the self-created picture identifier; According to the client information, determining whether the client has a risk of displaying self-created pictures; If the client does not have a risk of displaying the self-created picture, providing the client with picture decryption information corresponding to the self-created picture identifier, so that the client decrypts the encrypted picture of the self-created picture according to the picture decryption information; Acquire a graphic file of a controllable graphic object corresponding to the self-created picture; The decrypted image of the self-created image is used as the background image of the page image element corresponding to the self-created image, and the graphic file is used as the foreground image of the page image element.
6. The method according to claim 5, characterized in that Also includes: Recording the first number of times the client obtains the image decryption information; The determining, based on the client information, whether the client has a risk of displaying self-created pictures includes: According to the first number, it is determined whether the client has a risk of displaying self-created pictures.
7. The method according to claim 5, characterized in that Also includes: If the client has no right to view the self-created picture, an alarm message indicating that the client has illegally used the self-created picture is provided to the first store to which the self-created picture belongs.
8. The method according to claim 5, characterized in that Also includes: receiving a picture publishing request for the same product in a second store sent by the client, wherein the picture publishing request includes the self-created graphic logo; If the second store is an authorized store of the first store to which the self-created picture belongs, then the use information of the self-created picture by the second store is recorded; The usage information is provided to the first store.
9. A method for processing an image, characterized in that: include: The client opens the graphic file of the controllable graphic object corresponding to the self-created picture; Obtaining client information and a self-created picture identifier in the graphic file through a second script included in the graphic file; According to the self-created picture identifier and the client information, a request for obtaining self-created picture decryption information is sent to the server, so that the server determines whether the client has the right to view the self-created picture according to the client information; if the client has the right to view the self-created picture, the self-created picture decryption information corresponding to the self-created picture identifier is provided to the client; The encrypted image in the graphic file is decrypted according to the self-created image decryption information provided by the server.
10. A method for processing an image, characterized in that: include: receiving a request for obtaining picture decryption information sent by a second script included in a graphic file when a client opens a graphic file of a controllable graphic object corresponding to a self-created picture, wherein the request for obtaining picture decryption information includes client information and a self-created picture identifier obtained by the client through the second script; Based on the client information, determine whether the client has the right to view the self-created picture; if the client has the right to view the self-created picture, provide the client with picture decryption information corresponding to the self-created picture identifier, so that the client can decrypt the encrypted picture of the self-created picture according to the picture decryption information.
11. A picture processing device, characterized in that: include: A first request sending unit, used to send a product page access request to the server; An information acquisition unit, configured to acquire client information and a self-created image identifier in a product page provided by the server through a first script included in the product page; A second request sending unit is used to send a request for obtaining image decryption information to the server according to the self-created image identifier and the client information, so that the server determines whether the client has a risk of displaying self-created images according to the client information; If the client does not have a risk of displaying the self-created picture, providing the client with picture decryption information corresponding to the self-created picture identifier; A picture decryption unit, used to decrypt the encrypted picture of the self-created picture according to the picture decryption information provided by the server; A graphic file acquisition unit, used to acquire a graphic file of a controllable graphic object corresponding to the self-created picture; The page element setting unit is used to use the decrypted image of the self-created image as the background image of the page image element corresponding to the self-created image, and use the graphic file as the foreground image of the page image element.
12. A picture processing device, characterized in that: include: A first request receiving unit, configured to receive a product page access request sent by a client; A product page providing unit, configured to provide a product page to the client, so that the client obtains client information and a self-created image identifier in the product page through a first script included in the product page; A second request receiving unit, configured to receive a self-created picture decryption information acquisition request sent by the client, wherein the picture decryption information acquisition request includes the client information and the self-created picture identifier; A judging unit, configured to judge whether the client has a risk of displaying self-created pictures according to the client information; a decryption information providing unit, configured to provide the client with picture decryption information corresponding to the self-created picture identifier if the client does not have a risk of displaying the self-created picture, so that the client decrypts the encrypted picture of the self-created picture according to the picture decryption information; Acquire a graphic file of a controllable graphic object corresponding to the self-created picture; The decrypted image of the self-created image is used as the background image of the page image element corresponding to the self-created image, and the graphic file is used as the foreground image of the page image element.
13. A picture processing system, characterized in that: include: The image processing device according to claim 11; as well as, The image processing device according to claim 12.
14. An electronic device, characterized in that: include: processor; as well as A memory for storing a program for implementing the method according to any one of claims 1 to 10, wherein the device is powered on and runs the program of the method through the processor.
