Picture sharing method and related device

By adjusting the image to obtain quality in electronic devices and improving the quality map, the problem of delay and failure of users when processing multiple pictures is solved, and the user experience is improved.

CN119906719AActive Publication Date: 2025-04-29HUAWEI TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411990394.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-04-29
Estimated Expiration
2044-09-23

AI Technical Summary

Technical Problem

When a user shares images while processing multiple images through an electronic device, it may lead to loss of images or sharing delays, especially when the electronic device fails to generate a full-quality map of the target image in time.

Method used

By providing a picture sharing method, the method includes adjusting the acquisition quality of the target picture and completing the quality map when the user shares the operation, ensuring that the application can share the corresponding quality pictures in a timely manner, thereby avoiding image sharing failure or delay.

Benefits of technology

This method effectively avoids the problem of image sharing failure and delay, improves the success rate of users sharing full-quality pictures, reduces waiting time, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906719A_ABST
    Figure CN119906719A_ABST
Patent Text Reader

Abstract

The invention discloses a picture sharing method and a related device, and in the method, a picture sharing strategy can be set in electronic equipment. In the process that the user shares the picture through the electronic equipment, after the user selects the target picture, the electronic equipment can share the target quality picture of the target picture based on the picture sharing strategy. The picture quality of the target quality picture at least comprises the first quality and the second quality, and the electronic equipment can flexibly select the picture quality of the target quality picture based on the picture sharing strategy and the load condition of the electronic equipment. In this way, the situation that the electronic device fails to share the picture or the picture sharing time is too long due to the fact that the target quality picture is not generated can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202411336914.5, the original application date is September 23, 2024, and the name of the invention is “A picture sharing method and related device”. The entire content of the original application is incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of terminal and communication technology, and in particular to a picture sharing method and related devices. Background Art

[0003] After acquiring the image data, the electronic device may first generate a thumbnail corresponding to the image, and then process the image data to obtain a medium-quality image and a full-quality image corresponding to the image.

[0004] When a user shares a picture through an electronic device, the electronic device can display a thumbnail of the picture. The user can select a picture thumbnail to share the picture. Generally, the electronic device shares the full-quality picture of the picture, and the full-quality picture can be zoomed in for the user to view the details of the picture. In some scenarios, if the electronic device has continuously acquired multiple pictures and has generated a thumbnail of one of the pictures, but has not generated a full-quality picture of the picture, the electronic device cannot respond to the user's operation to share the picture, and cannot obtain the full-quality picture of the picture in time. This will cause the electronic device to fail to share pictures, or the waiting time for sharing is too long, affecting the user's experience.

[0005] Therefore, it is worth considering how to solve the problem of picture loss or sharing delay caused by users sharing pictures when processing multiple pictures on electronic devices. Summary of the invention

[0006] The present application provides a picture sharing method and related devices, by which the problem of picture loss or sharing delay caused by a user sharing pictures when an electronic device processes multiple pictures can be solved.

[0007] In a first aspect, the present application provides a picture sharing method, which is applied to an electronic device, the method comprising: in response to a first operation, selecting a first picture, the electronic device including a first quality map of the first picture; in response to a second operation, sharing a target quality map of the first picture based on a picture sharing strategy, the picture quality of the target quality map of the first picture being higher than or equal to the first quality map of the first picture, the picture sharing strategy being a strategy for determining the picture quality of the target quality map, the picture quality including at least a first quality and a second quality, the first quality being lower than the second quality, the picture corresponding to the first quality being the first quality map of the picture, and the picture corresponding to the second quality being the second quality map of the picture.

[0008] By implementing the picture sharing method provided in the first aspect, the electronic device can adjust the acquisition quality of the target picture when the user shares the target picture through the application, so that the application can share pictures of corresponding quality in a timely manner. This can avoid the situation where the application fails to obtain pictures from the file system or takes too long to obtain pictures, thereby ensuring the user experience when sharing pictures.

[0009] The first quality map may be a medium quality map in the following embodiments. The second quality map may be a full quality map in the following embodiments. The first quality may include a resolution of the first quality map, and the second quality may include a resolution of the second quality map.

[0010] In combination with the first aspect, in response to the second operation, sharing the target quality map of the first image based on the image sharing strategy includes: in response to the second operation and the electronic device does not include the second quality map of the first image, generating a second quality map of the first image; sharing the second quality map of the first image.

[0011] In this way, the electronic device can increase the generation priority of the target image to ensure that the full-quality image of the target image can be generated as soon as possible when the application accesses the file system. While ensuring the quality of the shared image, the failure of the image sharing caused by the failure of the third-party application to obtain the image is avoided. The success rate of users sharing full-quality images is improved, the waiting time is reduced, and the user experience is improved.

[0012] In combination with the first aspect, after generating the second quality map of the first picture, the method further includes: generating a second quality map of the second picture, wherein the generation time of the first quality map of the second picture is earlier than the generation time of the first quality map of the first picture.

[0013] In this way, when sharing a target image, the electronic device can give priority to generating a full-quality image of the target image, suspend the generation of other images, and improve the response speed to the user's sharing operation.

[0014] In combination with the first aspect, before generating the second quality map of the first picture, the method further includes: displaying a first prompt, where the first prompt is used to indicate that the electronic device is generating the second quality map of the first picture.

[0015] In this way, the electronic device can prompt the user that the image is being generated when the full-quality image is generated, thereby avoiding misunderstanding and repeated operations while the user is waiting.

[0016] In combination with the first aspect, in response to the second operation, sharing the target quality map of the first picture based on the picture sharing strategy includes: in response to the second operation and the electronic device including the second quality map of the first picture, determining that the second quality map of the first picture is the target quality map of the first picture; sharing the second quality map of the first picture.

[0017] In this way, when the electronic device detects that the full-quality image of the target image has been generated, the full-quality image can be directly shared, thereby improving the response speed to the user's sharing operation.

[0018] In combination with the first aspect, in response to the second operation, sharing the target quality map of the first picture based on the picture sharing strategy includes: in response to the second operation and the electronic device does not include the second quality map of the first picture, determining that the first quality map of the first picture is the target quality map of the first picture; sharing the first quality map of the first picture.

[0019] In this way, the electronic device can, based on a fast sharing strategy, select the highest quality image among the generated images of the target image for sharing when the highest quality image of the target image has not been generated; this can ensure that the electronic device can quickly respond to the user's sharing operation and successfully share the image to the sharing target while maintaining a certain image quality, thereby ensuring the user's usage experience.

[0020] In combination with the first aspect, in response to the second operation, before sharing the target quality map of the first image based on the image sharing strategy, the method also includes: in response to the third operation, selecting the third image, the electronic device includes the first quality map of the third image and does not include the second quality map of the third image; the method also includes: in response to the second operation, sharing the first quality map of the third image.

[0021] In this way, the electronic device can support users to share multiple pictures at one time and adaptively adjust the target sharing quality of multiple pictures. When the load of the electronic device only supports the priority generation of full-quality pictures of some target pictures, the electronic device can make full use of its own performance to maximize the number of full-quality pictures in the shared target pictures and ensure that other pictures in the target pictures can also be shared in the form of medium-quality pictures.

[0022] In combination with the first aspect, the load of the electronic device is lower than or equal to a first threshold value, and the first threshold value is a maximum value of the electronic device running at a low load.

[0023] In this way, the electronic device can adaptively adjust the image quality of the shared image according to the load of the electronic device itself, so that the electronic device can preferentially generate the full-quality image of the target image under a lower load condition, making full use of the spare load of the electronic device to ensure the user experience when sharing images.

