Picture sharing method and related apparatus

By prioritizing the generation and display of full-quality images, the problem of sharing delays during the processing of multiple images on electronic devices is solved, ensuring the success rate of image sharing and a good user experience.

WO2026061509A1PCT designated stage Publication Date: 2026-03-26HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-09-20
Publication Date
2026-03-26

AI Technical Summary

Technical Problem

When electronic devices process multiple images, the inability to obtain a full-quality image in a timely manner can lead to image sharing failures or delays, impacting the user experience.

Method used

By adjusting the acquisition quality of target images, prioritizing the generation of full-quality images, and prompting users during the generation process, the image sharing strategy is adaptively adjusted to ensure rapid response to user actions.

Benefits of technology

It improved the success rate of image sharing, reduced waiting time, and enhanced the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025122755_26032026_PF_FP_ABST
    Figure CN2025122755_26032026_PF_FP_ABST
Patent Text Reader

Abstract

A picture sharing method and a related apparatus. In the method, an electronic device may be configured with picture sharing strategies. During the process of a user sharing pictures by means of the electronic device, after the user selects a target picture, the electronic device may share a target-quality picture of the target picture on the basis of a picture sharing strategy. The picture quality of the target-quality picture may at least comprise first quality and second quality, and the electronic device may flexibly select the picture quality of the target-quality picture on the basis of the picture sharing strategy and the load condition of the electronic device. Therefore, the situation in which the electronic device fails to share a picture or the time for sharing a picture 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

Picture sharing method and related apparatus

[0001] The present application claims priority to the Chinese patent application No. 202411336914.5, filed on September 23, 2024, with the State Intellectual Property Office of China, and entitled "Picture sharing method and related apparatus", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminal and communication, and in particular to a picture sharing method and related apparatus. BACKGROUND

[0003] After obtaining the picture data, the electronic device can generate a thumbnail corresponding to the picture, and process the picture data to obtain a medium quality picture and a full quality picture corresponding to the picture.

[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 the picture thumbnail to share the picture. Generally, the electronic device shares a full quality picture of the picture, and the full quality picture can be used by the user to zoom in and view the details of the picture. In some scenarios, if the electronic device continuously obtains multiple pictures, a thumbnail of one of the pictures has been generated, but a full quality picture of the picture has not been generated. At this time, the electronic device cannot respond to the user's picture sharing operation, and cannot obtain the full quality picture of the picture in time. This can cause the electronic device to fail to share the picture, or the sharing waiting time is too long, which affects the user's experience.

[0005] Therefore, how to solve the picture loss or sharing delay problem caused by the user sharing the picture when the electronic device processes multiple pictures is worth considering. SUMMARY

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

[0007] In a first aspect, the present application provides a picture sharing method, the method is applied to an electronic device, the method comprises: selecting a first picture in response to a first operation, the electronic device comprising a first quality picture of the first picture; sharing a target quality picture of the first picture based on a picture sharing strategy in response to a second operation, the picture quality of the target quality picture of the first picture being higher than or equal to the first quality picture of the first picture, the picture sharing strategy being a strategy for determining the picture quality of the target quality picture, the picture quality comprising 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 picture of the picture, and the picture corresponding to the second quality being the second quality picture of the picture.

[0008] The picture sharing method provided by the first aspect can be implemented, so that the electronic device can adjust the acquisition quality of the target picture when the user shares the target picture through an application, thereby enabling the application to share the picture of the corresponding quality in time. This can avoid the situation that the application fails to acquire the picture from the file system or takes too long to acquire the picture, thereby ensuring the user experience when the user shares the picture.

[0009] The first quality picture can be a medium quality picture in the embodiments described below. The second quality picture can be a full quality picture in the embodiments described below. The first quality can include the resolution of the first quality picture, and the second quality can include the resolution of the second quality picture.

[0010] In combination with the first aspect, the method further comprises: generating the second quality picture of the first picture in response to the second operation and the electronic device not comprising the second quality picture of the first picture; and sharing the second quality picture of the first picture.

[0011] In this way, the electronic device can ensure that the full quality picture of the target picture can be generated in the first time when the application accesses the file system by improving the generation priority of the target picture. This avoids the picture sharing failure caused by the failure of the third-party application to acquire the picture, ensures the quality of the shared picture, improves the success rate of the user sharing the full quality picture, reduces the waiting time, and improves the user experience.

[0012] In combination with the first aspect, the method further comprises: generating the second quality picture of the second picture after generating the second quality picture of the first picture, the first quality picture of the second picture being generated at a time earlier than the first quality picture of the first picture.

[0013] In this way, the electronic device can generate the full quality picture of the target picture in priority when sharing the target picture, and suspend the generation task of other pictures, thereby improving the response speed to the user sharing operation.

[0014] With reference to the first aspect, before generating the second quality map of the first picture, the method further includes: displaying a first prompt, the first prompt being 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 picture is being generated when generating the full-quality map, avoiding misunderstanding and repeated operation of the user when waiting.

[0016] With reference to the first aspect, the sharing, in response to the second operation, of 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; and sharing the second quality map of the first picture.

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

[0018] With reference to the first aspect, the sharing, in response to the second operation, of 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 that the first quality map of the first picture is the target quality map of the first picture; and sharing the first quality map of the first picture.

[0019] In this way, the electronic device can share the highest quality picture in the generated pictures of the target picture based on the fast sharing strategy when the highest quality picture of the target picture has not been generated, which can ensure that the electronic device can quickly respond to the sharing operation of the user and successfully share the picture to the sharing target on the basis of maintaining a certain picture quality, thereby guaranteeing the use experience of the user.

[0020] With reference to the first aspect, before the sharing, in response to the second operation, of the target quality map of the first picture based on the picture sharing strategy, the method further includes: in response to a third operation, selecting a third picture, the electronic device including a first quality map of the third picture and not including a second quality map of the third picture; and the method further includes: in response to the second operation, sharing the first quality map of the third picture.

[0021] In this way, the electronic device can support the user to share multiple pictures at a time and adaptively adjust the target sharing quality of the multiple pictures. When the load condition of the electronic device only supports the generation of the full-quality map of part of the target pictures, the electronic device can fully utilize the performance of the electronic device and maximize the number of the full-quality maps of the shared target pictures, and ensure that the other pictures in the target pictures can also be shared in the form of the medium-quality map.

[0022] In combination with the first aspect, the load of the electronic device is lower than or equal to a first threshold value, the first threshold value being a highest value of the electronic device running in a low load state.

[0023] In this way, the electronic device can adaptively adjust the picture quality of the shared picture according to the load condition of the electronic device itself, so that the electronic device can preferentially generate a full-quality picture of the target picture in a lower load condition. The spare load of the electronic device is fully utilized to ensure the user experience when sharing pictures.

[0024] Exemplarily, the first threshold value can be determined by the occupancy rate of the central processor and the graphics processor 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, the second threshold value being a lowest value of the electronic device running in a high load state.

[0026] In this way, the electronic device can adaptively adjust the picture quality of the shared picture according to the load condition of the electronic device itself, so that the electronic device can at least share a browsable picture in different load conditions. The situation of picture sharing failure caused by high load or no target picture generated is avoided, and the user experience is ensured.

[0027] Exemplarily, the second threshold value can be determined by the occupancy rate of the central processor and the graphics processor of the electronic device, and the second threshold value is higher than or equal to the first threshold value.

[0028] In combination with the first aspect, the first quality picture of the first picture comprises a first index, the first index being used to indicate the first quality picture 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, the processor executing 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, which stores a computer program, the computer program being executed by a processor to implement the method described in the first aspect.

[0032] In a fourth aspect, the present application provides a chip system applied to an electronic device, characterized in that the chip system comprises one or more processors, the processor being used to call computer instructions to make the electronic device execute the method described in the first aspect.

[0033] In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, 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 achieved thereby can refer to the beneficial effects in the corresponding method, which will not be described here again. BRIEF DESCRIPTION OF DRAWINGS

[0035] FIG. 1A is a schematic diagram of a photographing interface of an electronic device 100 according to an embodiment of the present application;

[0036] FIG. 1B is a schematic diagram of an album interface of the electronic device 100 according to an embodiment of the present application;

[0037] FIG. 1C is a schematic diagram of a large image interface of the electronic device 100 according to an embodiment of the present application;

[0038] FIG. 1D is a schematic diagram of a picture zoom-in scene of the electronic device 100 according to an embodiment of the present application;

[0039] FIG. 2 is a schematic diagram of a software structure of the electronic device 100 according to an embodiment of the present application;

[0040] FIG. 3 is a schematic diagram of picture generation of the electronic device 100 according to an embodiment of the present application;

[0041] FIG. 4A is a schematic diagram of a media index interface of the electronic device 100 according to an embodiment of the present application;

[0042] FIG. 4B is a schematic diagram of a three-party application chat interface of the electronic device 100 according to an embodiment of the present application;

[0043] FIG. 5 is a schematic diagram of another software structure of the electronic device 100 according to an embodiment of the present application;

[0044] FIG. 6 is a schematic diagram of a picture sharing process of the electronic device 100 based on a fast sharing strategy according to an embodiment of the present application;

[0045] FIG. 7 is a schematic diagram of a picture sharing process of the electronic device 100 based on a high-quality sharing strategy according to an embodiment of the present application;

[0046] FIG. 8A is a schematic diagram of a picture generation priority of the electronic device 100 according to an embodiment of the present application;

[0047] FIG. 8B is a schematic diagram of another picture generation priority of the electronic device 100 according to an embodiment of the present application;

[0048] FIG. 9 is a flow diagram of sharing a picture based on an equal sharing strategy by an electronic device 100 according to an embodiment of the present application;

[0049] FIG. 10 is an application permission management interface of an electronic device 100 according to an embodiment of the present application;

[0050] FIG. 11 is a picture sharing strategy management interface of an electronic device 100 according to an embodiment of the present application;

[0051] FIG. 12 is a flow diagram of sharing a picture by an electronic device 100 according to an embodiment of the present application;

[0052] FIG. 13 is a hardware structure of an electronic device 100 according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0054] The terms used in the following embodiments of the present application are only for the purpose of describing the specific embodiments, and are not intended to be limiting to the present application. As used in the specification and the appended claims of the present application, the singular forms "a," "an," and "the" are intended to include plural forms as well, unless the context clearly indicates otherwise. The terms "first," "second," and the like are used only to describe the objects, and are not to be construed as implying or suggesting relative importance or implying an indication of the number of the indicated technical features. Thus, the features defined with "first," "second" can explicitly or implicitly include one or more of the features. "First" and "second" are used to distinguish different objects, not to describe a specific order of the objects. For example, the first object and the second object are used to distinguish different objects, not to describe a specific order of the objects.

[0055] In the description of the embodiments of the present application, the meaning of "a plurality of" is two or more, unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; a plurality of systems refers to two or more systems.

[0056] In the embodiments of the present application, the word "exemplary" or "for example" is used to mean serving as an example, instance, or illustration, in no way limiting. Any embodiment or implementation described as "exemplary" or "for example" in the embodiments of the present application is considered to be sufficient to divide the other embodiments or design schemes. In fact, the word "exemplary" or "for example" is used to present the relevant concept in a specific way.

[0057] The term "and / or" in the present application is only a description of the association relationship of the associated objects, which means that there can be three relationships. For example, A and / or B can represent three cases of A alone, A and B together, and B alone.

[0058] The term "user interface (UI)" in the following embodiments of the present application is a medium interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java, extensible markup language (XML), etc. The interface source code is parsed, rendered, and finally presented as content that the user can recognize on the electronic device. The commonly used form of user interface is graphic 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, icon, button, menu, tab, text box, dialog box, status bar, navigation bar, Widget, etc. displayed in the display screen of the electronic device.

[0059] In order to better understand the technical solutions provided by the present application, before the technical solutions of the present application are described, first of all, the electronic device 100 with a photographing function to which the present application is applicable is described in combination with the drawings. The embodiments of the present application do not limit the specific form and type of the electronic device 100.

[0060] First of all, the related terms involved in the present application, such as thumbnail, medium-quality image, and full-quality image, are introduced in combination with the drawings.

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

[0062] The thumbnail is a low-resolution and high-compression picture, and has a small file size, which can be used for user preview, selection of pictures, saving of storage space, and fast loading and display of picture options on the electronic device 100. The medium-quality picture can be a picture with medium resolution and compression rate. The size of the medium-quality picture matches the screen of the electronic device 100, and the medium-quality picture is suitable for viewing on the screen and occupies less storage space than the full-quality picture, and can be used for user browsing of picture content. The full-quality picture is a picture with the highest resolution and lowest compression rate, and provides the best image details, which can be used for user zooming to view picture details, and occupies the largest storage space.

[0063] Taking that the electronic device 100 acquires pictures by photographing as an example, in a possible implementation, the electronic device 100 can generate a thumbnail corresponding to a picture as soon as the electronic device 100 acquires original image data of the picture. The user can view the thumbnail of the picture in a related application. Then, the electronic device 100 can continue to generate a medium-quality picture and a full-quality picture corresponding to the picture based on the original image data.

[0064] For example, the electronic device 100 can take a picture through a camera application. In response to a user operation of starting the camera application, the electronic device 100 can display a photographing interface. As shown in FIG. 1A, the electronic device 100 can display a user interface 100A, which can be referred to as a photographing 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 acquire image data. The control 102 can be used to start a photo album application of the electronic device 100.