[0024] Exemplarily, the first threshold may be determined by the occupancy rates of a central processing unit and a graphics processing unit of the electronic device.

[0025] In combination with the first aspect, the load of the electronic device is higher than or equal to a second threshold value, and the second threshold value is a minimum value of the electronic device running at a high load.

[0026] In this way, the electronic device can adaptively adjust the image quality of the shared image according to the load of the electronic device itself, so that the electronic device can at least share browseable images under different load conditions. This avoids the situation where the image sharing fails due to high load of the electronic device or the target image is not generated, and ensures the user experience.

[0027] Exemplarily, the second threshold may be determined by the occupancy rates of a central processing unit and a graphics processing unit of the electronic device, and the second threshold is higher than or equal to the first threshold.

[0028] In combination with the first aspect, the first quality map of the first picture includes a first index, where the first index is used to indicate the first quality map of the first picture.

[0029] In this way, the electronic device can distinguish different pictures and pictures of different qualities through the picture index, and can correctly obtain the target picture through the picture index.

[0030] In a second aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in the first aspect.

[0031] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the method described in the first aspect when executed by a processor.

[0032] In a fourth aspect, the present application provides a chip system, which is applied to an electronic device, and is characterized in that the chip system includes one or more processors, which are used to call computer instructions so that the electronic device executes the method described in the first aspect.

[0033] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method described in the first aspect.

[0034] It can be understood that the electronic device provided in the second aspect, the computer-readable storage medium provided in the third aspect, the chip system provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the method provided in the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1A is a schematic diagram of a photographing interface of an electronic device 100 provided in an embodiment of the present application;

[0036] Figure 1B is a schematic diagram of an album interface of an electronic device 100 provided in an embodiment of the present application;

[0037] Figure 1C is a schematic diagram of a large-scale interface of an electronic device 100 provided in an embodiment of the present application;

[0038] Figure 1D is a schematic diagram of a picture magnification scene of an electronic device 100 provided in an embodiment of the present application;

[0039] Figure 2 is a schematic diagram of a software structure of the electronic device 100 provided in an embodiment of the present application;

[0040] Figure 3 is a schematic diagram of image generation of the electronic device 100 provided in an embodiment of the present application;

[0041] Figure 4A is a schematic diagram of a media index interface of an electronic device 100 provided in an embodiment of the present application;

[0042] Figure 4B 1 is a schematic diagram of a three-party application chat interface of an electronic device 100 provided in an embodiment of the present application;

[0043] Figure 5 is another software structure diagram of the electronic device 100 provided in an embodiment of the present application;

[0044] Figure 6 is a schematic diagram of a process of sharing a picture based on a fast sharing strategy by the electronic device 100 provided in an embodiment of the present application;

[0045] Figure 7 It is a schematic diagram of a process of sharing pictures based on a high-quality sharing strategy by an electronic device 100 provided in an embodiment of the present application;

[0046] Fig. 8A It is a schematic diagram of the priority of generating a picture by an electronic device 100 provided in an embodiment of the present application;

[0047] Figure 8BIt is a schematic diagram of the priority of another electronic device 100 generating a picture provided in an embodiment of the present application;

[0048] Fig. 9 It is a schematic diagram of a process of sharing pictures based on a balanced sharing strategy by an electronic device 100 provided in an embodiment of the present application;

[0049] Fig.10 1 is a schematic diagram of an application permission management interface of an electronic device 100 provided in an embodiment of the present application;

[0050] Fig.11 is a schematic diagram of a picture sharing strategy management interface of an electronic device 100 provided in an embodiment of the present application;

[0051] Fig.12 is a schematic diagram of a process of sharing a picture by an electronic device 100 provided in an embodiment of the present application;

[0052] Fig.13 It is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0054] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in the context. The terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features. "First" and "second" etc. are used to distinguish different objects, rather than for describing a specific order of objects. For example, the first object and the second object are used to distinguish different objects, rather than for describing a specific order of objects.

[0055] In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0056] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or related scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0057] The term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0058] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0059] In order to better understand the technical solution provided by the present application, before describing the technical solution of the present application, firstly, the electronic device 100 with a camera function to which the present application is applicable is described in conjunction with the accompanying drawings. The present embodiment of the present application does not limit the specific form and type of the electronic device 100.

[0060] First, the relevant terms involved in this application, such as thumbnail, medium-quality image and full-quality image, are introduced in conjunction with the accompanying drawings.

[0061] In some examples, after acquiring the original image data of the picture, the electronic device 100 may immediately generate a thumbnail corresponding to the picture. Then, the electronic device 100 may process the original image data of the picture to obtain a medium-quality image and a full-quality image corresponding to the picture.

[0062] Among them, thumbnails are low-resolution, high-compression pictures with small file sizes. They can be used by users to preview and select pictures, save storage space, and quickly load and display picture options on the electronic device 100; medium-quality pictures can be pictures with medium resolution and compression. The size of medium-quality pictures matches the screen of the electronic device 100 and is suitable for viewing on the screen. At the same time, they take up less storage space than full-quality pictures and can be used by users to browse picture content; full-quality pictures are pictures with the highest resolution and lowest compression rate, providing the best image details, and can be used by users to zoom in to view picture details, and they take up the largest storage space.

[0063] Taking the electronic device 100 taking a picture by taking a photo as an example, in a possible implementation, the electronic device 100 can immediately generate a thumbnail corresponding to the picture after collecting the original image data of a picture. The user can view the thumbnail of the picture in the relevant application. Then, the electronic device 100 can continue to generate a medium-quality image and a full-quality image corresponding to the picture based on the original image data.

[0064] For example, the electronic device 100 can take a photo through a camera application, and in response to a user's operation of opening the camera application, the electronic device 100 can display a photo taking interface. Figure 1A As shown, the electronic device 100 can display a user interface 100A, which can be called a photo taking interface of the electronic device 100. The user interface 100A can include a control 101, a control 102 and a scene 103. The control 101 can be used to trigger the electronic device 100 to collect image data. The control 102 can be used to open the photo album application of the electronic device 100.

[0065] The electronic device 100 can receive a user click operation on the control 101 and collect the original image data of the scene 103. After the electronic device 100 completes the image data collection, it can generate a thumbnail including the scene 103. The electronic device 100 can display the thumbnail at the control 102. The electronic device 100 can also receive a user click operation on the control 102 and display the user interface 100B of the photo album.

[0066] like Figure 1B As shown, after receiving a click operation of the user on the control 102, the electronic device 100 may display a user interface 100B, and the user interface 100B may include a thumbnail 104. The thumbnail 104 may include the content of the scene 103. The thumbnail 104 may be used by the user to preview the content of the photo.

[0067] When the electronic device 100 receives a click operation on the thumbnail 104, it can display the following Figure 1CThe user interface 100C shown. The user interface 100C may include a medium quality image 105. The size of the medium quality image 105 matches the screen of the electronic device 100, and can be used for the user to quickly browse the photo content. The size of the medium quality image 105 is larger than the thumbnail 104, and the resolution of the medium quality image 105 is larger than the thumbnail 104. The user can input a two-finger drag operation in the user interface 100C to zoom in on the picture.

[0068] like Figure 1D As shown, the electronic device 100 receives a two-finger drag operation input by the user and can display a user interface 100D. The user interface 100D can display a full-quality image 106. The full-quality image 106 can support the user to zoom in and out to view the details of the photo.

[0069] That is, when taking pictures, the electronic device 100 can generate thumbnails, medium-quality images, and full-quality images corresponding to each photo. The image quality of the thumbnail is lower than that of the medium-quality image, and the image quality of the medium-quality image is lower than that of the full-quality image. The measurement criteria for image quality may include one or more of the following: resolution, compression rate, size, clarity, picture details, degree of optimization by the algorithm, etc. In one possible implementation, the lower the compression rate of a picture and the higher the resolution, the higher the image quality of the picture.

[0070] After the electronic device 100 generates a full-quality image of the image, the full-quality image of the image can be shared through an application. Figure 2 , Figure 2 The software structure diagram of the electronic device 100 is shown as an example. The following is a software block diagram, taking the sharing of pictures by three-party applications as an example, to illustrate the workflow of the electronic device 100 sharing pictures. Figure 2 As shown, the electronic device 100 may include an application layer, a system service layer and a kernel layer.

[0071] The application layer of the electronic device 100 may include a camera application and a third-party application. The camera application may be used to display a photo taking interface that can interact with the user. The third-party application may be used for the user to view and share the photos taken.

[0072] The system service layer may include a camera service and a picture optimization service. The camera service may be used to coordinate the resources of the electronic device 100 to complete the user's photo request. The picture optimization service may be used to optimize the original image data during the segmented photo process, perform operations such as whitening, face thinning, color adjustment, and clarity adjustment, and provide users with better looking photos.

[0073] The kernel layer may include a camera driver and a file system. The camera driver may be used to capture images from the camera hardware of the electronic device 100 and provide the original image data to the image optimization service. The file system may be used to store image files of different qualities generated by segmented photography.

[0074] The process of the electronic device 100 acquiring and sharing pictures through the above modules is as follows.

[0075] S201. The electronic device 100 sends a photo-taking instruction to the camera service through the camera application.

[0076] Exemplarily, the camera application of the electronic device 100 may provide the user with a photo preview and parameter adjustment interface. When the user inputs a photo operation through the camera application, the camera application may send a photo instruction to the camera service in response to the operation.

[0077] S202. The camera service calls the camera driver to collect the original image data of the picture.

[0078] After receiving the photo command, the camera service can collect raw image data through the camera driver. The camera driver can pass the collected raw image data to the camera service. After receiving the raw image data, the camera service can also indicate to the camera application that the image data acquisition is complete, and the camera application can prompt the user that the photo is complete.

[0079] S203. The camera service generates a thumbnail corresponding to the image based on the original image data, and saves the thumbnail to the file system.

[0080] After the camera service collects the original image data of a photo, it can generate a thumbnail of the photo and save it to the file system. It should be understood that if the camera service collects the original image data of multiple pictures at one time, the camera service can generate a thumbnail corresponding to the picture after the original image data of each picture is collected. The electronic device 100 can display the thumbnails in the gallery. The user can access the corresponding picture through the thumbnail. The picture for the user to browse can be generated by the electronic device 100 in the following step S205.

[0081] S204. The camera service sends the original image data to the picture optimization service.

[0082] The camera service can send raw image data to the image optimization service and send an image optimization request to the image optimization service.

[0083] S205. The image optimization service optimizes the original image data and saves the medium-quality image and the full-quality image corresponding to the image to the file system.

[0084] The image optimization service can process the image optimization requests sent by the camera service in sequence, generate medium-quality images and full-quality images corresponding to the photos, and save them to the file system.

[0085] In a possible implementation, the electronic device 100 may use different folder structures in the file system to distinguish different quality images of the same image. For example, the electronic device 100 may create three folders under the folder storing the image, one folder may be used to store thumbnails, another folder may be used to store medium quality images, and full quality images may be stored in the third folder.

[0086] Exemplarily, the electronic device 100 may also use different file extensions, file name prefixes or suffixes to distinguish different quality images of the same picture. Exemplarily, the electronic device 100 may assign a unique picture index, such as a string of numbers, to each of the different quality images of a photo when taking a photo. The electronic device 100 may obtain a picture of a corresponding quality of a photo through the corresponding picture index.

[0087] The embodiment of the present application does not limit the specific manner in which the electronic device 100 distinguishes and stores different quality images of the same picture.

[0088] S206. The third-party application obtains the full-quality image from the file system.

[0089] When a user opens a third-party application to view a picture, the third-party application can display the thumbnails corresponding to the pictures stored in the file system. In response to the user selecting a thumbnail, the third-party application can initiate a picture access request to the file system to obtain the full-quality picture corresponding to the picture. In this way, the third-party application can send the full-quality picture of the picture to the sharing target to realize the sharing operation of the picture.

[0090] In one possible implementation, the image access request initiated by the third-party application to the file system may include an image index, which may carry the extension of the full-quality image and is used to uniquely indicate the full-quality image of a certain image. The third-party application can directly obtain the full-quality image of the image through the image index.

[0091] Alternatively, the image index may only indicate the general category of the image, and through the image index, the third-party application can access the thumbnail, medium-quality image, and full-quality image of the image. In the scenario of sharing images, the third-party application can access the full-quality image file in the file system by default. For example, when a third-party application accesses the folder storing the image through the image index, it only obtains the image from the folder storing the full-quality image. The embodiments of the present application do not limit the specific content of the image index and the specific method for the third-party application to obtain the full-quality image.

[0092] In the above process, the electronic device 100 can generate pictures of different qualities in stages. This is conducive to shortening the user's perceptible photo completion time, ensuring the quality of the picture while improving the user's experience in scenarios such as continuous photo taking. However, due to the differences in the generation time of pictures of various qualities of the photo and the different time points when they are stored in the file system, when the user shares the photos through a third-party application after continuous shooting, if the picture of the corresponding quality of the photo has not been generated or stored in the file system, and the third-party application directly accesses the file system, the picture sharing may fail. If the third-party application waits for the target picture to exist in the file system before accessing the picture, when the generation order of the target picture is low, the response time of the third-party application to the user's sharing operation will be extended, which will also affect the user's experience.

[0093] For reference Figure 3 , Figure 3 The schematic diagram of the picture generation situation of the electronic device 100 is exemplarily shown.

[0094] like Figure 3 As shown, the electronic device 100 can receive a continuous shooting operation from the user and continuously shoot five photos: photo A, photo B, photo C, photo D, and photo E. The electronic device 100 can generate pictures of different qualities for the five photos in sequence according to the shooting order.

[0095] When the electronic device 100 processes image data, it can receive an operation of opening a third-party application and sharing a picture by the user, and display the media index of the third-party application. The media index can display thumbnails stored in the file system for the user to select the picture he wants to share. After the user selects a thumbnail, the third-party application can obtain the full-quality image corresponding to the thumbnail in the file system and share it with the target device or the target application.

[0096] However, if the electronic device 100 has not yet generated a full-quality image corresponding to the picture selected by the user to share, the third-party application cannot obtain the full-quality image of the target photo from the file system, which will cause the picture sharing to fail.

[0097] For example, reference may be made to Figure 3 For example, when the electronic device 100 receives the user's operation to share photo D, the electronic device 100 has generated a thumbnail corresponding to photo D, but has not generated a full-quality image of photo D. In this way, the electronic device 100 can display the thumbnail of photo D in the media index, but when the user chooses to share photo D, the third-party application cannot obtain the full-quality image of photo D in the file system. This will cause the user to complete the operation of sharing photo D but the third-party application fails to share photo D, affecting the user's experience.

[0098] A specific scenario of the third-party application sharing photo D of the electronic device 100 can be referred to Figure 4A and Figure 4B .