[0065] The electronic device 100 can receive a user click operation on the control 101, and acquire original image data of the scene 103. After the electronic device 100 completes the acquisition of the image data, a thumbnail including the scene 103 can be generated. 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 a user interface 100B of the photo album.

[0066] As shown in FIG. 1B, after receiving the user click operation on the control 102, the electronic device 100 can display the user interface 100B, which can include a thumbnail 104. The thumbnail 104 can include the content of the scene 103. The thumbnail 104 can be used for user preview of the content of the picture.

[0067] When the electronic device 100 receives a click operation on the thumbnail 104, the user interface 100C shown in FIG. 1C can be displayed. The user interface 100C can include a medium-quality image 105. The medium-quality image 105 has a size matching the screen of the electronic device 100 and can be used for the user to quickly browse the content of the photo. The medium-quality image 105 has a size larger than the thumbnail 104 and a resolution higher than the thumbnail 104. The user can input a double-finger drag operation in the user interface 100C to zoom in the image.

[0068] As shown in FIG. 1D, when the electronic device 100 receives a double-finger drag operation input by the user, the user interface 100D can be displayed. The user interface 100D can display a full-quality image 106. The full-quality image 106 can support the user to zoom in or out to view the details of the photo.

[0069] That is, when the electronic device 100 takes a photo, the electronic device 100 can generate a thumbnail, a medium-quality image, and a full-quality image corresponding to each photo, respectively. The thumbnail has a lower picture quality than the medium-quality image, and the medium-quality image has a lower picture quality than the full-quality image. The picture quality can be measured by one or more of the following: resolution, compression rate, size, definition, picture details, degree of algorithm optimization, and the like. In one possible implementation, the lower the compression rate and the higher the resolution of an image, the higher the picture quality of the image.

[0070] After the electronic device 100 generates the full-quality image of the photo, the electronic device 100 can share the full-quality image of the photo by applying. Referring to FIG. 2, FIG. 2 shows an example of a software structure of the electronic device 100. The following describes the workflow of the electronic device 100 sharing a photo by taking the example of a third-party application sharing a photo based on the software block diagram. As shown in FIG. 2, the electronic device 100 can include an application layer, a system service layer, and a kernel layer.

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

[0072] The system service layer can include a camera service and a photo optimization service. The camera service can be used to coordinate the resources of the electronic device 100 to complete the photo taking request of the user. The photo optimization service can be used to optimize the raw image data in the segmented photo taking process, perform operations such as whitening, face slimming, color adjustment, definition adjustment, and the like, and provide the user with a photo with better visual effects.

[0073] The kernel layer can include a camera driver and a file system. The camera driver can be used to capture an image from the camera hardware of the electronic device 100 and provide raw image data to the picture optimization service. The file system can be used to store picture files of different qualities generated in segmented photographing.

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

[0075] S201. The electronic device 100 issues a photographing instruction to the camera service through the camera application.

[0076] For example, the camera application of the electronic device 100 can provide a photographing preview and parameter adjustment interface for the user, and when the user inputs a photographing operation through the camera application, the camera application can issue a photographing instruction to the camera service in response to the operation.

[0077] S202. The camera service calls the camera driver to capture raw image data of a picture.

[0078] After receiving the photographing instruction, the camera service can capture raw image data through the camera driver. The camera driver can deliver the captured raw image data to the camera service. After receiving the raw image data, the camera service can also instruct the camera application that the image data acquisition is complete, and the camera application can prompt the user that the photographing is complete.

[0079] S203. The camera service generates a thumbnail corresponding to the picture according to the raw image data and saves the thumbnail to the file system.

[0080] After capturing the raw image data of a picture, the camera service can first generate a thumbnail of the picture and save it to the file system. It should be understood that if the camera service captures raw image data of multiple pictures at a time, the camera service can generate a thumbnail corresponding to each picture after the raw image data of the picture is captured. The electronic device 100 can display the thumbnail in the gallery. The user can access the picture corresponding to 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 raw image data to the picture optimization service.

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

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

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

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

[0086] For example, the electronic device 100 can also use different file extensions, prefixes or suffixes of file names to distinguish different quality pictures of the same picture. For example, the electronic device 100 can assign a unique picture index, for example, a string of numbers, to different quality pictures of a photo when taking a photo. The electronic device 100 can obtain the picture of a corresponding quality of a photo through the corresponding picture index.

[0087] The specific manner in which the electronic device 100 distinguishes and stores different quality pictures of the same picture is not limited in the embodiments of the present application.

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

[0089] When the user opens the third-party application to view the picture, the third-party application can display the thumbnail corresponding to the picture stored in the file system, and in response to the operation of the user selecting a certain 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, thereby realizing the sharing operation of the picture.

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

[0091] Alternatively, the picture index can only indicate a large category of the picture, and through the picture index, the third-party application can access the thumbnail, the medium quality picture and the full quality picture of the picture. In the scenario of sharing the picture, the third-party application can default to access the full quality picture file in the file system. For example, the third-party application accesses the folder storing the picture through the picture index, and only obtains the picture from the folder storing the full quality picture. The specific content of the picture index and the specific manner in which the third-party application obtains the full quality picture are not limited in the embodiments of the present application.

[0092] In the above process, the electronic device 100 can generate pictures of different qualities in stages. This is advantageous for shortening the photographing completion time perceived by the user, ensuring picture quality while improving the user experience in scenarios such as continuous photographing. However, due to the differences in the generation time of the pictures of each quality of the photo, the time points of storage in the file system, when the user takes a burst of photos and shares the photos through a third-party application, if the picture of the corresponding quality of the photo has not been generated or has not been stored in the file system, and the third-party application directly accesses the file system, a scenario of failed picture sharing may occur. 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 prolonged, and the user experience will also be affected.

[0093] Referring to FIG. 3, FIG. 3 exemplarily shows a picture generation situation diagram of the electronic device 100.

[0094] As shown in FIG. 3, the electronic device 100 can receive a burst operation of the user, and continuously take five photos: photo A, photo B, photo C, photo D, and photo E. The electronic device 100 can generate pictures of different qualities of the five photos in the order of the taking sequence.

[0095] In the process of processing image data by the electronic device 100, an operation of the user starting a certain third-party application and sharing a picture can be received, and a media index of the third-party application can be displayed, which can display thumbnails stored in the file system to allow the user to select a picture to be shared. After the user selects a certain thumbnail, the third-party application can obtain a full-quality picture corresponding to the thumbnail from the file system and share it to a target device or the target application.

[0096] However, if the electronic device 100 has not generated the full-quality picture corresponding to the picture selected by the user for sharing, the third-party application cannot obtain the full-quality picture of the target photo from the file system, which will result in failed picture sharing.

[0097] Exemplarily, referring to photo D shown in FIG. 3, when the electronic device 100 receives an operation of the user sharing photo D, the electronic device 100 has generated a thumbnail corresponding to photo D, but has not generated a full-quality picture 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 selects to share photo D, the third-party application cannot obtain the full-quality picture of photo D from the file system. This will result in the user completing the operation of sharing photo D but the third-party application failing to share photo D, which will affect the user experience.

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