[0099] like Figure 4A As shown, the electronic device 100 receives the user's operation of opening a third-party application to share a picture, and can display the media index of the third-party application. The electronic device 100 can display the following Figure 4A The user interface 400A shown in FIG. 400A may include thumbnails 401, 402, 403, 404, 405, and controls 406. The five thumbnails may correspond to the above-mentioned thumbnails. Figure 3 The thumbnails of photos A to E described above, control 406 can be used to send thumbnails corresponding to the photos selected by the user. Thumbnail 404 can be a thumbnail of photo D. The electronic device 100 can respond to the user's click operation on thumbnail 404 and select photo D. Then the electronic device 100 can complete the operation of sending the picture in response to the user's click operation on control 406. However, since the full-quality image of photo D has not been generated and stored in the file system, the electronic device 100 can display the following Figure 4B User interface 400B is shown.

[0100] like Figure 4B As shown, in a possible implementation, the electronic device 100 may display a user interface 400B. The user interface 400B may be a chat window interface of the three-party application. The user interface 400B may include a prompt 407. The prompt 407 may be used to prompt the user that the message has failed to be sent. The prompt 407 may also be in the form of text, pattern, etc., and the specific form of the prompt 407 is not limited in the embodiment of the present application.

[0101] In order to solve the problems described in the above content such as the failure of photo sharing and the long waiting time for sharing, the embodiment of the present application provides a method for sharing pictures, in which the user can set a picture sharing strategy for each application, and the electronic device 100 can be configured with a picture selection service. The picture selection service can be used to intercept the direct access of the application in the electronic device 100 to the file system, and can interact with the file system and the picture optimization service based on the picture sharing strategy set by the application, change the acquisition quality or generation order of the target picture, so that pictures of corresponding quality can be returned to the application in time. This can avoid the situation where the application fails to access the picture from the file system or the access time is too long. The application of the electronic device 100 may include applications such as third-party applications and system built-in applications. The embodiment of the present application does not limit the specific application of sharing pictures with the electronic device 100.

[0102] The following describes the process of the electronic device 100 sharing pictures by using a third-party application when a picture selection service is available in the electronic device 100 as an example.

[0103] like Figure 5 As shown, in an embodiment of the present application, exemplarily, the electronic device 100 may include an application layer, a system service layer and a kernel layer.

[0104] The application layer of the electronic device 100 may include a camera application and a third-party application. The system service layer may include a camera service, a picture optimization service, and a picture selection service. The kernel layer may include a camera driver and a file system.

[0105] Among them, the camera application, third-party application, camera service, picture optimization service, camera driver and file system of the electronic device 100 can refer to the above content. Figure 2 The description is not repeated here.

[0106] and Figure 2 The difference is that the system service layer of the electronic device 100 can also include a picture selection service, which can be used to receive picture access requests from third-party applications and provide an access interface for the third-party applications to access the file system. The access interface may include parameters such as picture index, picture sharing strategy, and return value. After determining the parameters of the picture index and picture sharing strategy, the picture selection service can perform corresponding operations based on the picture sharing strategy of the third-party application and send a return value to the third-party application. The return value may include information such as the target picture and the access result. The specific operations performed by the picture selection service can be referred to in the following content. Figure 6-Figure 9 The description of is not repeated here. It should be understood that Figure 5 The software function module division shown in is only an example, and the electronic device 100 may include more or fewer software modules. In fact, the electronic device 100 may not include the picture selection service, but the electronic device 100 may still perform the operations performed by the picture selection service described below.

[0107] S501. The electronic device 100 sends a photo-taking instruction to the camera service through the camera application.

[0108] For the relevant contents of step S501, please refer to the above contents. Figure 2 The description of step S201 is not repeated here.

[0109] S502. The camera service calls the camera driver to collect the original image data of the picture.

[0110] For the relevant contents of step S502, please refer to the above contents. Figure 2 The description of step S202 is not repeated here.

[0111] S503. The camera service generates a thumbnail corresponding to the image according to the original image data, and saves the thumbnail to the file system.

[0112] For the relevant contents of step S503, please refer to the above contents. Figure 2 The description of step S203 is not repeated here.

[0113] S504 The camera service sends the raw image data to the picture optimization service.

[0114] For the relevant contents of step S504, please refer to the above contents. Figure 2 The description of step S204 is not repeated here.

[0115] S505. The image optimization service optimizes the original image data and saves the medium-quality image and the full-quality image corresponding to the image.

[0116] For the relevant contents of step S505, please refer to the above contents. Figure 2 The description of step S205 is not repeated here.

[0117] Next, we will introduce the sharing process involving the image selection service.

[0118] S506. The third-party application accesses the target image according to the specified sharing strategy.

[0119] When a user shares a picture through a third-party application, the picture selection service can receive an access request from the third-party application. In some instances, the access request of the third-party application may carry a target picture index, a picture sharing strategy, etc. The picture selection service can determine the picture sharing strategy of the third-party application through the access request. In other examples, the electronic device 100 may include a list of applications for a fast sharing strategy, a high-quality sharing strategy, and a balanced sharing strategy, and the picture selection service can obtain the picture sharing strategy adopted by the third-party application by querying the application list. The picture selection service can determine the target picture to be returned based on the picture sharing strategy of the third-party application. The picture sharing strategy of the third-party application can be preset in advance or set by the user when sharing pictures. The embodiments of the present application do not limit the specific setting nodes of the picture sharing strategy of the third-party application and the specific method for the picture selection service to determine the picture sharing strategy of the third-party application.

[0120] S507. The picture selection service detects whether the target picture exists in the file system.

[0121] The image selection service can determine whether there is a full-quality image of the target image selected by the user to share in the file system. If so, the image selection service can obtain the full-quality image of the target image from the file system and send it to the third-party application, which can share the full-quality image.

[0122] S508. The image selection service instructs the image optimization service to generate target images on demand with priority.

[0123] If the image selection service does not detect or obtain the target image in step S507, the image selection service may perform corresponding operations according to the image sharing policy of the third-party application. For example, in one possible implementation, the image selection service may instruct the image optimization service to prioritize the generation of the target image, and the image optimization service may increase the generation priority of the target image, prioritize the processing of the original image data of the target image, and generate a full-quality image or a medium-quality image of the target image.

[0124] In another possible implementation, the picture selection service can obtain other pictures from the file system to replace the target picture and return them to the third-party application. The operation performed by the picture selection service may depend on the picture storage situation in the file system and the picture sharing strategy of the third-party application. In some examples, the picture sharing strategy of the third-party application may include: fast sharing, high-quality sharing, and balanced sharing. Among them, when the third-party application adopts a fast sharing strategy, the picture selection service can return the highest quality picture that already exists in the file system to the third-party application. When the third-party application adopts a high-quality sharing strategy, the picture selection service can instruct the picture optimization service to prioritize the generation of a full-quality image of the target picture and return the full-quality image to the third-party application. When the third-party application adopts a balanced sharing strategy, the picture selection service can make a comprehensive judgment based on the load situation of the picture optimization service of the electronic device 100, and return pictures of corresponding quality to the third-party application.

[0125] S509. The image selection service obtains the target image from the file system and returns it to the third-party application.

[0126] The picture selection service can obtain pictures of the corresponding quality of the target picture according to the picture sharing strategy set by the third-party application and return them to the third-party application. The different quality pictures that the picture selection service can obtain may include the thumbnails, medium quality pictures, and full quality pictures mentioned in the above content.

[0127] Therefore, the pictures obtained by the third-party applications of the electronic device 100 will be affected by the picture sharing strategy and the picture generation situation in the file system. The picture sharing strategy in this solution is described below by taking the user sharing photo D as an example. The picture generation situation of the electronic device 100 in the following process can refer to the above Figure 3 The situation shown in .

[0128] Figure 6 The flowchart is shown as an example when a third-party application adopts a fast sharing strategy.

[0129] like Figure 6 As shown, the electronic device 100 may include a third-party application, a picture selection service, and a file system. The process when the third-party application adopts a fast sharing strategy may include the following steps.

[0130] S601. The picture selection service processes the original image data of photo B.

[0131] At this time, the camera module of the electronic device 100 has sent the original image data of the photo to the picture optimization service. The picture optimization service processes in order and is generating a full-quality image of photo B.

[0132] S602. The third-party application of the electronic device 100 receives the user's operation of sharing the photo D, and sends a picture access request 1 based on the fast sharing strategy.

[0133] The third-party application may be provided with a fast sharing strategy. When receiving an operation of sharing a photo D by a user, the third-party application may send a picture access request 1, which may include an index of the photo D and a fast sharing strategy.

[0134] S603. The image selection service receives the image access request 1, determines that the image index is the index of photo D, and the sharing strategy is fast sharing.

[0135] The picture selection service can obtain the picture access request 1 sent by the third-party application, and determine that the picture index in the picture access request 1 is the index of photo D, and the picture sharing strategy is the fast sharing strategy. The picture selection service can perform corresponding operations based on the index of photo D and the fast sharing strategy. For specific operations, please refer to the operations of step S604 to step S606 in the following content.

[0136] When the picture selection service determines that the picture sharing strategy is the quick sharing strategy and the picture index is the index of photo D, the picture selection service can interact with the file system of the electronic device 100 to detect the picture generation status of photo D.

[0137] S604. The image selection service searches the file system for photo D and determines that a thumbnail and a medium-quality image of photo D exist, but a full-quality image of photo D does not exist.

[0138] The image selection service can determine the image generation status by querying the images of different qualities in the file system. The image selection service can query the file system for the related images of photo D according to the image index of photo D. The image generation status of photo D can refer to the above Figure 3When the image selection service determines that the highest quality image of the generated photo D is a medium quality image, and the sharing strategy is a fast sharing strategy, the image selection service may choose to obtain the medium quality image of the photo D.

[0139] S605. The picture selection service of the electronic device 100 obtains a medium-quality picture of the photo D from the file system.

[0140] S606. The picture selection service of the electronic device 100 returns the picture access result 1 to the third-party application, and the picture access result 1 includes the medium-quality picture of the photo D.

[0141] After the image selection service obtains the medium-quality image of photo D from the file system, it may return the image access result 1 of photo D to the third-party application. The image access result 1 may include the medium-quality image of photo D.

[0142] Optionally, the picture access result 1 may also include information such as the image quality and file identifier of the medium quality image of photo D. The file identifier of the medium quality image of photo D may be used to identify the medium quality image in the file system, and the electronic device 100 may read and write the medium quality image of photo D through the file identifier.

[0143] The image access result 1 can also be used to identify whether the image access request is successful. When the request is successful, the image access result 1 can include the image and parameters described in the above content. When the request fails, the image access result 1 can also include invalid parameters, internal errors and other data.

[0144] S607. The third-party application of the electronic device 100 obtains and shares the medium-quality image of the photo D.

[0145] After the third-party application of the electronic device 100 obtains the medium-quality image of the photo D, it can share the medium-quality image to the sharing target.

[0146] In this way, the third-party application of the electronic device 100 can ensure that the picture is successfully shared with the sharing target based on the fast sharing strategy. Generally, considering the browseability of the picture and the fast generation speed of the medium-quality picture, in general, when the user takes a picture and shares it, at least the medium-quality picture of the picture can exist in the file system.

[0147] Therefore, the fast sharing strategy can be set to obtain the highest quality image among the medium quality image and the full quality image of the target image in the file system. When the full quality image of the target image exists in the file system, the full quality image can be returned normally.

[0148] When the full-quality image of the target image does not exist in the file system, but a medium-quality image of the target image exists, you can choose to return the medium-quality image to the third-party application.

[0149] When the file system includes neither a full-quality image nor a medium-quality image of the target image, the image selection service may wait for the medium-quality image of the target image to be generated before returning it to the third-party application.

[0150] In this way, the third-party application can respond to the user's picture sharing operation immediately and send a browsable picture to the sharing target immediately. In some examples, the quick sharing strategy can also be set to a sharing strategy that includes thumbnails. When the file system does not include medium-quality and full-quality images of the target image, the image selection service can directly obtain a thumbnail of the target image and return it to the third-party application for sharing. The lower limit of the image access quality of the quick sharing strategy can be set by the user, and the embodiments of the present application do not limit this.

[0151] Third-party applications can also access photo D based on the high-quality sharing strategy. Figure 7 The following is an example of a flow chart showing the process of using a quality sharing strategy by three parties. Figure 7 As shown, the electronic device 100 may include a third-party application, a picture selection service, a picture optimization service, and a file system. The process when the third-party application adopts a high-quality sharing strategy may include the following steps.

[0152] S701. The picture selection service processes the original image data of photo B.

[0153] S702. The third-party application of the electronic device 100 receives the user's operation of sharing photo D, and sends a picture access request 2 based on the high-quality sharing strategy.

[0154] When the third-party application of the electronic device 100 adopts a high-quality sharing strategy, the generated picture access request 2 may include the picture index of the photo D and the high-quality sharing strategy.

[0155] S703. The picture selection service of the electronic device 100 receives the picture access request 2, determines that the picture index is the index of the photo D, and the sharing strategy is high-quality sharing.

[0156] The picture selection service can receive the picture access request 2 and provide a picture access interface for the third-party application. After the picture selection service obtains the index and high-quality sharing strategy of the photo D from the picture access request 2 and determines the two parameters of the picture index and the picture sharing strategy, the picture selection service can perform corresponding operations based on the photo D index and the high-quality sharing strategy. For specific operations, please refer to the description of steps S704-S708 in the following content, which will not be repeated here.

[0157] S704. The picture selection service of the electronic device 100 searches the file system for the photo D and detects that there is no full-quality image of the photo D in the file system.

[0158] The image generation of photo D in the file system can refer to the above Figure 3 The electronic device 100 has generated a thumbnail image and a medium-quality image of the photo D and stored them in the file system, but has not generated a full-quality image of the photo D.

[0159] S705. The image selection service of the electronic device 100 instructs the image optimization service to generate a full-quality image of photo D first.

[0160] When it is detected that there is no full-quality image of photo D in the file system, the image selection service can send an instruction to the image optimization service based on the high-quality sharing strategy, instructing the image optimization service to give priority to generating a full-quality image of photo D.

[0161] S706. The picture optimization service of the electronic device 100 interrupts processing of the original image data of photo B and generates a full-quality image of photo D.

[0162] When the third-party application adopts a high-quality sharing strategy, it can send a picture access request including the quality sharing strategy to the picture selection service. After the picture selection service confirms that the sharing strategy of the access request is the quality sharing strategy, it can first detect whether there is a full-quality image of the target picture in the file system. Based on the picture index of photo D in the picture access request, the picture selection service detects that there is no full-quality image of photo D in the file system.

[0163] like Figure 3 As shown, at this time, only the full-quality image of photo A exists in the file system, and according to the generation order, the image optimization service of the electronic device 100 will first generate the full-quality images of photo B and photo C, and then generate the full-quality image of photo D.

[0164] When the third-party application adopts a high-quality sharing strategy, the image selection service can instruct the image optimization service to prioritize generating a full-quality image of photo D. The image optimization service can increase the priority of the image generation task of photo D to before photos B and C.