[0099] As shown in FIG. 4A, the electronic device 100 receives an operation of a user opening a three-party application to share a picture, and can display a media index of the three-party application. The electronic device 100 can display a user interface 400A as shown in FIG. 4A. The user interface 400A can include a thumbnail 401, a thumbnail 402, a thumbnail 403, a thumbnail 404, a thumbnail 405, and a control 406. The five thumbnails can correspond to the thumbnails of the photos A to E described in FIG. 3, respectively. The control 406 can be used to send a thumbnail corresponding to a photo selected by the user. The thumbnail 404 can be a thumbnail of the photo D. The electronic device 100 can select the photo D in response to a click operation of the user on the thumbnail 404. The electronic device 100 can complete the operation of sending the picture in response to a click operation of the user on the control 406. However, since the full-quality picture of the photo D has not been generated and stored in the file system, the electronic device 100 can display a user interface 400B as shown in FIG. 4B.

[0100] As shown in FIG. 4B, in a possible implementation, the electronic device 100 can display a user interface 400B. The user interface 400B can be a chat window interface of the three-party application. The user interface 400B can include a prompt 407. The prompt 407 can be used to prompt the user that the message sending fails. The prompt 407 can also be in the form of text, pattern, etc. The specific form of the prompt 407 is not limited in the embodiments of the present application.

[0101] To solve the problems of picture sharing failure and long sharing waiting time described in the foregoing content, the embodiments of the present application provide a picture sharing method. In the method, 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 direct access of an 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, to change the acquisition quality or generation order of a target picture, so that the application can be returned with a picture of corresponding quality in time. This can avoid the situation that 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 can include a three-party application and a system built-in application. The specific application of the electronic device 100 for sharing pictures is not limited in the embodiments of the present application.

[0102] The following describes a process of the electronic device 100 sharing pictures by taking the electronic device 100 sharing pictures through a three-party application as an example, when the picture selection service exists in the electronic device 100.

[0103] As shown in FIG. 5, in the embodiments of the present application, the electronic device 100 can include an application layer, a system service layer, and a kernel layer.

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

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

[0106] Unlike FIG. 2, the system service layer of the electronic device 100 can further include a picture selection service, which can be used to receive a picture access request of the third-party application, and provide an access interface for the third-party application to access the file system. The access interface can include parameters such as picture index, picture sharing policy, and return value. After determining the parameters of the picture index and the picture sharing policy, the picture selection service can perform corresponding operations based on the picture sharing policy of the third-party application, and send a return value to the third-party application, which can include target pictures and access results and the like. The operations performed by the picture selection service can refer to the description of FIGS. 6-9 in the following content, which will not be repeated here. It should be understood that the software function module division shown in FIG. 5 is only an example, and the electronic device 100 can include more or less software modules. In fact, the electronic device 100 can not include the picture selection service, but the electronic device 100 can still perform the operations performed by the picture selection service described below.

[0107] S501. The electronic device 100 issues a photographing instruction to the camera service through the camera application.

[0108] The related content of step S501 can refer to the description of step S201 in FIG. 2 in the above content, which will not be repeated here.

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

[0110] The related content of step S502 can refer to the description of step S202 in FIG. 2 in the above content, which will not be repeated here.

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

[0112] The related content of step S503 can refer to the description of step S203 in FIG. 2 in the above content, which will not be repeated here.

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

[0114] The related content of step S504 can refer to the description of step S204 in FIG. 2, which will not be repeated here.

[0115] S505. The picture optimization service performs optimization processing on the original image data, and saves the medium quality picture and the full quality picture corresponding to the picture.

[0116] The related content of step S505 can refer to the description of step S205 in FIG. 2, which will not be repeated here.

[0117] Next, the sharing process with the participation of the picture selection service is introduced.

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

[0119] When the user shares the picture through the three-party application, the picture selection service can receive the access request of the three-party application. In some examples, the access request of the three-party application can carry the target picture index, the picture sharing strategy, etc. The picture selection service can determine the picture sharing strategy of the three-party application through the access request. In other examples, the electronic device 100 can include an application list of the fast sharing strategy, the high-quality sharing strategy and the balanced sharing strategy respectively, and the picture selection service can obtain the picture sharing strategy adopted by the three-party application by querying the application list. The picture selection service can determine the returned target picture based on the picture sharing strategy of the three-party application. The picture sharing strategy of the three-party application can be preset in advance, or can be set by the user when sharing the picture. The specific setting node of the picture sharing strategy of the three-party application and the specific way of the picture selection service to determine the picture sharing strategy of the three-party application are not limited in the embodiments of the present application.

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

[0121] The picture selection service can determine whether the full quality picture of the target picture selected by the user for sharing exists in the file system. If it exists, the picture selection service can obtain the full quality picture of the target picture from the file system and send it to the three-party application, and the three-party application can share the full quality picture.

[0122] S508. The picture selection service instructs the picture optimization service to generate the target picture on demand in priority.

[0123] If the target picture is not detected or acquired by the picture selection service in step S507, the picture selection service can perform corresponding operations according to the picture sharing policy of the third-party application. For example, in a possible implementation, the picture selection service can instruct the picture optimization service to preferentially generate the target picture, and the picture optimization service can increase the generation priority of the target picture, preferentially process the original image data of the target picture, and generate the full-quality picture or the medium-quality picture of the target picture.

[0124] In another possible implementation, the picture selection service can acquire other pictures from the file system to replace the target picture and return to the third-party application. The operations performed by the picture selection service can depend on the picture storage in the file system and the picture sharing policy of the third-party application. In some examples, the picture sharing policy of the third-party application can include fast sharing, high-quality sharing, and balanced sharing. When the third-party application adopts the fast sharing policy, 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 the high-quality sharing policy, the picture selection service can instruct the picture optimization service to preferentially generate the full-quality picture of the target picture and return the full-quality picture to the third-party application. When the third-party application adopts the balanced sharing policy, the picture selection service can make a comprehensive judgment based on the load condition of the picture optimization service of the electronic device 100, and return the picture of a corresponding quality to the third-party application.

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

[0126] The picture selection service can acquire the picture of a corresponding quality of the target picture according to the picture sharing policy set by the third-party application and return the picture to the third-party application. The different-quality pictures that can be acquired by the picture selection service can include the thumbnail, the medium-quality picture, and the full-quality picture mentioned in the foregoing content.

[0127] Therefore, the picture acquired by the third-party application of the electronic device 100 is affected by the picture sharing policy and the picture generation condition in the file system. The picture sharing policy in the present solution is described below by taking the user sharing of the photo D as an example, and the picture generation condition of the electronic device 100 in the following flow can be referred to the condition shown in FIG. 3.