[0165] like Fig. 8A As shown, in general, the picture optimization service of the electronic device 100 can generate pictures in the order of taking pictures, that is, in the order of photo A, photo B, photo C, photo D, and photo E. If the pictures are generated in this order, the third-party application needs to wait for the full-quality pictures of photo B and photo C to be generated before it can obtain the full-quality picture of photo D, which may cause the user to wait too long.

[0166] Therefore, the image selection service can instruct the image optimization service to change the order of image generation tasks. Figure 8BThe image optimization service can stop processing the original image data of photo B, give priority to generating the full-quality image of photo D, and then process the remaining photos in the order in which they were taken.

[0167] The above content only involves the order of generating tasks between photos. Optionally, for the same photo, taking photo D as an example, if the thumbnail and medium-quality image of photo D are not generated at this time, the image optimization service can still give priority to generating the full-quality image of photo D for sharing, and then generate the thumbnail and medium-quality image of photo D. This can make the electronic device 100 respond to the user's sharing operation more quickly.

[0168] Optionally, during the process of the picture optimization service generating a full-quality image of photo D, a prompt message is displayed on the display interface of the electronic device 100 , and the prompt message can be used to prompt the user that the full-quality image of photo D is being generated.

[0169] S707. The picture optimization service of the electronic device 100 stores the full-quality image of the photo D in the file system.

[0170] After the full-quality image of photo D is generated, the image optimization service may store the full-quality image of photo D in the file system.

[0171] S708. The picture selection service of the electronic device 100 obtains a full-quality picture of the photo D from the file system.

[0172] After the image optimization service may store the full-quality image of photo D in the file system, the image selection service may obtain the full-quality image of photo D from the file system based on the image index of photo D.

[0173] S709. The picture selection service of the electronic device 100 returns the picture access result 2 to the third-party application, and the picture access result 2 includes the full-quality picture of the photo D.

[0174] After the full quality image of photo D is stored in the file system, the image selection service can obtain the full quality image. Then, the image selection service can return the image access result 2 to the third-party application. The image access result 2 may include the full quality image of photo D, and may also include data such as image quality and file identification. The image access result 2 can also be used to feedback whether the image access request is successful. For specific content, please refer to the description of step S606 in the above content, which will not be repeated here.

[0175] S710. The third-party application of the electronic device 100 obtains and shares the full-quality image of the photo D.

[0176] After the third-party application obtains the full-quality image of photo D, it can complete the sharing operation of photo D and send the full-quality image of photo D to the sharing target.

[0177] In this way, the electronic device 100 can increase the generation priority of the target image to ensure that the full-quality image of the target image can be generated in the first place when the application accesses the file system. While ensuring the quality of the shared image, the failure of the image sharing caused by the failure of the third-party application to obtain the image is avoided. The success rate of users sharing full-quality images is improved, the waiting time is reduced, and the user experience is improved.

[0178] In some examples, the third-party applications of the electronic device 100 can also use a balanced sharing strategy to access pictures. When the balanced sharing strategy is used, the picture selection service will judge the load of the electronic device 100. When the load is low, the picture selection service can give priority to full-quality pictures. When the load is high, the picture selection service can give priority to the currently existing highest-quality pictures, or can give priority to medium-quality pictures.

[0179] Fig. 9 The figure shows a flow chart of the electronic device 100 sharing pictures using a balanced sharing strategy under different load conditions.

[0180] like Fig. 9 As shown, the access process when the load is low may include the following steps.

[0181] S901. The third-party application of the electronic device 100 receives the user's operation of sharing photo D, and sends a picture access request 3 based on the balanced sharing strategy.

[0182] When the strategy for sharing pictures by the third-party application is a balanced sharing strategy, upon receiving an operation of the user sharing a photo D, a picture access request 3 including the balanced sharing strategy and the index of the photo D may be generated and sent to the picture selection service.

[0183] S902. The picture selection service of the electronic device 100 receives the picture access request 3, determines that the picture index is the index of the photo D, and the sharing strategy is balanced sharing.

[0184] The specific process of the third-party application receiving the user operation and generating the access request, and the image selection service receiving and confirming the access request content can refer to the description of step S602 and step S603 in the above content, which will not be repeated here. The sharing strategy of the image access request 3 is balanced sharing.

[0185] S903. The picture selection service of the electronic device 100 queries the photo D and detects that there is no full-quality image of the photo D in the file system.

[0186] The image selection service can also confirm whether a full-quality image of photo D exists in the file system. If not, the next step can be performed.

[0187] It should be understood that the picture sharing strategy in the embodiments of the present application takes effect in scenarios where there is no full-quality image of the target image in the file system. If a full-quality image already exists, the third-party application can directly obtain the full-quality image for sharing.

[0188] S904. The picture selection service of the electronic device 100 determines whether the load of the electronic device 100 is lower than a preset threshold.

[0189] After the electronic device 100 determines that the sharing strategy is balanced sharing, the load condition of the electronic device 100 may be confirmed.

[0190] If the electronic device 100 is currently processing fewer tasks and the device resources are idle, the picture selection service can confirm that the load on the electronic device 100 is relatively low.

[0191] In a possible implementation, the electronic device 100 may include a central processor unit (CPU), a graphics processing unit (GPU), etc. The electronic device 100 may process image optimization tasks and image generation tasks through the CPU and GPU. The CPU and GPU of the electronic device 100 are also used to process other tasks of the electronic device 100. If there are many tasks, the CPU and GPU occupancy rates are high, and the electronic device 100 may not be able to generate the target image in time. The image selection service can determine the load of the electronic device 100 by the occupancy rates of the CPU and GPU.

[0192] Exemplarily, the image selection service can detect the occupancy rates of the CPU and GPU. When the occupancy rate of the CPU is lower than the preset threshold 1, and / or the occupancy rate of the GPU is lower than the preset threshold 2, the image selection service can determine that the CPU and GPU occupancy rates are low, and at this time the image selection service can determine that the load of the electronic device 100 is lower than the preset threshold. At this time, the electronic device 100 can allocate resources for processing image optimization tasks and image generation tasks in a timely manner, and can support the image optimization service to perform operations such as prioritizing the generation of target full-quality images. Among them, the preset threshold 1 and the preset threshold 2 can be pre-stored in the electronic device 100, or they can be generated in real time by the electronic device 100 according to the device operating status during operation.

[0193] In some examples, when the load of the electronic device 100 is lower than a preset threshold, the electronic device 100 may perform the following process.

[0194] S905. The picture selection service of the electronic device 100 instructs the picture optimization service to generate a full-quality picture of photo D first.

[0195] S906. The image optimization service of the electronic device 100 increases the priority of the image generation task of photo D, and gives priority to generating a full-quality image of photo D.

[0196] Since the image optimization service has a low load and can generate a full-quality image of photo D in a timely manner, the image selection service can instruct the image optimization service to increase the priority of the image generation task for photo D.

[0197] For step S905 and step S906, please refer to the description of step S705 and step S706 in the above content, which will not be repeated here.

[0198] After the full quality image of photo D is generated, the third-party application of the electronic device 100 can obtain the full quality image through the process of steps S907-S910 as follows and send it to the sharing target. The specific process can refer to the description of steps S707-S710 in the above content, which will not be repeated here.

[0199] S907. The image optimization service of the electronic device 100 stores the full-quality image of the photo D to the file system.

[0200] S908. The picture selection service of the electronic device 100 obtains a full-quality picture of the photo D from the file system.

[0201] S909. The picture selection service of the electronic device 100 returns the picture access result 2 to the third-party application, where the picture access result 2 includes a full-quality picture of photo D.

[0202] S910. A third-party application of the electronic device 100 obtains and shares a full-quality image of the photo D.

[0203] When the picture selection service detects that the electronic device 100 is simultaneously executing other picture optimization tasks or picture generation tasks other than those for continuous shooting photos, the occupancy rates of the CPU and GPU of the electronic device 100 may be determined.

[0204] When the CPU occupancy rate is higher than the preset threshold 1, and / or the GPU occupancy rate is higher than the preset threshold 2, the picture selection service may determine that the CPU and GPU occupancy rates are high, and the picture selection service may determine that the load of the electronic device 100 is higher than the preset threshold. At this time, it is difficult for the electronic device 100 to allocate resources in time to process the full-quality image generation task of the photo D.

[0205] Alternatively, in some examples, the image selection service may detect that the task of generating the full-quality image of photo D is more complex. For example, generating the full-quality image of photo D requires processing by multiple image algorithms, and the image generation time is long. That is, when the task of generating the full-quality image of photo D itself causes the load of electronic device 100 to increase, this situation may also be confirmed as the load of electronic device 100 being higher than a preset threshold.

[0206] In some examples, when the load of the electronic device 100 is higher than a preset threshold, the electronic device 100 may perform the following process.

[0207] S911. The picture selection service of the electronic device 100 obtains a medium-quality picture of the photo D from the file system.

[0208] When the full-quality image of photo D is difficult to generate in time, and a medium-quality image of photo D already exists in the file system, the image selection service may choose to obtain the medium-quality image of photo D instead of the full-quality image based on a balanced sharing strategy.

[0209] S912. The picture selection service of the electronic device 100 returns the picture access result 1 to the third-party application, where the picture access result 1 includes a medium-quality picture of photo D.

[0210] S913. The third-party application of the electronic device 100 obtains and shares the medium-quality image of photo D.

[0211] Finally, the third-party application can send the medium-quality image of photo D to the sharing target in a timely manner, thereby achieving a quick response to the user's sharing operation and avoiding the user waiting due to the time-consuming generation of the full-quality image of photo D.

[0212] In this way, the electronic device 100 can adaptively adjust the picture quality of the shared picture according to the load of the electronic device 100 itself, so that the electronic device 100 can at least share pictures that are browsable under different load conditions. This avoids the situation where the picture sharing fails due to the high load of the electronic device 100 or the target picture is not generated.

[0213] In a possible implementation, the picture sharing strategy can also be applied to the scenario where a user shares multiple pictures at one time. Figure 3 The picture generation state shown in FIG. 1 introduces a scenario in which a user shares multiple pictures at one time.

[0214] 1. The third-party application of the electronic device 100 shares multiple pictures based on the fast sharing strategy.

[0215] In some examples, a third-party application can adopt a fast sharing strategy. If a third-party application receives an operation from a user to share multiple pictures, it can obtain the highest quality pictures generated for each of the multiple pictures through the picture selection service for sharing. For example, after a third-party application receives an operation from a user to share photos A, C, and E, it can send a picture access request that includes the index of photo A, the index of photo C, the index of photo E, and a fast sharing strategy. The picture selection service intercepts the access request and determines the picture generation status of photos A, C, and E in the file system. Figure 3As shown, the full-quality image of photo A has been generated, the medium-quality image of photo C has been generated, the full-quality image has not been generated, and neither the medium-quality image nor the full-quality image of photo E has been generated. Therefore, the image selection service can obtain the highest-quality image among the generated photos and return them, namely, the full-quality image of photo A, the medium-quality image of photo C, and the thumbnail of photo E, and return the images to the third-party application. Alternatively, if the lower limit of the image access quality of the fast sharing strategy is set to a medium-quality image by the device, then after obtaining the full-quality image of photo A and the medium-quality image of photo C, the image selection service can also instruct the image optimization service to increase the task of generating the medium-quality image of photo E, and quickly generate a medium-quality image of photo E to return to the third-party application.

[0216] 2. The third-party applications of the electronic device 100 share multiple pictures based on the high-quality sharing strategy.

[0217] In other examples, third-party applications may also adopt a high-quality sharing strategy. If a third-party application receives an operation from a user to share multiple pictures, the picture selection service may be used to instruct the picture optimization service to prioritize generating full-quality images of the multiple pictures. For example, after a third-party application receives an operation from a user to share photos A, C, and E, it may send a picture access request that includes the index of photo A, the index of photo C, the index of photo E, and a high-quality sharing strategy. After the picture selection service intercepts the request, it detects whether full-quality images of photos A, C, and E exist in the file system based on the high-quality sharing strategy. Figure 3 In the picture generation status shown, when the picture selection service detects that the full-quality image of photo A has been generated but the full-quality images of photos C and E have not been generated, the picture optimization service can be instructed to adjust the image generation task priority of photos C and E to before that of photo B, and give priority to generating full-quality images of photos C and E.

[0218] 3. The three-party applications of the electronic device 100 share multiple pictures based on a balanced sharing strategy.

[0219] In other examples, the third-party application can also adopt a balanced sharing strategy. If the third-party application receives an operation from a user to share multiple pictures, the priority of the picture generation task can be comprehensively adjusted through the picture selection service. For example, after the third-party application receives an operation from a user to share photos A, C, and E, it can send a picture access request including the index of photo A, the index of photo C, the index of photo E, and the balanced sharing strategy.

[0220] After intercepting the request, the image selection service detects the load of the electronic device 100 based on the balanced sharing strategy. If it is detected that the load of the electronic device 100 is high, the image selection service can adjust the priority of the image generation task based on the generation speed.

[0221] In the process of sharing multiple images, the image selection service can arrange the ratio of full-quality images and medium-quality images in the shared images according to the specific load conditions of the electronic device 100. For example, when the load conditions of the electronic device 100 only support the timely generation of full-quality images of three images, the image selection service can select three images from the target images to be shared to generate full-quality images. For the remaining target images, if full-quality images already exist, the image selection service can obtain their full-quality images. If full-quality images are not generated, the image selection service can obtain medium-quality images.

[0222] Exemplarily, the picture selection service detects that the full quality image of photo A has been generated, the medium quality image of photo C has been generated, and the medium quality image and full quality image of photo E have not been generated. In this case, the picture selection service can determine that the full quality image of photo A can be shared directly, although the full quality image of photo C has not been generated, the quality image can also be used for sharing, while there is no picture that can be used to share for photo E, and the load of the electronic device 100 is relatively high at this time. Then the picture selection service can give priority to obtaining the full quality image of photo A and the medium quality image of photo C, and instruct the picture optimization service to give priority to generating the full quality image or medium quality image of photo E. Among them, the picture selection service may not process the full quality image generation task of photo C, but only obtain the medium quality image of photo C and return it to the third-party application. In this way, the user waiting time caused by the busy picture optimization service can be reduced on the basis of ensuring that at least multiple pictures selected by the user can be successfully shared.

[0223] If the image selection service detects that the load of the electronic device 100 is low, that is, the image optimization service can give priority to generating target images without affecting other functions, the image selection service can adjust the image generation task priority of photos C and E to before photo B, and obtain full-quality images of photos C and E. Optionally, the image selection service can also judge the task volume of the user sharing multiple images at a time. If the time required to generate full-quality images of all target images is too long or the required image optimization resources are large, the image selection service can selectively obtain medium-quality images of some images and return them to the third-party application. The embodiment of the present application does not limit the specific execution strategy of the balanced sharing strategy.

[0224] In the above content, the picture sharing strategy adopted by the third-party application can be set by the user, and each third-party application can only adopt one picture sharing strategy at the same time. Fig.10 and Fig.11 A schematic diagram exemplarily shows a user setting an application's picture sharing strategy.