[0128] FIG. 6 exemplarily shows a flow diagram when the third-party application adopts the fast sharing policy.

[0129] As shown in FIG. 6, the electronic device 100 can include a third-party application, a picture selection service, and a file system. The flow when the third-party application adopts the fast sharing policy can include the following steps.

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

[0131] At this moment, the camera module of electronic device 100 has sent the raw image data of the photo to the image optimization service. The image optimization service is processing the data sequentially 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 photo D, and sends an image access request 1 based on the fast sharing strategy.

[0133] Third-party applications can be configured with a fast sharing strategy. When a user shares photo D, the third-party application can send an image access request 1, which may include the index of photo D and the fast sharing strategy.

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

[0135] The image selection service can obtain image access request 1 sent by the third-party application and determine that the image index in image access request 1 is the index of photo D, and the image sharing strategy is the fast sharing strategy. The image 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 steps S604 to S606 in the following content.

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

[0137] S604. The image selection service queries photo D in the file system to determine if 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 images of different qualities existing in the file system. The image selection service can query related images of photo D in the file system based on the image index of photo D. The image generation status of photo D can be referenced in Figure 3 above. When the image selection service determines that the highest quality image of photo D is a medium-quality image, and the sharing strategy is a fast sharing strategy, the image selection service can choose to obtain the medium-quality image of photo D.

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

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

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

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

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

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

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

[0146] In this way, the third-party application of the electronic device 100 can ensure successful sharing of the picture to the sharing target based on the fast sharing strategy. Generally, considering the browsability of the picture and the fast generation speed of the medium-quality picture of the picture, at least the medium-quality picture of the photo can exist in the file system when the user shares the picture after taking a picture.

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

[0148] When the full-quality picture of the target picture does not exist in the file system, but the medium-quality picture of the target picture exists in the file system, the medium-quality picture can be selected to be returned to the third-party application.

[0149] When neither the full-quality picture of the target picture nor the medium-quality picture of the target picture exists in the file system, the picture selection service can wait for the generation of the medium-quality picture of the target picture and then return the medium-quality picture of the target picture to the third-party application.

[0150] In this way, the third-party application can respond to the user's picture sharing operation in real time, and send a browsable picture to the sharing target in real time. In some examples, the fast sharing strategy can also be set as a sharing strategy including a thumbnail. When the medium quality picture and the full quality picture of the target picture are not included in the file system, the picture selection service can directly obtain the thumbnail of the target picture and return it to the third-party application for sharing. The lower limit of the picture access quality of the fast sharing strategy can be set by the user, and the embodiments of the present application do not limit this.

[0151] The third-party application can also access the photo D based on the high-quality sharing strategy. FIG. 7 exemplarily shows a flowchart of the third-party application using the quality sharing strategy. As shown in FIG. 7, the electronic device 100 can include a third-party application, a picture selection service, a picture optimization service, and a file system. The flow of the third-party application using the high-quality sharing strategy can include the following steps.

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

[0153] S702. 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 2 based on the high-quality sharing strategy.

[0154] When the third-party application of the electronic device 100 uses the high-quality sharing strategy, the generated picture access request 2 can 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.

[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 of the photo D and the high-quality sharing strategy 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. The specific operations can be referred to the description of steps S704-S708 in the following content, which will not be described here.

[0157] S704. The picture selection service of the electronic device 100 queries the photo D in the file system and detects that the full quality picture of the photo D does not exist in the file system.

[0158] The picture generation situation of the photo D in the file system can refer to the situation shown in FIG. 3 described above. The electronic device 100 has generated the thumbnail and the medium quality picture of the photo D and stored them in the file system, but has not generated the full quality picture of the photo D.

[0159] S705. The picture selection service of the electronic device 100 instructs the picture optimization service to prioritize generating the full-quality picture of the photo D.

[0160] In a case where it is detected that the full-quality picture of the photo D does not exist in the file system, the picture selection service can send an instruction to the picture optimization service instructing the picture optimization service to prioritize generating the full-quality picture of the photo D based on the high-quality sharing policy.

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

[0162] When the three-party application adopts the high-quality sharing policy, the picture selection service can be sent a picture access request including the quality sharing policy. After the picture selection service confirms that the sharing policy of the access request is the quality sharing policy, it can first detect whether the full-quality picture of the target picture exists in the file system. Based on the picture index of the photo D in the picture access request, the picture selection service detects that the full-quality picture of the photo D does not exist in the file system.

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

[0164] When the three-party application adopts the high-quality sharing policy, the picture selection service can instruct the picture optimization service to prioritize generating the full-quality picture of the photo D. The picture optimization service can improve the priority of the picture generation task of the photo D to be before the photos B and C.

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

[0166] Therefore, the picture selection service can instruct the picture optimization service to change the order of the picture generation task. The order of the picture generation task is adjusted as shown in FIG. 8B. The picture optimization service can interrupt processing of the raw image data of the photo B, prioritize generating the full-quality picture of the photo D, and then process the remaining other pictures according to the shooting order.

[0167] In the above description, only the generation order of the photos is involved. Alternatively, for the same photo, taking photo D as an example, if the thumbnail and the medium-quality image of photo D have not been generated, the picture optimization service can still generate the high-quality image of photo D for sharing first, and then generate the thumbnail and the medium-quality image of photo D. In this way, the electronic device 100 can respond more quickly to the user's sharing operation.

[0168] Alternatively, during the generation of the high-quality image of photo D by the picture optimization service, a prompt message can be displayed on the display interface of the electronic device 100, which can prompt the user that the high-quality image of photo D is being generated.

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

[0170] After the generation of the high-quality image of photo D, the picture optimization service can store the high-quality image of photo D in the file system.

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

[0172] After the picture optimization service stores the high-quality image of photo D in the file system, the picture selection service can obtain the high-quality image of photo D from the file system based on the picture 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 high-quality image of photo D.

[0174] After the high-quality image of photo D is stored in the file system, the picture selection service can obtain the high-quality image. Then, the picture selection service can return the picture access result 2 to the third-party application, and the picture access result 2 can include the high-quality image of photo D, or can include image quality and file identification and the like. The picture access result 2 can also be used to feed back whether the picture access request is successful, and the specific content can refer to the description of step S606 in the above description, which will not be described here.

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

[0176] After the third-party application obtains the high-quality image of photo D, the sharing operation of photo D can be completed, and the high-quality image of photo D can be sent to the sharing target.

[0177] In this way, the electronic device 100 can ensure that the full-quality picture of the target picture can be generated first when the file system is accessed by improving the generation priority of the target picture. While ensuring the quality of the shared picture, the failure of the third-party application to obtain the picture is avoided, which leads to the failure of picture sharing. The success rate of sharing full-quality pictures by the user is improved, the waiting time is reduced, and the user experience is improved.

[0178] In some examples, the third-party application of the electronic device 100 can also use a balanced sharing strategy to access the picture. When the balanced sharing strategy is used, the picture selection service can determine the load condition of the electronic device 100. When the load is low, the picture selection service can preferentially select the full-quality picture. When the load is high, the picture selection service can preferentially select the highest-quality picture that already exists, or can preferentially select the medium-quality picture.

[0179] FIG. 9 shows a flowchart of the electronic device 100 sharing pictures under different load conditions using a balanced sharing strategy.

[0180] As shown in FIG. 9, the access process when the load is low can include the following steps.

[0181] S901. 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 3 based on the balanced sharing strategy.

[0182] In the case where the sharing strategy of the third-party application is the balanced sharing strategy, the operation of receiving the user's sharing of the photo D can generate and send a picture access request 3 including the balanced sharing strategy and the index of the photo D 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's operation and generating the access request, and the picture selection service receiving and confirming the content of the access request can refer to the description of steps S602 and S603 in the above content, and will not be described here. The sharing strategy of the picture access request 3 is balanced sharing.

[0185] S903. The picture selection service of the electronic device 100 queries the photo D and detects that the full-quality picture of the photo D does not exist in the file system.

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

[0187] It should be understood that the scenarios in which the picture sharing strategy in the embodiments of the present application works are all scenarios in which the full-quality picture of the target picture does not exist in the file system. If the full-quality picture already exists, the three-party application can directly obtain the full-quality picture 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 can be determined.

[0190] If the electronic device 100 is processing less tasks at this time, the device resources are idle, the picture selection service can determine that the load of the electronic device 100 is low.

[0191] In a possible implementation, the electronic device 100 can include a central processor unit (CPU), a graphics processing unit (GPU), and the like. The electronic device 100 can process picture optimization tasks and picture generation tasks through the CPU and the GPU. The CPU and the 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 the GPU have high occupancy, and the electronic device 100 can not be able to generate the target picture in time. The picture selection service can determine the load condition of the electronic device 100 through the occupancy of the CPU and the GPU.

[0192] Exemplarily, the picture selection service can detect the occupancy of the CPU and the GPU. When the occupancy of the CPU is lower than a preset threshold 1, and / or the occupancy of the GPU is lower than a preset threshold 2, the picture selection service can determine that the occupancy of the CPU and the GPU is low, and at this time, the picture selection service can determine that the load of the electronic device 100 is lower than a preset threshold. At this time, the electronic device 100 can timely allocate resources for processing picture optimization tasks and picture generation tasks, and can support the picture optimization service to perform operations such as preferentially generating a target full-quality picture. The preset threshold 1 and the preset threshold 2 can be pre-stored in the electronic device 100, or can be generated in real time by the electronic device 100 according to the device running state during running.

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

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

[0195] S906. The picture optimization service of the electronic device 100 increases the priority of the picture generation task of the photo D, and generates the full-quality picture of the photo D in priority.

[0196] Since the picture optimization service has a low load, the full-quality picture of the photo D can be generated in time, and the picture selection service can instruct the picture optimization service to increase the priority of the picture generation task of the photo D.

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

[0198] After the full-quality picture of the photo D is generated, the third-party application of the electronic device 100 can obtain the full-quality picture and send it to the sharing target through the following steps S907-S910. For details, refer to the description of steps S707-S710 above, which will not be repeated here.

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

[0200] S908. The picture selection service of the electronic device 100 obtains the 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, and the picture access result 2 includes the full-quality picture of the photo D.

[0202] S910. The third-party application of the electronic device 100 obtains and shares the full-quality picture 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 the task for the burst photo, the CPU and GPU occupancy rates of the electronic device 100 can be determined.

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

[0205] Alternatively, in some examples, the picture selection service can detect that the full-quality picture generation task of the photo D is complex, for example, the generation of the full-quality picture of the photo D needs to go through multiple image algorithm processing, and the picture generation time is long, that is, the full-quality picture generation task of the photo D itself will cause the load of the electronic device 100 to increase. When this situation is confirmed as the load of the electronic device 100 being higher than a preset threshold.

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

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

[0208] In the case that the full-quality picture of the photo D is difficult to generate in time, and the medium-quality picture of the photo D exists in the file system, the picture selection service can select to obtain the medium-quality picture of the photo D instead of the full-quality picture based on the 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, and the picture access result 1 includes the medium-quality picture of the photo D.

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

[0211] Finally, the third-party application can send the medium-quality picture of the photo D to the sharing target in time. The fast response to the user sharing operation is realized, and the user waiting caused by the time-consuming generation of the full-quality picture of the photo D is avoided.

[0212] In this way, the electronic device 100 can adaptively adjust the picture quality of the shared picture according to the load condition of the electronic device 100 itself, so that the electronic device 100 can at least share a picture with browsable quality under different load conditions. The situation that the picture sharing fails due to high load or target picture not being generated is avoided.

[0213] In a possible implementation, the picture sharing strategy can also be applied to the scene of the user sharing multiple pictures at a time. The following still introduces the scene of the user sharing multiple pictures at a time based on the picture generation state shown in FIG. 3.

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

[0215] In some examples, the third-party application can employ a fast sharing policy. If the third-party application receives an operation of sharing multiple pictures by the user, the picture selection service can be used to obtain the highest quality pictures generated for the multiple pictures for sharing. For example, after the third-party application receives an operation of sharing photo A, photo C, and photo E by the user, the third-party application can send a picture access request including the photo A index, the photo C index, the photo E index, and the fast sharing policy. The picture selection service intercepts the access request and determines the picture generation status of photo A, photo C, and photo E in the file system. As shown in FIG. 3, the full quality picture of photo A has been generated, the medium quality picture of photo C has been generated, and the full quality picture has not been generated, and the medium quality picture and the full quality picture of photo E have not been generated. Therefore, the picture selection service can obtain the highest quality pictures generated from the pictures and return, i.e., the full quality picture of photo A, the medium quality picture of photo C, and the thumbnail of photo E, to the third-party application. Alternatively, if the picture access quality lower limit of the fast sharing policy is set as the medium quality picture by the device, after the picture selection service obtains the full quality picture of photo A and the medium quality picture of photo C, the picture selection service can also instruct the picture optimization service to increase the medium quality picture generation task of photo E, and quickly generate the medium quality picture of photo E to return to the third-party application.

[0216] 2. The third-party application of the electronic device 100 shares multiple pictures based on a high quality sharing policy.

[0217] In some examples, the third-party application can employ a fast sharing policy. If the third-party application receives an operation of sharing multiple pictures by the user, the picture selection service can be used to obtain the highest quality pictures generated for the multiple pictures for sharing. For example, after the third-party application receives an operation of sharing photo A, photo C, and photo E by the user, the third-party application can send a picture access request including the photo A index, the photo C index, the photo E index, and the fast sharing policy. The picture selection service intercepts the access request and determines the picture generation status of photo A, photo C, and photo E in the file system. As shown in FIG. 3, the full quality picture of photo A has been generated, the medium quality picture of photo C has been generated, and the full quality picture has not been generated, and the medium quality picture and the full quality picture of photo E have not been generated. Therefore, the picture selection service can obtain the highest quality pictures generated from the pictures and return, i.e., the full quality picture of photo A, the medium quality picture of photo C, and the thumbnail of photo E, to the third-party application. Alternatively, if the picture access quality lower limit of the fast sharing policy is set as the medium quality picture by the device, after the picture selection service obtains the full quality picture of photo A and the medium quality picture of photo C, the picture selection service can also instruct the picture optimization service to increase the medium quality picture generation task of photo E, and quickly generate the medium quality picture of photo E to return to the third-party application.

[0218] 3. The third-party application of the electronic device 100 shares multiple pictures based on a balanced sharing policy.

[0219] In some examples, the three-party application can also adopt a balanced sharing strategy. If the three-party application receives an operation of sharing multiple pictures by the user, the picture selection service can comprehensively adjust the priority of the picture generation task. For example, after the three-party application receives an operation of sharing photo A, photo C and photo E by the user, the picture selection service can send a picture access request including the photo A index, the photo C index, the photo E index and the balanced sharing strategy.

[0220] After the picture selection service intercepts the request, the picture selection service detects the load condition 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 picture selection service can adjust the priority of the picture generation task with the generation speed as the target.

[0221] In the multi-picture sharing process, the picture selection service can arrange the proportion of the full-quality picture and the medium-quality picture in the shared pictures according to the specific load condition of the electronic device 100. For example, when the load condition of the electronic device 100 only supports timely generation of full-quality pictures of three pictures, the picture selection service can select three pictures to generate full-quality pictures in the target pictures to be shared. For the remaining target pictures, if the full-quality picture already exists, the picture selection service can obtain the full-quality picture; if the full-quality picture has not been generated, the picture selection service can obtain the medium-quality picture.

[0222] For example, the picture selection service detects that the full-quality picture of photo A has been generated, the medium-quality picture of photo C has been generated, and neither the medium-quality picture nor the full-quality picture of photo E has been generated. In this case, the picture selection service can determine that the full-quality picture of photo A can be directly shared, the full-quality picture of photo C has not been generated, but the medium-quality picture can be used for sharing, and there is no picture of photo E that can be used for sharing, and at this time, the load of the electronic device 100 is high. Therefore, the picture selection service can preferentially obtain the full-quality picture of photo A and the medium-quality picture of photo C, and instruct the picture optimization service to preferentially generate the full-quality picture or the medium-quality picture of photo E. In this case, the picture selection service can not process the full-quality picture generation task of photo C, and only return the medium-quality picture of photo C to the three-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 the multiple pictures selected by the user can be successfully shared.

[0223] If the picture selection service detects that the load of the electronic device 100 is low, i.e., the picture optimization service can prioritize the generation of the target pictures without affecting other functions, the picture selection service can adjust the picture generation task priority of the photo C and the photo E to be before the photo B, and obtain the full-quality pictures of the photo C and the photo E. Alternatively, the picture selection service can also determine the task amount of the user's single sharing of multiple pictures, and if the time required for generating full-quality pictures of all target pictures is too long or the picture optimization resources required are too many, the picture selection service can selectively obtain medium-quality pictures of part of the pictures and return them to the third-party application. The specific execution strategy of the balanced sharing strategy is not limited in the embodiments of the present application.

[0224] In the above, 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 exemplarily show a schematic diagram of setting a picture sharing strategy of an application by a user.

[0225] As shown in FIG. 10, 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 strategy management interface of the application. The electronic device 100 can display the user interface 1100 as shown in FIG. 11 in response to the user's click operation on the control 1001. The user interface 1100 can include controls 1101, 1102 and 1103. The three controls are respectively used to set the fast sharing, high-quality sharing and balanced sharing strategies of the application. For example, the electronic device 100 can set the picture sharing strategy of the application to the high-quality sharing strategy in response to the user's operation on the control 1102. In this way, when the user shares pictures through the application, the application can preferentially obtain full-quality pictures of the target pictures through the picture selection service.

[0226] In this way, the electronic device 100 can determine the target quality of the shared pictures through the picture sharing strategy. FIG. 12 exemplarily shows a flowchart of the electronic device 100 sharing pictures.

[0227] As shown in FIG. 12, the flow of the electronic device 100 sharing pictures can 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 picture of the first picture.

[0229] The first operation can be the user opening the media index interface of the application and selecting the first picture in the media index interface. For specific operations, reference can be made to the description of FIG. 4A in the above content, which will not be repeated here.

[0230] The first quality map of the first picture can be the medium quality map described in the above embodiments. The first quality map of the first picture can include a first index, which can 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, sharing the target quality map of the first picture based on the picture sharing policy.

[0232] The second operation can be an operation of clicking the sending control by the user. For example, as shown in FIG. 4A, the clicking operation of the control 406 after selecting the picture can be referred to as 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 embodiments.

[0233] The picture sharing policy can be set by the user or be the default setting of the electronic device 100. The picture sharing policy can include a fast sharing policy, a high quality sharing policy, and a balanced sharing policy.

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

[0235] When the picture sharing policy is the high quality sharing policy, the target quality map of the first picture shared by the electronic device 100 can include the second quality map of the first picture.

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

[0237] The specific process of the electronic device sharing the target quality map of the first picture based on different picture sharing policies can refer to the description of FIG. 6, FIG. 7 and FIG. 9 in the above content, which will not be repeated here.

[0238] An example electronic device 100 provided by the embodiments of the present application is introduced below.

[0239] FIG. 13 is a schematic diagram of the hardware structure of the electronic device 100 provided by the embodiments of the present application.

[0240] The embodiments will be described below with the electronic device 100 as an example. It should be understood that the electronic device 100 can have more or fewer components than shown in the figures, can combine two or more components, or can have a different configuration of components. The various components shown in the figures can 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 can 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, and the like. The sensor module 180 can include a pressure sensor 180A, a distance sensor 180F, a fingerprint sensor 180H, a touch sensor 180K, an ambient light sensor 180L, and the like.

[0242] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (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), and the like. Different processing units can be independent devices or integrated into one or more processors.

[0243] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching and executing instructions.

[0244] The memory in the processor 110 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving 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, and the like.

[0246] Antenna 1 and antenna 2 are used for transmitting and receiving 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 multiplexed to improve the utilization of antennas. For example, antenna 1 can be multiplexed as a diversity antenna for wireless local area networks. In some other embodiments, antennas can be used in combination with tuning switches.

[0247] Mobile communication module 150 can provide solutions for wireless communication including 2G / 3G / 4G / 5G, etc. applied on electronic device 100. Mobile communication module 150 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. Mobile communication module 150 can receive electromagnetic waves by antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transmit the processed electromagnetic waves to a modem processor for demodulation. Mobile communication module 150 can also amplify signals modulated by the modem processor, and convert the amplified signals into electromagnetic waves radiated by antenna 1. In some embodiments, at least part of the functional modules of mobile communication module 150 can be arranged in processor 110. In some embodiments, at least part of the functional modules of mobile communication module 150 can be arranged in the same device as at least part of the modules of processor 110.

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

[0249] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and transmits the processed signal to the processor 110. The wireless communication module 160 can also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and radiate it as an electromagnetic wave via the antenna 2.

[0250] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can 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, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS). In some examples, the electronic device 100 can share a picture with other devices through the wireless communication module 160 or the mobile communication module 150.

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