[0225] like Fig.10As shown, the electronic device 100 can display a user interface 1000, which can be a certain application permission management interface of the electronic device 100. The user interface 1000 can include a control 1001. The control 1001 can be used to open the picture sharing policy management interface of the application. The electronic device 100 can respond to the user's click operation on the control 1001 and display the following Fig.11 User interface 1100 is shown. User interface 1100 may include controls 1101, 1102, and 1103. These three controls are used to set the application to adopt fast sharing, high-quality sharing, and balanced sharing strategies, respectively. For example, electronic device 100 can set the image sharing strategy of the application to a high-quality sharing strategy in response to the user's operation on control 1102. In this way, when the user shares a picture through the application, the application can preferentially obtain the full-quality picture of the target picture through the picture selection service.

[0226] In this way, the electronic device 100 can determine the target quality of the shared picture through the picture sharing strategy. Fig.12 A schematic diagram of a process of sharing a picture by an electronic device 100 is exemplarily shown.

[0227] like Fig.12 As shown, the process of sharing pictures by the electronic device 100 may include the following steps.

[0228] S1201. In response to a first operation, a first picture is selected, and the electronic device 100 includes a first quality map of the first picture.

[0229] The first operation may be for the user to open the media index interface of the application and select the first picture in the media index interface. Figure 4A The description is not repeated here.

[0230] The first quality map of the first picture may be the medium quality map described in the above embodiment. The first quality map of the first picture may include a first index, which may be used to indicate that the picture corresponds to the first picture and the picture quality of the picture is the first quality.

[0231] S1202. In response to the second operation, share the target quality map of the first image based on the image sharing strategy.

[0232] The second operation may be an operation in which the user clicks a send control, for example, Figure 4A As shown, after the user selects the picture, the click operation on the control 406 can be called the second operation. The image quality of the target quality map can be the first quality or the second quality. The second quality is higher than the first quality. The second quality map of the first picture can be the full quality map described in the above embodiment.

[0233] The picture sharing strategy may be set by the user or may be set by default by the electronic device 100. The picture sharing strategy may include a fast sharing strategy, a high-quality sharing strategy, and a balanced sharing strategy.

[0234] When the picture sharing strategy is the fast sharing strategy, the target quality map of the first picture shared by the electronic device 100 may be the first quality map or the second quality map of the first picture.

[0235] When the picture sharing strategy is a high-quality sharing strategy, the target quality map of the first picture shared by the electronic device 100 may include the second quality map of the first picture.

[0236] When the picture sharing strategy is a balanced sharing strategy, the target quality map of the first picture shared by the electronic device 100 may be the first quality map of the first picture, or may be the second quality map of the first picture.

[0237] The specific process of the electronic device sharing the target quality map of the first image based on different image sharing strategies can refer to the above content. Figure 6 , Figure 7 and Fig. 9 The description is not repeated here.

[0238] An exemplary electronic device 100 provided in an embodiment of the present application is introduced below.

[0239] Fig.13 It is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.

[0240] The embodiment is described in detail below by taking the electronic device 100 as an example. It should be understood that the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0241] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a sensor module 180, a camera 193, a display screen 194, etc. The sensor module 180 may include a pressure sensor 180A, a distance sensor 180F, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, etc.

[0242] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0243] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0244] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0245] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0246] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0247] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0248] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0249] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0250] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS). In some examples, the electronic device 100 may share pictures with other devices via the wireless communication module 160 or the mobile communication module 150.

[0251] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0252] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some examples, the display screen 194 of the electronic device 100 can be used to display user interfaces such as a chat interface of a three-party application, a picture selection interface, and an application permission management interface.

[0253] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0254] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0255] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0256] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0257] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0258] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data (such as original image data) created during the use of the electronic device 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0259] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0260] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0261] The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.

[0262] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0263] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0264] The present application also provides an electronic device, which may include a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement a method executed on the electronic device side (central control device, hub device, smart home device, etc.) in any of the above embodiments.

[0265] The present application also provides a chip system, which includes at least one processor, for implementing the method executed by the electronic device side in any of the above embodiments. In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0266] A chip system can be composed of chips or include chips and other discrete devices.

[0267] Optionally, there may be one or more processors in the chip system. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0268] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0269] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0270] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method executed on the electronic device side in any of the above embodiments is implemented.

[0271] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the method executed on the electronic device side in any of the above embodiments.

[0272] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0273] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0274] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0275] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A picture sharing method, characterized in that: The method is applied to an electronic device, and the method comprises: receiving a first operation of selecting a first picture, the electronic device comprising a first quality map of the first picture; In response to the second operation, a target quality map of the first image is shared based on an image sharing strategy, wherein the image quality of the target quality map of the first image is higher than or equal to the first quality map of the first image, and the image sharing strategy is a strategy for determining the image quality of the target quality map, wherein the image quality includes at least a first quality and a second quality, and the first quality is lower than the second quality.

2. The method according to claim 1, characterized in that In response to the second operation, sharing the target quality map of the first picture based on the picture sharing strategy includes: In response to the second operation and the electronic device not including the second quality map of the first picture, generating a second quality map of the first picture; A second quality image of the first image is shared.

3. The method according to claim 2, characterized in that After generating the second quality map of the first picture, the method further includes: A second quality map of a second picture is generated, wherein a time point at which the first quality map of the second picture is generated is earlier than a time point at which the first quality map of the first picture is generated.

4. The method according to claim 2 or 3, characterized in that: Before generating the second quality map of the first picture, the method further includes: A first prompt is displayed, where the first prompt is used to indicate that the electronic device is generating a second quality map of the first picture.

5. The method according to any one of claims 1 to 4, characterized in that: In response to the second operation, sharing the target quality map of the first picture based on the picture sharing strategy includes: In response to the second operation and the electronic device including a second quality map of the first picture, determining the second quality map of the first picture as a target quality map of the first picture; A second quality image of the first image is shared.

6. The method according to claim 1, characterized in that In response to the second operation, sharing the target quality map of the first picture based on the picture sharing strategy includes: In response to the second operation and the electronic device not including the second quality map of the first picture, determining the first quality map of the first picture as a target quality map of the first picture; A first quality map of the first image is shared.

7. The method according to any one of claims 2 to 5, characterized in that In response to the second operation, before sharing the target quality map of the first picture based on the picture sharing strategy, the method further includes: In response to a third operation, a third picture is selected, and the electronic device includes the first quality map of the third picture and does not include the second quality map of the third picture; The method further comprises: In response to the second operation, the first quality map of the third picture is shared.

8. The method according to any one of claims 1 to 5 and 7, characterized in that: The load of the electronic device is lower than or equal to a first threshold, and the first threshold is a maximum value of the electronic device running at a low load.

9. The method according to claim 5 or 6, characterized in that: The load of the electronic device is higher than or equal to a second threshold value, and the second threshold value is a minimum value of the electronic device running at a high load.

10. The method according to any one of claims 1 to 9, characterized in that The picture sharing strategy can be set by the user.

11. The method according to any one of claims 1 to 10, characterized in that The first quality map of the first picture includes a first index, where the first index is used to indicate the first quality map of the first picture.

12. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 11.

13. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

14. A chip system, the chip system is applied to electronic equipment, characterized in that: The chip system includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-11.

15. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Method, system and device for sharing pictures

    CN103179156A

  • Image management method and device

    CN107239203A

  • Methods and devices of sharing image content

    CN107908337A

  • Image file sharing method and device, mobile terminal and storage medium

    CN108055587A

  • Video image processing method and device, video system, equipment and storage medium

    CN109769143A