[0252] The display screen 194 is configured to display images, videos, and the like. 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 (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light emitting diodes (QLED), or the like. In some examples, the display screen 194 of the electronic device 100 can be configured to display a chat interface, a picture selection interface, an application permission management interface, and the like of a three-party application.

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

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

[0255] The camera 193 is configured to capture a still image or a video. An object generates an optical image through a lens and projects the optical image onto a 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 light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert the electrical signal 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 the like format. In some embodiments, the electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.

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

[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. For example, files such as music and videos are saved 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 function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application required by a function (such as a face recognition function, a fingerprint recognition function, a mobile payment function, etc.), etc. The data storage area can store data (such as raw image data) created during the use of the electronic device 100, etc. In addition, the internal memory 121 can include a high-speed random access memory and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0259] The pressure sensor 180A is used to sense a pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. There are many types of pressure sensors 180A, such as a resistance type pressure sensor, an inductance type pressure sensor, a capacitance type pressure sensor, etc. The capacitance type pressure sensor can include at least two parallel plates with conductive material. 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 of the capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch 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 a first pressure threshold value acts on a short message application icon, an instruction to view a short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold value 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 distance. The electronic device 100 can measure distance by infrared or laser. In some embodiments, the electronic device 100 can use the distance sensor 180F to measure distance for fast focusing when taking a picture.

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

[0262] The fingerprint sensor 180H is used to collect fingerprint. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application lock, fingerprint picture taking, fingerprint call answering, etc.

[0263] The touch sensor 180K, also called "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called "touch panel". The touch sensor 180K is used to detect touch operation acting on or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the touch event type. 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 disposed 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 can include a memory, a processor and a computer program stored in the memory, and the processor executes the computer program to implement the method performed by the electronic device side (central control device, hub device, smart home device, etc.) in any one of the above embodiments.

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

[0266] The chip system can be composed of a chip, or can include a chip and other discrete devices.

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

[0268] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor, or can be arranged separately from the processor, and the embodiments of the present application are not limited. Exemplarily, the memory can be a non-transient processor, for example, a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be arranged on different chips respectively, and the embodiments of the present application do not make specific limitations on the type of memory and the arrangement manner of the memory and the processor.

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

[0270] The present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method executed by the electronic device side in any one of the above embodiments.

[0271] The present application also provides a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the method executed by the electronic device side in any one of the above embodiments.

[0272] The above and the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the foregoing embodiments of the present application are described in detail, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

[0273] In the above embodiments, the term "when" can be interpreted as meaning "if" or "after" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrase "upon determining" or "if detecting (a stated condition or event)" can be interpreted as meaning "if determining" or "in response to determining" or "upon detecting (a stated condition or event)" or "in response to detecting (a stated condition or event)" depending on the context.

[0274] In the above embodiments, all or part of the methods can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the methods can be implemented 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, all or part of the processes or functions described in the embodiments of the present application are generated. 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 one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (such as floppy disk, hard disk, magnetic tape), optical media (such as DVD), or semiconductor media (such as solid state disk), etc.

[0275] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by a computer program to instruct the relevant hardware to complete, and the program can be stored in a computer readable storage medium, and the program can include the processes of the above-mentioned method embodiments when executed. The aforementioned storage medium includes ROM or random access memory (RAM), magnetic disk or optical disk, and various program code storage media.

Claims

1. A picture sharing method, characterized by, The method is applied to an electronic device, and the method comprises: In response to a first operation, a first picture is selected, and the electronic device comprises a first quality picture of the first picture; In response to a second operation, a target quality picture of the first picture is shared based on a picture sharing policy, a picture quality of the target quality picture of the first picture is higher than or equal to a first quality picture of the first picture, and the picture sharing policy is a policy for determining a picture quality of the target quality picture, the picture quality comprising at least a first quality and a second quality, and the first quality being lower than the second quality.

2. The method of claim 1, wherein, The method further comprises: In response to the second operation and the electronic device not comprising a second quality picture of the first picture, the second quality picture of the first picture is generated; The second quality picture of the first picture is shared.

3. The method of claim 2, wherein, The method further comprises: A second quality picture of a second picture is generated, and a generation time of the first quality picture of the second picture is earlier than a generation time of the first quality picture of the first picture.

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

5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: In response to the second operation and the electronic device comprising the second quality picture of the first picture, the second quality picture of the first picture is determined as the target quality picture of the first picture; The second quality picture of the first picture is shared.

6. The method of claim 1, wherein, The method further comprises: In response to the second operation and the electronic device not comprising the second quality picture of the first picture, the first quality picture of the first picture is determined as the target quality picture of the first picture; The first quality picture of the first picture is shared.

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

8. The method according to any one of claims 1 to 5, 7, characterized in that, In response to the second operation, the first quality picture of the third picture is shared.

9. The method according to claim 5 or 6, characterized in that, A load of the electronic device is lower than or equal to a first threshold value, and the first threshold value is a highest value of low-load operation of the electronic device.

10. The method according to any one of claims 1 to 9, 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 lowest value of high-load operation of the electronic device.

11. The method according to any one of claims 1 to 10, characterized in that, The picture sharing policy can be set by a user.

12. An electronic device, comprising: The first quality picture of the first picture comprises a first index, and the first index is used to indicate the first quality picture of the first picture. The method further comprises: A memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the method according to any one of claims 1-11.

13. A computer-readable storage medium, characterized in that, a computer program stored thereon, the computer program, when executed by a processor, implementing the method of any of claims 1-11.

14. A chip system applied to an electronic device, characterized by comprising: The chip system includes one or more processors configured to invoke computer instructions to cause the electronic device to perform the method of any of claims 1-11.

15. A computer program product, characterised in that, The computer program product includes a computer program, the computer program, when executed by a processor, implementing the method of any of claims 1-11.

Citation Information

Patent Citations

  • Content sharing method and electronic equipment

    CN110333814A

  • Photo sharing method and electronic device

    CN111316619A

  • Human-computer interaction method and device and electronic equipment

    CN116701686A

  • Picture processing method and related apparatus

    WO2021027633A1