Picture editing method, electronic equipment and storage medium

By providing a picture library and user interface on an electronic device, receiving user editing operations and saving editing records, the problem of users saving pictures with different editing effects multiple times is solved, and the efficiency of picture editing and storage space utilization is improved.

CN120066324AActive Publication Date: 2025-05-30HUAWEI TECH CO LTD

Patent Information

Application Number
CN202311641626.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30
Estimated Expiration
2043-11-30

AI Technical Summary

Technical Problem

In the prior art, users save pictures with different editing effects multiple times after editing pictures, resulting in wasted storage space of electronic devices and low editing efficiency.

Method used

It provides an image editing method and system, which receives user editing operations by displaying the gallery interface and user interface, displays the corresponding user interface in response to the operation, and saves the editing records of the picture. Users can select editing nodes in the user interface to achieve re-editing of pictures.

Benefits of technology

This achieves the efficiency of image editing, and users can fall back to any editing node at any time to avoid repeated editing and waste of storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066324A_ABST
    Figure CN120066324A_ABST
Patent Text Reader

Abstract

The invention provides a picture editing method, electronic equipment and a storage medium. The first electronic equipment receives editing operation of a user for a first picture and displays a first user interface, an editing interface of the first picture comprises the first picture and a first option, the first option comprises a first node and a second node, the first node is related to a first picture editing algorithm, and the second node is related to a second picture editing algorithm; the first picture is obtained based on a first image editing algorithm and a second image editing algorithm on the basis of the third picture; the first electronic device receives a first operation of the user for the first node and displays a second user interface, the second user interface comprises a second picture, and the second picture is obtained on the basis of the third picture on the basis of the first image editing algorithm. Through the method, the electronic equipment can re-edit the picture stored in the picture library application, so that the stored picture is returned to any editing node, and the picture editing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technologies, and in particular, to an image editing method, an electronic device, and a storage medium. Background Art

[0002] With the development of terminal technologies, users can edit the pictures saved on an electronic device, such as adjusting contrast, brightness, sharpness, adding beauty effects, adding filters, adding watermarks, adding mosaics, etc., so that the display effect of the pictures meets the user's needs. After the editing is completed, the user can save the edited picture on the electronic device, and the user can view the edited picture on the electronic device.

[0003] If the user is not satisfied with the edited picture, the user can re-edit the original picture and save the edited picture again. However, if the user saves pictures with different editing effects multiple times, not only will multiple similar pictures be saved on the electronic device, but also the storage space of the electronic device will be wasted. How to improve the efficiency of image editing remains to be further studied. Summary of the Invention

[0004] This application provides an image editing method, an electronic device, and a storage medium, which improve the efficiency of image editing.

[0005] In a first aspect, this application provides an image editing system. The system includes a first electronic device. The first electronic device is configured to display a first gallery interface, and the first gallery interface includes a first picture. The first electronic device is further configured to: receive an editing operation of the user on the first picture; in response to the editing operation on the first picture, display a first user interface. The editing interface of the first picture includes the first picture and a first option. The first option includes a first node and a second node. The first node is related to a first image editing algorithm, and the second node is related to a second image editing algorithm. The first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of a third picture; receive a first operation of the user on the first node; in response to the first operation, display a second user interface. The second user interface includes a second picture, and the second picture is obtained based on the first image editing algorithm on the basis of the third picture.

[0006] Optionally, not limited to the first image editing algorithm and the second image editing algorithm, the first picture can also be obtained by combining more other image editing algorithms. This application does not make any limitations in this regard.

[0007] In some embodiments, the first gallery interface may further include a third picture.

[0008] Through this method, the electronic device can re-edit the pictures saved in the gallery application, so that the saved pictures can be rolled back to any editing node, improving the efficiency of image editing.

[0009] In combination with the first aspect, in a possible implementation, the first electronic device is further configured to: display a second gallery interface, where the second gallery interface includes a third picture; receive an editing operation of the user on the third picture; in response to the editing operation on the third picture, display a third user interface, where the third user interface includes the third picture and a plurality of picture editing options; receive a second operation of the user on a first editing option among the plurality of picture editing options, where the first editing option is related to a first picture editing algorithm; in response to the second operation, obtain a second picture; receive a third operation of the user on a second editing option among the plurality of picture editing options, where the second editing option is related to a second picture editing algorithm; in response to the third operation, obtain a first picture; receive a fourth operation of saving the first picture; in response to the fourth operation, save the first picture and the editing record of the first picture.

[0010] In a possible implementation, the first electronic device is further configured to: display a second gallery interface, where the second gallery interface includes a third picture; receive an editing operation of the user on the third picture; in response to the editing operation on the third picture, display a third user interface, where the third user interface includes the third picture and a plurality of picture editing options; receive a selection operation of the user on a first editing option and a second editing option among the plurality of picture editing options, where the first editing option is related to a first picture editing algorithm and the second editing option is related to a second picture editing algorithm; in response to the selection operation, process the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain a first picture; receive a fourth operation of saving the first picture; in response to the fourth operation, save the first picture and the editing record of the first picture.

[0011] Wherein, the third picture is the original picture on which no picture editing algorithm has been executed.

[0012] After the user adds a picture editing algorithm to the third picture, the first electronic device can display corresponding editing nodes on the picture editing interface. On the one hand, it can prompt the user about the picture editing algorithms already used for the current picture. On the other hand, the user can also operate on the editing nodes displayed on the picture editing interface, so that the picture can be reverted to the editing effects corresponding to any one or several editing algorithms corresponding to the editing nodes.

[0013] In combination with the first aspect, in a possible implementation, the second user interface further includes a second option, and the second option includes a first node.

[0014] In this way, the first node is used to prompt the user that the second picture is obtained based on the first image editing algorithm.

[0015] In combination with the first aspect, in a possible implementation, the second picture is obtained by the first electronic device based on the first image editing algorithm on the basis of the third picture.

[0016] In this way, when the user re-edits the picture, the electronic device can edit the original picture locally based on the picture editing algorithm selected by the user to obtain the picture editing effect desired by the user.

[0017] In combination with the first aspect, in a possible implementation, the first electronic device is further configured to: in response to the first operation, send the third picture and the identifier of the first image editing algorithm to the server; receive the second picture sent by the server, where the second picture is obtained by the server based on the first image editing algorithm on the basis of the third picture.

[0018] In this way, when the user re-edits the picture, the electronic device can edit the original picture through the server based on the picture editing algorithm selected by the user. The computing power of the server is stronger than that of the electronic device. On the one hand, it can reduce the computing amount of the electronic device. On the other hand, it can also improve the speed of the electronic device for re-editing the picture.

[0019] In combination with the first aspect, in a possible implementation, the first picture is obtained by the first electronic device processing the second picture according to the second picture editing algorithm.

[0020] In a possible implementation, the first electronic device is further configured to send the identifier of the second picture editing algorithm and the second picture to the server, and the server edits the second picture based on the second picture editing algorithm to obtain the first picture. The server then sends the first picture to the first electronic device.

[0021] In combination with the first aspect, in a possible implementation, the editing record of the first picture includes first algorithm information, and the first algorithm information includes a first algorithm structure and first description information. The first algorithm structure includes the identifier of the first image editing algorithm and the identifier of the second image editing algorithm, and the first description information includes the description information of the first image editing algorithm and the description information of the second image editing algorithm.

[0022] Optionally, the first algorithm structure further includes the sequence order of the image editing algorithms. For example, the first image editing algorithm points to the second image editing algorithm, indicating that the picture first uses the first image editing algorithm and then uses the second image editing algorithm.

[0023] In combination with the first aspect, in a possible implementation, the first electronic device is specifically configured to: in response to an editing operation on the first picture, obtain the first algorithm information in the editing record of the first picture; display a first option on the first user interface based on the first algorithm information.

[0024] In this way, the electronic device can display editing nodes on the picture editing interface based on the saved first algorithm information, so that the user can re-edit the picture based on the editing nodes.

[0025] Combined with the first aspect, in a possible implementation, the system further includes a second electronic device; the first electronic device is further configured to: send the first picture and the editing record of the first picture to the second electronic device; the second electronic device is configured to receive a fifth operation; the second electronic device is further configured to, in response to the fifth operation, display a fourth user interface, where the fourth user interface includes the first picture and a third option, and the third option includes a third node and a fourth node, the third node is related to the first picture editing algorithm, and the fourth node is related to the second picture editing algorithm.

[0026] For an edited picture, the first electronic device not only needs to share the picture with the second electronic device, but also needs to share the editing record of the picture with the second electronic device.

[0027] The electronic device can not only re-edit the picture locally, but also share the picture and the editing record of the picture with the second electronic device, and the second electronic device can also re-edit the picture shared by the first electronic device, further improving the picture editing efficiency.

[0028] Combined with the first aspect, in a possible implementation, the second electronic device is specifically configured to: obtain the first algorithm information in the editing record of the first picture when having the permission to read the editing record of the first picture; display the third option on the fourth user interface based on the first algorithm information.

[0029] In a possible implementation, the second electronic device is further configured to display a fifth user interface including the first picture when not having the permission to read the editing record of the first picture.

[0030] In this way, after receiving the first picture and the editing record of the first picture shared by the first electronic device, the second electronic device can determine whether it can re-edit the first picture. When the second electronic device has the permission to re-edit the first picture, the second electronic device can display the editing nodes of the first picture, so that the user can re-edit the first picture displayed by the second electronic device. When the second electronic device does not have the permission to re-edit the first picture, the second electronic device may not display the editing nodes of the first picture to prompt that the second electronic device has no permission to re-edit the first picture.

[0031] In combination with the first aspect, in a possible implementation, the first electronic device is further configured to send the application information of the first application to the second electronic device, where the first application is an application for editing a third picture to obtain a first picture;

[0032] The second electronic device is specifically configured to: display the first picture through the second application; in the case where the first application and the second application are the same application, obtain the first algorithm information in the editing record of the first picture; and display a third option on the fifth user interface based on the first algorithm information.

[0033] In some embodiments, the first electronic device is further configured to send the application information of the first application to the second electronic device, and the second electronic device is further configured to obtain the application information of the second application. In the case where the first application and the second application are the same application, the second application has the permission to re-edit the first picture.

[0034] In other embodiments, in the case where the first application and the second application are not the same application, if the first application and the second application share a set of picture editing algorithms, the second application also has the permission to re-edit the first picture.

[0035] In combination with the first aspect, in a possible implementation, the application information of the first application includes any one or more of the following: application name or identifier, application version number, name of the application's development manufacturer. It includes any one or more of the following: application name or identifier, application version number, name of the application's development manufacturer.

[0036] In combination with the first aspect, in a possible implementation, the description information of the first image editing algorithm includes any one or more of the following: identifier or name of the first image editing algorithm, version of the first image editing algorithm, parameters of the first image editing algorithm; the description information of the second image editing algorithm includes any one or more of the following: identifier or name of the second image editing algorithm, version of the second image editing algorithm, parameters of the second image editing algorithm.

[0037] Second aspect, the present application provides a picture editing method, the method comprising: a first electronic device displays a first picture gallery interface, the first picture gallery interface including a first picture; the first electronic device receives an editing operation by a user on the first picture; in response to the editing operation on the first picture, the first electronic device displays a first user interface, the editing interface of the first picture including the first picture and a first option, the first option including a first node and a second node, the first node being related to a first picture editing algorithm, the second node being related to a second picture editing algorithm, the first picture being obtained based on a first image editing algorithm and a second image editing algorithm on the basis of a third picture; the first electronic device receives a first operation by the user on the first node; in response to the first operation, the first electronic device displays a second user interface, the second user interface including a second picture, the second picture being obtained based on the first image editing algorithm on the basis of the third picture.

[0038] In combination with the second aspect, in a possible implementation, before the first electronic device displays the first picture gallery interface, the method further comprises: the first electronic device displays a second picture gallery interface, the second picture gallery interface including a third picture; the first electronic device receives an editing operation by a user on the third picture; in response to the editing operation on the third picture, the first electronic device displays a third user interface, the third user interface including the third picture and a plurality of picture editing options; the first electronic device receives a second operation by the user on a first editing option among the plurality of picture editing options, the first editing option being related to the first picture editing algorithm; in response to the second operation, the first electronic device obtains a second picture; after obtaining the second picture, the first electronic device receives a third operation by the user on a second editing option among the plurality of picture editing options, the second editing option being related to the second picture editing algorithm; in response to the third operation, the first electronic device obtains the first picture; the first electronic device receives a fourth operation to save the first picture; in response to the fourth operation, the first electronic device saves the first picture and the editing record of the first picture.

[0039] In combination with the second aspect, in a possible implementation manner, before the first electronic device displays the first photo gallery interface, the method further includes: the first electronic device displays a second photo gallery interface, and the second photo gallery interface includes a third picture; the first electronic device receives an editing operation of the user on the third picture; in response to the editing operation on the third picture, the first electronic device displays a third user interface, and the third user interface includes the third picture and a plurality of photo editing options; the first electronic device receives a selection operation of the user on a first editing option and a second editing option among the plurality of photo editing options, the first editing option is related to a first photo editing algorithm, and the second editing option is related to a second photo editing algorithm; in response to the selection operation, the first electronic device processes the third picture according to the first photo editing algorithm and the second photo editing algorithm to obtain a first picture; the first electronic device receives a fourth operation of saving the first picture; in response to the fourth operation, the first electronic device saves the first picture and the editing record of the first picture.

[0040] In combination with the second aspect, in a possible implementation manner, the second user interface further includes a second option, and the second option includes a first node.

[0041] In combination with the second aspect, in a possible implementation manner, the second picture is obtained by the first electronic device based on a first image editing algorithm on the basis of the third picture.

[0042] In combination with the second aspect, in a possible implementation manner, before the first electronic device displays the second user interface, the method further includes: in response to a first operation, the first electronic device sends the third picture and the identifier of the first image editing algorithm to the server; the first electronic device receives the second picture sent by the server, and the second picture is obtained by the server based on the first image editing algorithm on the basis of the third picture; the first electronic device displays the second user interface, specifically including: in response to receiving the second picture sent by the server, the first electronic device displays the second user interface.

[0043] In combination with the second aspect, in a possible implementation manner, the first picture is obtained by the first electronic device processing the second picture according to the second photo editing algorithm.

[0044] In a possible implementation manner, the first picture is obtained by the server processing the second picture according to the second photo editing algorithm.

[0045] In combination with the second aspect, in a possible implementation manner, the editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes the identifier of the first image editing algorithm and the identifier of the second image editing algorithm, and the first description information includes the description information of the first image editing algorithm and the description information of the second image editing algorithm.

[0046] In combination with the second aspect, in a possible implementation, the first electronic device displays a first user interface, specifically including: in response to an editing operation on the first picture, the first electronic device obtains first algorithm information in the editing record of the first picture; the first electronic device displays a first option on the first user interface based on the first algorithm information.

[0047] In combination with the second aspect, in a possible implementation, after the first electronic device saves the first picture and the editing record of the first picture, the method further includes: the first electronic device sends the first picture and the editing record of the first picture to the second electronic device; wherein, the editing record of the first picture is used for the second electronic device to process the first picture based on the first picture editing algorithm and the second picture editing algorithm.

[0048] In combination with the second aspect, in a possible implementation, the description information of the first image editing algorithm includes any one or more of the following: the identifier or name of the first image editing algorithm, the version of the first image editing algorithm, the parameters of the first image editing algorithm; the description information of the second image editing algorithm includes any one or more of the following: the identifier or name of the second image editing algorithm, the version of the second image editing algorithm, the parameters of the second image editing algorithm.

[0049] In a third aspect, the present application provides an electronic device, which is the first electronic device. The first electronic device includes a memory and a processor; wherein, the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes a picture editing method provided in any possible implementation of any of the above aspects.

[0050] In a fourth aspect, the present application provides an electronic device, which is the second electronic device. The second electronic device includes a camera, a memory, and a processor; wherein, the camera, the memory, and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the second electronic device executes a data sharing method provided in any possible implementation of any of the above aspects.

[0051] In a fifth aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions run on the first electronic device, the first electronic device executes a data sharing method provided in any possible implementation of any of the above aspects.

[0052] In a sixth aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions run on the second electronic device, the second electronic device executes a data sharing method provided in any possible implementation of any of the above aspects.

[0053] In a seventh aspect, the present application provides a chip system, which includes one or more processors. The processors are configured to call computer instructions to cause a first electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0054] In an eighth aspect, the present application provides a chip system, which includes one or more processors. The processors are configured to call computer instructions to cause a second electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0055] In a ninth aspect, the present application provides a computer program product containing instructions. When the computer program product runs on a first electronic device, it causes the first electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0056] In a tenth aspect, the present application provides a computer program product containing instructions. When the computer program product runs on a second electronic device, it causes the second electronic device to execute a data sharing method provided in any possible implementation manner of any of the above aspects.

[0057] For the description of the beneficial effects of the second to tenth aspects, reference can be made to the description of the beneficial effects in the first aspect, and the present application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figures 1A - 1K A schematic diagram showing a user editing a picture saved in a gallery application in the gallery application;

[0059] Figures 2A - 2D 、 Figures 3A - 3D A schematic diagram showing an electronic device 100 performing an editing operation on a picture;

[0060] Figure 4A A schematic diagram of the method flow of a picture editing method provided by the present application;

[0061] Figure 4B A schematic diagram of an algorithm structure provided by the present application;

[0062] Figures 5A - 5S A schematic diagram showing an electronic device 100 re - editing a picture 3201 based on a user operation;

[0063] Figure 6 A schematic diagram of the method flow of a picture re - editing method provided by the present application;

[0064] Figures 7A - 7G A UI diagram showing an electronic device 100 sharing a picture 3201 to an electronic device 200;

[0065] Figure 8 Schematic flow chart of a method for re - editing pictures sent by an electronic device 100 provided in this application;

[0066] Figure 9 Schematic flow chart of a picture editing method provided in this application;

[0067] Figure 10 Schematic diagram of the hardware structure of an electronic device 100 provided in this application;

[0068] Figure 11 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention. Detailed implementation manners

[0069] Next, the technical solutions in the embodiments of this application will be clearly and elaborately described with reference to the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise specified, " / " means "or". For example, A / B can mean A or B; the "and / or" in the text is just a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of this application, "a plurality of" means two or more than two.

[0070] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of this application, unless otherwise specified, the meaning of "a plurality of" is two or more than two.

[0071] The term "user interface (UI)" in the following embodiments of this application is a media 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 acceptable to the user. The common manifestation form of the user interface is the graphical user interface (GUI), which refers to the user interface related to computer operations displayed in a graphical manner. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. displayed on the display screen of the wearable device.

[0072] In some embodiments, the user can edit the pictures saved in the gallery application in the gallery application. The user can also edit the pictures saved in the gallery application in the beauty application.

[0073] The editing of pictures by an electronic device may refer to adding filters, adding text, adding stickers, adding special effects, cropping and rotating, adjusting picture information, changing the picture background, etc. to the pictures. Among them, adjusting picture information includes, but is not limited to, adjusting any one or several of the following information: brightness, contrast, saturation, sharpness, color temperature, highlights, shadows, etc.

[0074] Figures 1A - 1K The schematic diagram shows a user editing a picture saved in a gallery application in the gallery application.

[0075] Figure 1A The desktop of the electronic device 100 is shown. Application icons of multiple applications are displayed on the desktop of the electronic device 100. For example, weather application icon, stock application icon, calculator application icon, settings application icon, mail application icon, music application icon, video application icon, browser application icon, map application icon, gallery application icon, memo application icon, voice assistant application icon, beauty application icon, etc. A page indicator is also displayed below the multiple application icons to indicate the total number of pages on the desktop and the positional relationship between the currently displayed page and other pages. For example, the desktop may include three pages, and the white dot in the page indicator may indicate that the currently displayed page is the rightmost one of the three pages. Further optionally, there are multiple tray icons (such as dial application icon, message application icon, contacts application icon, camera application icon) below the page indicator, and the tray icons remain displayed during page switching. Optionally, a status bar is displayed in the upper part of the desktop. The status bar may include: one or more signal strength indicators of mobile communication signals (also known as cellular signals), battery status indicator, time indicator, etc.

[0076] Exemplarily, as Figure 1A shown, the electronic device 100 may receive an input operation (such as a click) from the user for the gallery application icon on the desktop. In response to the user's input operation, the electronic device 100 may display Figure 1B the user interface 1100 shown. The user interface 1100 is a user interface in which the photos displayed on the electronic device 100 provided in the embodiments of the present application are classified by time. Multiple pictures are shown in the user interface 1100, and picture 1101 is included in the multiple pictures.

[0077] Exemplarily, as Figure 1B shown, the electronic device 100 may receive an input operation (such as a click) from the user for picture 1101 in the user interface 1100. In response to the user's input operation, the electronic device 100 may display Figure 1C the user interface 1200 shown.

[0078] As Figure 1CAs shown, the user interface 1200 includes a picture 1101 and a menu 1201. The menu 1201 may include a share button, a favorite button, an edit button, a delete button, and a more button. The picture 1101 may have a title, for example, "Scenery". Among them, the share button can be used to trigger the opening of the system sharing interface. The favorite button can be used to trigger favoriting the picture 1101 to the picture favorites folder. The edit button can be used to trigger editing functions such as rotating, trimming, adding filters, and blurring the picture 1101. The delete button can be used to trigger deleting the picture 1101. The more button can be used to trigger the opening of more functions related to the picture.

[0079] Exemplarily, as Figure 1C shown, the electronic device 100 can receive a user's input operation (such as a click) on the edit button in the user interface 1200. In response to the user's input operation, the electronic device 100 can display Figure 1D the user interface 1300 shown, where the user can edit the picture 1101 in the user interface 1300.

[0080] As Figure 1D shown, the user interface 1300 includes a picture 1101, a return option 1301, a delete option 1303, a save option 1302, an edit bar 1304, and an edit bar 1305. The edit bar 1304 includes multiple edit options, such as adjustment options, add filter options, crop and rotate options, and eraser options, etc. The currently selected is the adjustment option, and the multiple edit options shown in the edit bar 1305 are the edit options corresponding to the adjustment option. The edit bar 1305 also includes multiple edit options, such as adjust brightness option, add shadow option, adjust clarity option, add highlight option, adjust color temperature option, and background blur option, etc. The user can slide the area where the edit bar 1305 is located to view more other edit options.

[0081] Exemplarily, as Figure 1D shown, the electronic device 100 can receive a user's input operation (such as a click) on the add filter option in the user interface 1300. In response to the user's input operation, the electronic device 100 can display Figure 1E the user interface 1400 shown, where the user can add a filter to the picture 1101 in the user interface 1400. The user interface 1400 includes an edit bar 1401, and the multiple edit options shown in the edit bar 1401 are the edit options corresponding to the add filter option. The edit bar 1401 also includes multiple edit options, such as add or not add filter option, add warm filter option, add leisurely filter option, etc. The user can slide the area where the edit bar 1401 is located to view more other filter options.

[0082] Exemplarily, as Figure 1EAs shown, the electronic device 100 can receive an input operation (such as a click) from the user for adding a warm filter option in the user interface 1400. In response to the user's input operation, the electronic device 100 can display Figure 1F the user interface 1500 shown. The user interface 1500 includes a picture 1501, which is obtained by adding a warm filter to the picture 1101. After that, the electronic device 100 can receive an input operation (such as a click) from the user for the save option 1302 in the user interface 1500. In response to the user's input operation, the electronic device 100 can save the picture 1501 and display Figure 1G the user interface 1600 shown. The user interface 1600 is similar to the user interface 1100, except that the user interface 1600 also includes the picture 1501.

[0083] In some embodiments, if the user is not satisfied with the editing effect of the picture 1501, the user can re - edit the picture 1101 on the basis of the picture 1101.

[0084] Referring to Figures 1B - 1C the description in the embodiments, when the user needs to re - edit the picture 1101, the electronic device 100 can display Figure 1D the user interface 1300 shown. As Figure 1H shown, the electronic device 100 can receive an input operation from the user for the crop and rotate option in the user interface 1300 and display Figure 1I the user interface 1700 shown. The user interface 1700 includes a picture crop frame 1701 and a picture rotation option 1702. Among them, the user can adjust the size of the picture crop frame 1701 to adjust the size of the picture 1101. The picture rotation option 1702 includes a left - rotation option and a right - rotation option. Among them, the user can rotate the picture 1101 90 degrees to the left through the left - rotation option, and the user can also rotate the picture 1101 90 degrees to the right through the right - rotation option.

[0085] When the electronic device 100 crops the size of the picture 1101 based on the user operation, the electronic device 100 can display Figure 1J the user interface 1800 shown.

[0086] The user interface 1800 includes a picture 1801, which is obtained by cropping the picture 1101. After that, the electronic device 100 can receive an input operation (such as a click) from the user for the save option 1302 in the user interface 1800. In response to the user's input operation, the electronic device 100 can save the picture 1801 and display Figure 1KThe user interface 1900 shown is similar to the user interface 1600, except that the user interface 1800 further includes a picture 1701.

[0087] As can be seen from Figure 1G and Figure 1K When the user performs a filter addition operation on the original picture, the picture can be saved. If the user is not satisfied with the editing result of the filter addition, the user only needs to perform a cropping operation on the original picture. The user can only perform a cropping operation on the original picture based on the original picture and save the cropped picture. The electronic device 100 stores not only the picture after the filter addition but also the picture after the cropping operation. The electronic device 100 stores not only the original picture but also the picture after the filter addition and the picture after the cropping operation. That is, there are multiple similar pictures on the electronic device 100, which will also occupy the storage space of the electronic device 100.

[0088] Based on the above analysis, in order to improve the picture editing efficiency, during the process of the user editing a picture, the electronic device 100 can save the editing record of the picture. The editing record of the picture can include one or more editing nodes, and each editing node can include the parameter information of the picture processing algorithm used. After that, when the user re - edits the saved picture, the electronic device 100 can display the editing record of the picture and roll back to any editing node based on the user operation to achieve re - editing of the picture and improve the picture editing efficiency.

[0089] Optionally, this application is not only applicable to re - editing pictures, but also applicable to re - editing videos and re - editing audios. The specific implementation is similar to the process of re - editing pictures provided in the following embodiments of this application.

[0090] First, a picture editing scenario provided by this application is introduced.

[0091] 1. Perform one or more editing operations on a picture and save the edited picture and the editing record of the picture.

[0092] In some embodiments, the electronic device 100 can perform one or more editing operations on a picture in the gallery application. In other embodiments, the electronic device 100 can also perform one or more editing operations on a picture in the beauty application.

[0093] This application embodiment is described by taking performing one or more editing operations on a picture in the gallery application as an example.

[0094] Figures 2A - 2D 、 Figures 3A - 3D shows a schematic diagram of the electronic device 100 performing an editing operation on a picture.

[0095] Refer toFigures 1A - 1E As described in the embodiments, the electronic device 100 may receive a user operation to perform a filter addition operation on the picture 1101.

[0096] Exemplarily, as Figure 2A shown, in response to the user performing an editing operation of adding a warm filter to the picture 1101, the electronic device 100 may display Figure 2A the user interface 2100 as shown. The user interface 2100 includes a picture 1501, and the picture 1501 is a picture obtained by adding a warm filter to the basis of the picture 1101.

[0097] An editing node 2101 is also displayed in the user interface 2100, and the text "Filter" is displayed below the editing node 2101 to prompt that the picture 1501 is a picture obtained after performing a filter addition operation.

[0098] In some embodiments, the text "Filter" may not be displayed below the editing node 2101.

[0099] The electronic device 100 also needs to save the editing record of the picture 1501, the editing record of the picture 1501. The editing record of the picture 1501 may include the picture processing algorithm parameter information one used by the picture 1501. The picture processing algorithm parameter information one may include but is not limited to the algorithm processing structure one and the description information one of the algorithm. For example, the algorithm processing structure one may include a filter algorithm, and the description information one of the algorithm may include the description information of the filter algorithm. The description information of the filter algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameter of the filter algorithm may be "warm".

[0100] In some embodiments, the user may continue to perform other editing operations on the basis of the picture 1501.

[0101] For example, the user may add a watermark to the picture 1501.

[0102] Exemplarily, as Figure 2A shown, the electronic device 100 may receive an input operation (such as a click) of the user on the adjustment option in the user interface 2100. In response to the user's input operation, the electronic device 100 may display Figure 2B the user interface 2200 as shown. The user interface 2200 includes an editing bar 1304 and an editing bar 1305.

[0103] As Figure 2B shown, the electronic device 100 may receive a sliding operation (such as a left sliding operation) of the user on the editing bar 1304. In response to the user's sliding operation, the electronic device 100 may display Figure 2CThe user interface 2300 shown, the editing bar 2301 shown in the user interface 2300 is similar to the editing bar 1305, the difference being that the editing bar 2301 further includes a watermark addition option, and the user can add a watermark to the picture 1501 through the watermark addition option.

[0104] Exemplarily, as Figure 2D shown, in response to adding text to the picture 1501, the electronic device 100 can display Figure 2D the user interface 2400 shown. The user interface 2400 may include a picture 2401, and the picture 2401 is obtained by adding the text "Good day" to the picture 1501.

[0105] The user interface 2400 also displays an editing node 2101 and an editing node 2402. The editing node 2101 points to the editing node 2402, which is used to indicate the execution order of different picture editing algorithms. Below the editing node 2101, the text "Filter" is displayed, and below the editing node 2402, the text "Watermark" is displayed, to prompt that the picture 2401 is the picture obtained after performing the filter addition operation and the watermark addition operation.

[0106] In some embodiments, the text "Watermark" may not be displayed below the editing node 2402 either.

[0107] The electronic device 100 also needs to save the editing record of the picture 2401. The editing record of the picture 2401 may include the picture processing algorithm parameter information two used by the picture 2401. The picture processing algorithm parameter information two may include but is not limited to the algorithm processing structure two and the algorithm description information two. For example, the algorithm processing structure two may include that the filter addition algorithm points to the watermark addition algorithm, and the algorithm description information two may include the description information of the filter addition algorithm and the description information of the watermark addition algorithm. The description information of the filter addition algorithm may include but is not limited to the identifier or name of the filter addition algorithm, the version of the filter addition algorithm, the parameters of the filter addition algorithm, etc. For example, the parameter of the filter addition algorithm may be "Warm". The description information of the watermark addition algorithm may include but is not limited to the identifier or name of the watermark addition algorithm, the version of the watermark addition algorithm, the parameters of the watermark addition algorithm, etc. For example, the parameter of the watermark addition algorithm may be "Good day".

[0108] In some embodiments, the user can also continue to perform other editing operations on the basis of the picture 2401.

[0109] For example, the user can crop the picture 2401.

[0110] As Figure 3AAs shown, the electronic device 100 can receive a user's input operation for the crop and rotation options in the user interface 2400 and display Figure 3B the user interface 3100 as shown. The user interface 3100 includes a picture crop frame 1701 and picture rotation options 1702. Among them, the user can adjust the size of the picture crop frame 1701 to adjust the size of the picture 2401. The picture rotation options 1702 include a left rotation option and a right rotation option. Among them, the user can rotate the picture 2401 90 degrees to the left through the left rotation option, and the user can also rotate the picture 2401 90 degrees to the right through the right rotation option.

[0111] After the electronic device 100 crops the size of the picture 2401 based on the user operation, the electronic device 100 can display Figure 3C the user interface 3200 as shown.

[0112] The user interface 3200 includes a picture 3201, and the picture 3201 is a picture obtained by cropping the picture 2401. After that, the electronic device 100 can receive the user's input operation (such as clicking) for the save option 1302 in the user interface 3200. In response to the user's input operation, the electronic device 100 can save the picture 3201 and display Figure 3D the user interface 3300 as shown. The user interface 3300 is similar to the user interface 1600, except that the user interface 3300 also includes a picture 3201, and the picture 3201 is a picture obtained by sequentially performing operations of adding filters, adding watermarks, and cropping on the basis of the picture 1101.

[0113] An editing node 2101, an editing node 2402, and an editing node 3202 are also displayed in the user interface 3200. The editing node 2101, the editing node 2402, and the editing node 3202 are used to indicate the execution order of different picture editing algorithms. The text "Filter" is displayed below the editing node 2101, the text "Watermark" is displayed below the editing node 2402, and the text "Crop" is displayed below the editing node 3202 to prompt that the picture 3201 is a picture obtained by performing operations of adding filters, adding watermarks, and cropping.

[0114] In some embodiments, the text "Crop" may not be displayed below the editing node 3202.

[0115] The electronic device 100 also needs to save the editing record of the picture 3201. The editing record of the picture 3201 may include the picture processing algorithm parameter information III of the picture 3201. The picture processing algorithm parameter information III may include but is not limited to the algorithm processing structure III and the description information III of the algorithm. For example, the algorithm processing structure III may include that the add filter algorithm points to the add watermark algorithm, and the add watermark algorithm points to the crop algorithm. The description information III of the algorithm may include the description information of the add filter algorithm, the description information of the add watermark algorithm, and the description information of the crop algorithm. The description information of the add filter algorithm may include but is not limited to the identifier or name of the add filter algorithm, the version of the add filter algorithm, the parameters of the add filter algorithm, etc. For example, the parameter of the add filter algorithm may be "warm". The description information of the add watermark algorithm may include but is not limited to the identifier or name of the add watermark algorithm, the version of the add watermark algorithm, the parameters of the add watermark algorithm, etc. For example, the parameter of the add watermark algorithm may be "Good day". The description information of the crop algorithm may include but is not limited to the identifier or name of the crop algorithm, the version of the crop algorithm, the parameters of the crop algorithm, etc. For example, the parameter of the crop algorithm may be the crop box size.

[0116] Not only limited to performing operations such as adding filters, adding watermarks, and cropping on the picture 1101, the electronic device 100 can also perform other editing operations on the picture 1101 based on user operations, and this application does not limit this either.

[0117] Figure 4A It is a schematic flowchart of a picture editing method provided by this application.

[0118] S401. The electronic device 100 displays a first picture editing interface, and the first picture editing interface includes a first picture and multiple picture editing options.

[0119] The first picture editing interface may be a picture editing interface in a gallery application, or may also be a picture editing interface in a beauty application, and this application does not limit this.

[0120] This application embodiment takes the first picture editing interface being a picture editing interface in a gallery application as an example for illustration.

[0121] The user can edit or beautify the first picture through multiple picture editing options. Editing or beautifying the picture may refer to adding filters, adding text, adding stickers, adding special effects, cropping the size and rotating, adjusting picture information, changing the picture background, etc. Among them, adjusting the picture information includes but is not limited to adjusting any one or several of the following information: brightness, contrast, saturation, clarity, color temperature, highlight, shadow, etc.

[0122] Exemplarily, the first picture editing interface may beFigure 1D The user interface 1300 shown.

[0123] The first picture can be Figure 1D The picture 1101 shown.

[0124] The picture editing options can include but are not limited to Figure 1D The editing bar 1304 shown and multiple editing options shown in the editing bar 1305.

[0125] S402. The electronic device 100 receives an operation by the user for a first editing option among multiple picture editing options, and displays a second picture editing interface. The second picture editing interface includes a second picture, and the second picture is obtained by using a first editing algorithm on the basis of the first picture.

[0126] Exemplarily, the first editing option can be Figure 1E The option of adding a warm filter shown. The first editing algorithm can be the algorithm for adding a warm filter.

[0127] The operation for the first editing option among multiple picture editing options can be Figure 1E The input operation (such as clicking) for the option of adding a warm filter in the user interface 1400 shown.

[0128] The second picture editing interface can be Figure 2A The user interface 2100 shown.

[0129] The second picture can be Figure 2A The picture 1501 shown.

[0130] S403. The electronic device 100 generates a first picture editing record, and the first picture editing record includes a first algorithm structure and first description information.

[0131] In response to the operation by the user for the first picture editing option among multiple picture editing options, the electronic device 100 generates a first picture editing record, and the first picture editing record includes a first algorithm structure and first description information.

[0132] Among them, the first algorithm structure is used to indicate the type of picture editing algorithm used for the second picture and the sequence of the picture editing algorithms used for the second picture.

[0133] Exemplarily, the first algorithm structure can be Figure 4B The algorithm structure shown in (a) of. The algorithm for adding a warm filter can be the root node of the first algorithm structure.

[0134] The first description information is used to indicate the description information of the first editing algorithm used for the second picture.

[0135] Exemplarily, the first editing algorithm may be a filter algorithm. The description information of the filter algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameter of the filter algorithm may be "warm".

[0136] In some embodiments, after the electronic device 100 generates an editing record of a picture, in order to save the storage space occupied by the editing record of the picture, the electronic device 100 may compress the editing record of the picture and then store it. Among them, the compression algorithm may include but is not limited to any one of the following: RLE compression algorithm, LZ77 compression algorithm, LZR compression algorithm, DEFLATE compression algorithm, etc.

[0137] In some embodiments, the electronic device 100 may store the picture editing record based on a preset file format. Exemplarily, in the embodiments of the present application, the preset file format may be referred to as the TBP file format.

[0138] Table 1

[0139]

[0140] Table 1 shows the composition structure of the TBP file format.

[0141] Among them, as shown in Table 1, the TBP file format includes but is not limited to the SOI segment, one or more TBP-APP segments, one or more GPH segments, the EOI segment, etc.

[0142] The SOI segment is used to fill in CA FE, and the SOI segment is used to indicate the start of the picture.

[0143] One or more TBP-APP segments may include but are not limited to the TBP-APP0 segment, the TBP-APP1 segment, and the TBP-APP2 segment. The TBP-APP0 segment is used to fill in the original metadata of the picture, and the TBP-APP0 segment is used to represent the picture information of the original picture. The TBP-APP1 segment is used to fill in the storage address of the compressed original picture, and the TBP-APP1 segment is used to represent the storage address of the original picture without performing editing operations. The TBP-APP2 segment is used to fill in the updated metadata of the picture, and the TBP-APP2 segment is used to represent the picture information of the picture obtained after performing editing operations on the original picture.

[0144] One or more GPH segments may include, but are not limited to, GPH0 segment, GPH1 segment, GPH2 segment, GPH3 segment, and GPH4 segment, etc. The GPH0 segment is used to fill in the picture editing algorithm structure table, and the GPH0 segment is used to represent the execution order of the executed picture editing algorithms. The GPH1 segment is used to fill in picture editing algorithm A, and the GPH1 segment is used to represent the identifier of picture editing algorithm A. The GPH2 segment is used to fill in picture editing algorithm B, and the GPH2 segment is used to represent the identifier of picture editing algorithm B. The GPH3 segment is used to fill in picture editing algorithm C, and the GPH3 segment is used to represent the identifier of picture editing algorithm C. The GPH4 segment is used to fill in the storage address of the compressed and updated picture, and the GPH4 segment is used to represent the storage address of the original picture on which the editing operation has been performed.

[0145] The EOI segment is used to fill in CA FD, and the EOI segment is used to indicate the end of the picture.

[0146] It should be noted that depending on the types of picture editing algorithms used for the picture, there may be more or fewer GPH segments. This application does not limit the number of GPH segments.

[0147] In some embodiments, the data structure of the TBP file format may also include more or fewer fields than those in Table 1. This application does not limit this.

[0148] Exemplarily, referring to Figures 1D - 1F the description in the embodiment, when the electronic device 100 adds a "warm" filter to the picture 1101 based on a user operation, the electronic device 100 may record the identifier of the "warm" filter addition algorithm in the GPH1 segment in Table 1.

[0149] Exemplarily, referring to Figures 2C - 2D the description in the embodiment, when the electronic device 100 adds a "Good day" text watermark to the picture 1501 based on a user operation, the electronic device 100 may record the identifier of the "Good day" text watermark addition in the GPH2 segment in Table 1.

[0150] Exemplarily, referring to Figures 3A - 3C the description in the embodiment, when the electronic device 100 crops the picture 2401 based on a user operation, the electronic device 100 may record the identifier of the cropping algorithm in the GPH3 segment in Table 1.

[0151] In some embodiments, the picture editing algorithm structure table in the TBP file format may be represented as the data structure shown in Table 2.

[0152] Table 2

[0153]

[0154] Table 2 exemplarily shows the data structure of the editing algorithm structure table.

[0155] As shown in Table 2, the data structure may include multiple fields, such as SOT0 segment, SOT1 segment, CPS segment, one or more GPI segments, and EOT segment.

[0156] Among them, the SOT0 segment is used to fill in CA FO, and CA FO represents the start of the picture editing algorithm structure.

[0157] The SOT1 segment is used to fill in the length of the picture editing algorithm data segment, and the SOT1 segment represents the length of the picture editing algorithm data segment.

[0158] The CPS segment is used to fill in the compression bit flag, and the CPS segment represents the compression algorithm type and whether the picture is compressed.

[0159] One or more GPI segments may include but are not limited to GPI0 segment, GPI1 segment, GPI2 segment, and GPI3 segment. The GPI0 segment is used to fill in the picture editing algorithm node graph structure, and the GPI0 segment can be represented as picture editing algorithm A -> picture editing algorithm B -> picture editing algorithm C, so as to indicate that the picture sequentially uses picture editing algorithm A, picture editing algorithm B, and picture editing algorithm C. The GPI1 segment is used to fill in the fat pointer of the picture editing algorithm A data structure, and the GPI1 segment represents the offset position and length of the picture editing algorithm A. The GPI2 segment is used to fill in the fat pointer of the picture editing algorithm B data structure, and the GPI2 segment represents the offset position and length of the picture editing algorithm B. The GPI3 segment is used to fill in the fat pointer of the picture editing algorithm C data structure, and the GPI3 segment represents the offset position and length of the picture editing algorithm C.

[0160] The EOT segment is used to fill in CA F1, and CA F1 represents the end of the picture editing algorithm structure.

[0161] It should be noted that as the types of picture editing algorithms used in the picture are different, there may be more or fewer GPI segments, and this application does not limit the number of GPH segments.

[0162] In some embodiments, the data structure of the picture editing algorithm structure table may also include more or fewer fields than those in Table 2, and this application does not limit this.

[0163] Exemplarily, referring to Figures 1D - 1F the description in the embodiment, when the electronic device 100 adds a "warm" filter to the picture 1101 based on the user operation, the electronic device 100 may record the pointer of the description information of the "warm" filter addition algorithm in the GPI1 segment in Table 2.

[0164] Exemplarily, referring to Figures 2C - 2DAs described in the embodiments, after the electronic device 100 adds the text watermark "Good day" to the picture 1501 based on a user operation, the electronic device 100 can record the pointer to the description information of the algorithm for adding the text "Good day" in the GPI2 segment in Table 2.

[0165] Exemplarily, referring to Figures 3A - 3C As described in the embodiments, after the electronic device 100 crops the picture 2401 based on a user operation, the electronic device 100 can record the pointer to the description information of the cropping algorithm in the GPH3 segment in Table 2.

[0166] In some embodiments, the fat pointer of the picture editing algorithm data structure in the image editing algorithm structure table can be represented as the data structure shown in Table 3.

[0167] Table 3

[0168]

[0169] Table 3 exemplarily shows the data structure of the fat pointer of the picture editing algorithm data structure.

[0170] As shown in Table 3, this data structure can include multiple fields, such as the SOA segment, VER segment, STR segment, TPE segment, PAR segment, AVR segment, VDR segment, ADR segment, CPX segment, FIL segment, and EOA segment, etc.

[0171] Among them, the SOA segment is used to fill in CA F2, and CA F2 represents the start of the picture editing algorithm packaging structure.

[0172] The VER segment is used to fill in the picture editing algorithm version and the picture editing algorithm type. The VER segment represents the picture editing algorithm version and the picture editing algorithm type. The algorithm type can include a deterministic algorithm or a non-deterministic algorithm.

[0173] The STR segment is used to fill in the picture editing algorithm name, and the STR segment represents the picture editing algorithm name.

[0174] The TPE segment is used to fill in the input parameter image format of the picture editing algorithm, and the TPE segment represents the input parameter data type of the picture editing algorithm.

[0175] The PAR segment is used to fill in the input parameter array of the picture editing algorithm, and the PAR segment represents the picture editing algorithm parameters.

[0176] Exemplarily, referring to Figures 1D - 1FAs described in the embodiments, after the electronic device 100 adds a "warm" filter to the picture 1101 based on a user operation, the electronic device 100 can record the description information of the algorithm for adding the "warm" filter in multiple segments in Table 3. For example, the electronic device 100 can record the parameter "warm" of the algorithm for adding the "warm" filter in the PAR segment in Table 3.

[0177] Exemplarily, referring to Figures 2C - 2D As described in the embodiments, after the electronic device 100 adds a "Good day" text watermark to the picture 1501 based on a user operation, the electronic device 100 can record the description information of the algorithm for adding the "Good day" text in multiple segments in Table 3. For example. For example, the electronic device 100 can record the parameter "Good day" of the algorithm for adding the "Good day" text in the PAR segment in Table 3.

[0178] Exemplarily, referring to Figures 3A - 3C As described in the embodiments, after the electronic device 100 crops the picture 2401 based on a user operation, the electronic device 100 can record the description information of the cropping algorithm in multiple segments in Table 3. For example, the electronic device 100 can record the parameter "cropping frame size" of the cropping algorithm in the PAR segment in Table 3. The AVR segment is used to fill in the picture editing algorithm version encoding, and the AVR segment represents the picture editing algorithm version.

[0179] The VDR segment is used to fill in the picture editing algorithm provider, and the VDR segment represents the picture editing algorithm provider.

[0180] The ADR segment is used to fill in the length of the picture editing algorithm data file segment, and the ADR segment represents the length of the picture editing algorithm data file segment.

[0181] The CPX segment is used to fill in the complexity of the picture editing algorithm, and the CPX segment represents the complexity of the picture editing algorithm.

[0182] The FIL segment is used to fill in the storage location of the input parameter data file of the picture editing algorithm, and the FIL segment represents the storage location of the input parameter data file of the picture editing algorithm.

[0183] The EOA segment is used to fill in CA F3, and CA F3 represents the end of the picture editing algorithm packaging structure.

[0184] In some embodiments, the data structure of the fat pointer of the picture editing algorithm data structure may also not include segments such as the VDR segment, the ADR segment, the CPX segment, and the FIL segment, etc.

[0185] In some embodiments, the data structure of the fat pointer of the picture editing algorithm data structure may further include more or fewer fields than those in Table 3, and the present application does not make any limitations in this regard.

[0186] S404. The electronic device 100 receives an operation by the user on a second editing option among multiple picture editing options in the second picture editing interface, and displays a third picture editing interface. The third picture editing interface includes a third picture, and the third picture is obtained by using a second editing algorithm based on the second picture.

[0187] Exemplarily, the second editing option may be Figure 2C the watermark adding option as shown. The second editing algorithm may be a watermark adding algorithm.

[0188] The operation on the second editing option among multiple picture editing options may be Figure 2C the input operation (such as a click) on the watermark adding option in the user interface 2300 as shown.

[0189] The third picture editing interface may be Figure 2D the user interface 2400 as shown.

[0190] The third picture may be Figure 2D the picture 2401 as shown.

[0191] S405. The electronic device 100 generates a second picture editing record, and the second picture editing record includes a second algorithm structure and second description information.

[0192] In response to the operation by the user on the second editing option among multiple picture editing options, the electronic device 100 generates a second picture editing record, and the second picture editing record includes a second algorithm structure and second description information.

[0193] Among them, the second algorithm structure is used to indicate the type of the picture editing algorithm used for the third picture and the sequence of the picture editing algorithms used for the third picture.

[0194] Exemplarily, the second algorithm structure may be Figure 4B the algorithm structure shown in (b) of. The watermark adding algorithm may be a sub-node of the warm filter adding algorithm.

[0195] The second description information is used to indicate the description information of the first editing algorithm and the second editing algorithm used for the third picture.

[0196] Exemplarily, the first editing algorithm may be a filter adding algorithm, and the description information of the first editing algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameter of the filter algorithm may be "warm".

[0197] Exemplarily, the second editing algorithm may be a watermark addition algorithm. The description information of the second editing algorithm may include, but is not limited to, the identifier or name of the watermark addition algorithm, the version of the watermark addition algorithm, the parameters of the watermark addition algorithm, etc. For example, the parameter of the watermark addition algorithm may be "Good day".

[0198] Optionally, the electronic device 100 may also not execute S404 - S405.

[0199] S406. The electronic device 100 receives an operation of the user on a third editing option among multiple picture editing options in the third picture editing interface, and displays a fourth picture editing interface. The fourth picture editing interface includes a fourth picture, and the fourth picture is obtained by using a third editing algorithm on the basis of the third picture.

[0200] Exemplarily, the third editing option may be Figure 3A the cropping and rotation option shown in. The third editing algorithm may be a cropping algorithm.

[0201] The operation on the third editing option among multiple picture editing options may be Figure 3A the input operation (such as clicking) on the cropping and rotation option in the user interface 2400 shown in.

[0202] The fourth picture editing interface may be Figure 3C the user interface 3200 shown in.

[0203] The fourth picture may be Figure 3C the picture 3201 shown in.

[0204] S407. The electronic device 100 generates a third picture editing record, and the third picture editing record includes a third algorithm structure and third description information.

[0205] In response to the operation of the user on the third editing option among multiple picture editing options, the electronic device 100 generates a third picture editing record, and the third picture editing record includes a third algorithm structure and third description information.

[0206] Among them, the third algorithm structure is used to indicate the type of the picture editing algorithm used for the fourth picture and the sequence of the picture editing algorithms used for the fourth picture.

[0207] Exemplarily, the fourth algorithm structure may be Figure 4B the algorithm structure shown in (c) of. The cropping algorithm may be a child node of the watermark addition algorithm, and the watermark addition algorithm may be a child node of the warm filter addition algorithm.

[0208] The third description information is used to indicate the description information of the first editing algorithm, the description information of the second editing algorithm, and the description information of the third editing algorithm used for the fourth picture.

[0209] Exemplarily, the first editing algorithm may be a filter adding algorithm. The description information of the first editing algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameter of the filter algorithm may be "warm".

[0210] Exemplarily, the second editing algorithm may be a watermark adding algorithm. The description information of the second editing algorithm may include but is not limited to the identifier or name of the watermark adding algorithm, the version of the watermark adding algorithm, the parameters of the watermark adding algorithm, etc. For example, the parameter of the watermark adding algorithm may be "Good day".

[0211] Exemplarily, the third editing algorithm may be a cropping algorithm. The description information of the cropping algorithm may include but is not limited to the identifier or name of the watermark adding algorithm, the version of the watermark adding algorithm, the parameters of the watermark adding algorithm, etc. For example, the parameter of the cropping algorithm may be the cropping frame size.

[0212] Optionally, the electronic device 100 may also not execute S406 - S407.

[0213] S408. The electronic device 100 receives an input operation of the user for the save option in the fourth picture editing interface, and saves the fourth picture and the third picture editing record.

[0214] Exemplarily, the save option may be Figure 3C The save option 1302 shown. The input operation of the user for the save option in the fourth picture editing interface may be the input operation (such as clicking) of the user for the save option 1302 in the user interface 3200.

[0215] In response to the input operation of the user for the save option in the fourth picture editing interface, the electronic device 100 may save the fourth picture and the third picture editing record.

[0216] Second, re - edit the edited picture and save the re - edited picture.

[0217] After the electronic device 100 saves the picture 3201, the electronic device 100 may simultaneously save the picture editing record corresponding to the picture 3201. The picture editing record may include the picture editing algorithm structure and algorithm description information corresponding to the picture 3201. The picture editing algorithm structure includes multiple editing nodes, and each node corresponds to a picture editing algorithm. Then, when the user re - edits the saved picture, the electronic device 100 may display the picture editing algorithm structure corresponding to the picture 3201, and based on the user operation, roll back to any editing node to achieve re - editing of the picture and improve the picture editing efficiency.

[0218] Figures 5A - 5S FIG. shows a schematic diagram of the electronic device 100 re - editing the picture 3201 based on a user operation.

[0219] Referring to Figures 3C - 3D the description in the embodiment, after the electronic device 100 saves the edited picture 3201 based on a user operation, the electronic device 100 may display Figure 3D the user interface 3300 as shown. The user interface 3300 includes the picture 3201, which is a picture obtained by successively adding filters, adding watermarks, and cropping operations on the basis of the picture 1101.

[0220] Exemplarily, as Figure 5A shown, the electronic device 100 may receive an input operation (such as a click) of the user on the picture 3201 in the user interface 3300. In response to the user's input operation, the electronic device 100 may display Figure 5B the user interface 5100 as shown. The user interface 5100 includes the picture 3201 and the menu 1201. The menu 1201 may include a share button, a favorite button, an edit button, a delete button, and a more button.

[0221] When the user needs to re - edit the picture 3201, as Figure 5B shown, the electronic device 100 may receive an input operation (such as a click) of the user on the edit button in the menu 1201. In response to the user's input operation, the electronic device 100 may display Figure 5C the user interface 5200 as shown. The user interface 5200 includes the picture 3201, a return option 1301, a delete option 1303, a save option 1302, an edit bar 1304, an edit bar 1305, and a re - edit option 5201. The re - edit option 5201 includes a plurality of edit nodes, such as an edit node 2101, an edit node 2402, and an edit node 3202. Among them, the edit node 2101 points to the edit node 2402, the edit node 2402 points to the edit node 3202, the edit node 2101 is the root node, the edit node 2402 is a child node of the edit node 2101, and the edit node 2402 is a child node of the edit node 3202.

[0222] The electronic device 100 may, based on the input operation of the user on any one of the edit nodes in the re - edit option 5201, cause the electronic device 100 to roll back the editing effect of the picture 3201 to the editing effect corresponding to the edit node selected by the user.

[0223] In some embodiments, the user may roll back the picture 3201 to the editing effect corresponding to the edit node 2402.

[0224] Exemplarily, as Figure 5CAs shown, the electronic device 100 can receive a user's input operation (such as a click) for the editing node 2402 in the re - editing option 5201. In response to the user's input operation, the electronic device 100 can roll back the picture 3201 to the editing effect corresponding to the editing node 2402.

[0225] Specifically, the electronic device 100 can obtain the original picture corresponding to the picture 3201, such as the picture 1101, and obtain the description information one of the algorithm corresponding to the editing node 2101 and the description information two of the algorithm corresponding to the editing node 2402, and then edit the picture 1101 successively through the description information one of the algorithm and the description information two of the algorithm to obtain the picture 2401.

[0226] In response to obtaining the picture 2401, the electronic device 100 also needs to generate an editing record of the picture 2401. The editing record of the picture 2401 can include the picture - processing algorithm parameter information two used by the picture 2401. The picture - processing algorithm parameter information two can include but is not limited to the algorithm - processing structure two and the description information two of the algorithm. For example, the algorithm - processing structure two can include that the add - filter algorithm points to the add - watermark algorithm. The description information two of the algorithm can include the description information of the add - filter algorithm and the description information of the add - watermark algorithm. The description information of the add - filter algorithm can include but is not limited to the identifier or name of the add - filter algorithm, the version of the add - filter algorithm, the parameters of the add - filter algorithm, etc. For example, the parameter of the add - filter algorithm can be "warm". The description information of the add - watermark algorithm can include but is not limited to the identifier or name of the add - watermark algorithm, the version of the add - watermark algorithm, the parameters of the add - watermark algorithm, etc. For example, the parameter of the add - watermark algorithm can be "Goodday".

[0227] In response to obtaining the picture 2401, the electronic device 100 can display Figure 5D the user interface 5300 as shown. The user interface 5300 can include the picture 2401, the return option 1301, the delete option 1303, the save option 1302, the editing bar 1304, the editing bar 1305, and the re - editing option 5301. The re - editing option 5301 can correspond to the algorithm - processing structure two. The re - editing option 5301 includes multiple editing nodes, such as the editing node 2101 and the editing node 2402. Among them, the editing node 2101 points to the editing node 2402, and the editing node 2402 is a child node of the editing node 2101. The multiple editing nodes in the re - editing option 5301 are used to indicate the picture - editing algorithm used by the picture 2401.

[0228] As Figure 5DAs shown, the electronic device 100 can receive an input operation (such as a click) from the user for the save option 1302 in the user interface 5300. In response to the user's input operation, the electronic device 100 can save the picture 2401 and display Figure 5E the user interface 5400 shown. The user interface 5400 is similar to the user interface 3300, except that the user interface 5400 further includes the picture 2401 and does not include the picture 3201. The picture 2401 is a picture obtained by sequentially performing a filter addition operation and a watermark addition operation on the basis of the picture 1101.

[0229] In response to saving the picture 2401, the electronic device 100 also needs to save the editing record of the picture 2401.

[0230] In some embodiments, the user can roll back the picture 3201 to the editing effect corresponding to the editing node 2101.

[0231] Exemplarily, as Figure 5F shown, the electronic device 100 can receive an input operation (such as a click) from the user for the editing node 2101 in the re - editing option 5201. In response to the user's input operation, the electronic device 100 can roll back the picture 3201 to the editing effect corresponding to the editing node 2101.

[0232] Specifically, the electronic device 100 can obtain the original picture corresponding to the picture 3201, such as the picture 1101, and obtain the description information one of the algorithm corresponding to the editing node 2101, and perform editing on the picture 1101 through the description information one of the algorithm to obtain the picture 1501.

[0233] In response to obtaining the picture 1501, the electronic device 100 also needs to generate an editing record of the picture 1501. The editing record of the picture 1501 can include the picture - processing algorithm parameter information one used by the picture 1501. The picture - processing algorithm parameter information one can include but is not limited to the algorithm processing structure one and the description information one of the algorithm. For example, the algorithm processing structure one can include a filter algorithm, and the description information one of the algorithm can include the description information of the filter algorithm. The description information of the filter algorithm can include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameter of the filter algorithm can be "warm".

[0234] In response to obtaining the picture 1501, the electronic device 100 can display Figure 5GThe user interface 5500 shown may include a picture 1501, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re - editing option 5501. The re - editing option 5501 includes an editing node, such as editing node 2101. One of the editing nodes in the re - editing option 5501 is used to indicate the picture - editing algorithm used by the picture 1501.

[0235] As Figure 5G shown, the electronic device 100 may receive an input operation (such as a click) from the user for the save option 1302 in the user interface 5500. In response to the user's input operation, the electronic device 100 may save the picture 1501 and display Figure 5H the user interface 5600 shown. The user interface 5600 is similar to the user interface 3300, except that the user interface 5600 further includes the picture 1501 and does not include the picture 3201. The picture 1501 is a picture obtained by adding a filter operation on the basis of the picture 1101.

[0236] In response to saving the picture 1501, the electronic device 100 also needs to save the editing record of the picture 1501.

[0237] In some embodiments, the user may also re - edit the picture 3201 to make the picture 3201 return to the display effect of the original picture.

[0238] Exemplarily, referring to Figures 5A - 5B the description in the embodiment, in response to the user's input operation (such as a click) for the edit button, in response to the user's input operation, the electronic device 100 may display Figure 5I the user interface 5700 shown. The user interface 5700 includes a picture 3201, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re - editing option 5701. The re - editing option 5701 includes multiple editing nodes, such as editing node 5702, editing node 2101, editing node 2402, and editing node 3202. Among them, the editing node 5702 points to the editing node 2101, the editing node 2101 points to the editing node 2402, the editing node 2402 points to the editing node 3202, the editing node 5702 is the root node, the editing node 2101 is a child node of the editing node 5702, the editing node 2402 is a child node of the editing node 2101, and the editing node 3202 is a child node of the editing node 2402.

[0239] Optionally, the text "Original Image" is displayed below the editing node 5702. Optionally, the display effect of the image corresponding to the editing operation can also be displayed below the editing node, or the text may not be displayed below the editing node.

[0240] Exemplarily, as Figure 5I shown, the electronic device 100 can receive an input operation (such as a click) from the user for the editing node 5702 in the user interface 5700. In response to the user's input operation, the electronic device 100 can roll back the picture 3201 to the editing effect corresponding to the editing node 5702.

[0241] Specifically, the electronic device 100 can obtain the original image corresponding to the picture 3201, such as the picture 1101, and obtain the description information of the algorithm corresponding to the editing node 5702. The editing node 5702 corresponds to the original image, and the electronic device 100 can directly obtain the picture 1101.

[0242] In response to obtaining the picture 1501, the electronic device 100 can display Figure 5J the user interface 5800 shown. The user interface 5800 includes the picture 1101, the return option 1301, the delete option 1303, the save option 1302, the editing bar 1304, the editing bar 1305, and the re - editing option 5801. The re - editing option 5801 includes an editing node, such as the editing node 5702. One editing node in the re - editing option 5801 is used to indicate that the picture 1101 is the original image.

[0243] As Figure 5J shown, the electronic device 100 can receive an input operation (such as a click) from the user for the save option 1302 in the user interface 5800. In response to the user's input operation, the electronic device 100 can save the picture 1101.

[0244] Optionally, there is already a saved picture 1101 in the gallery application. After the electronic device 100 receives the input operation from the user for the save option 1302 in the user interface 5800, the electronic device 100 can display Figure 5K the prompt message 5802 shown. The prompt message 5802 includes the text "The same picture is saved in the gallery. Do you want to continue saving this picture", and the prompt message 5802 is used to prompt the user whether to confirm saving this picture.

[0245] In one possible implementation, as Figure 5K shown, the electronic device 100 can receive an input operation (such as a click) from the user for the "Yes" option in the prompt message 5802. In response to the user's input operation, the electronic device 100 can display Figure 5L the user interface 5900 shown. As Figure 5LAs shown, the electronic device 100 stores two pictures 1101.

[0246] In other possible implementation manners, such as Figure 5M As shown, the electronic device 100 may receive an input operation (such as a click) from the user for the no option in the prompt message 5802. In response to the user's input operation, the electronic device 100 may display Figure 5N As shown, the user interface 5910. Such as Figure 5N As shown, the electronic device 100 only stores one picture 1101.

[0247] In some embodiments, the user may also re-edit the picture 3201 so that the picture 3201 can be arbitrarily rolled back to when the user selects multiple editing nodes. Among them, the multiple editing nodes may be adjacent editing nodes or non-adjacent editing nodes.

[0248] Exemplarily, referring to Figures 5A - 5B the description in the embodiment, in response to the user's input operation (such as a click) for the edit button, in response to the user's input operation, the electronic device 100 may display Figure 5O As shown, the user interface 5950. The user interface 5950 includes the picture 3201, the return option 1301, the delete option 1303, the save option 1302, the edit bar 1304, the edit bar 1305, and the re-edit option 5951. The re-edit option 5951 includes multiple editing nodes, such as the editing node 2101, the editing node 2402, and the editing node 3202. The re-edit option 5951 also includes multiple editing node options. Among them, the editing node 2101 points to the editing node 2402, the editing node 2402 points to the editing node 3202, the editing node 5702 is the root node, the editing node 2101 is the root node, the editing node 2402 is the child node of the editing node 2101, and the editing node 3202 is the child node of the editing node 2402.

[0249] The user may select any one or more of the multiple editing node options or editing options, so that the picture 3201 can be arbitrarily rolled back to the picture editing effect corresponding to any one or more of the editing options selected by the user.

[0250] Exemplarily, such as Figure 5P As shown, the electronic device 100 may receive an input operation (such as a click) from the user for the editing node 5702 in the user interface 5700. In response to the user's input operation, the electronic device 100 may roll back the picture 3201 to the editing effect corresponding to the editing node 5702.

[0251] Such as Figure 5OAs shown, the electronic device 100 can receive an input operation (such as a click) from the user for the editing node option corresponding to the editing node 2101 in the re - editing option 5951. In response to the user's input operation, the electronic device 100 can select the editing node 2101, as Figure 5P shown.

[0252] as Figure 5P shown, the electronic device 100 can receive an input operation (such as a click) from the user for the editing node option corresponding to the editing node 3202 in the re - editing option 5951. In response to the user's input operation, the electronic device 100 can select the editing node 3202, as Figure 5Q shown.

[0253] as Figure 5Q shown, the electronic device 100 can receive an input operation from the user for the continue option in the re - editing option 5951, such as a click operation. In response to the user's input operation, the electronic device 100 can obtain the original image corresponding to the picture 3201, such as the picture 1101, and obtain the description information one of the algorithm corresponding to the editing node 2101, and edit the picture 1101 through the description information one of the algorithm to obtain the picture 1501. Then, the electronic device 100 obtains the description information three of the algorithm corresponding to the editing node 3202, and edits the picture 1501 through the description information three of the algorithm to obtain Figure 5R the picture 5981 shown.

[0254] In response to obtaining the picture 5981, the electronic device 100 can display Figure 5R the user interface 5980 shown. The user interface 5980 includes the picture 5981, the return option 1301, the delete option 1303, the save option 1302, the editing bar 1304, the editing bar 1305, and the re - editing option 5982. The re - editing option 5982 includes two editing nodes, such as the editing node 2101 and the editing node 3202. The two editing nodes in the re - editing option 5982 are used to indicate the picture - editing algorithm used for the picture 5981.

[0255] In response to obtaining Picture 5981, the electronic device 100 also needs to generate an editing record of Picture 5981. The editing record of Picture 5981 may include the picture processing algorithm parameter information IV for Picture 5981. The picture processing algorithm parameter information IV may include but is not limited to the algorithm processing structure IV and the description information IV of the algorithm. For example, the algorithm processing structure IV may include a filter algorithm and a cropping algorithm. The description information IV of the algorithm may include the description information of the filter algorithm and the description information of the cropping algorithm. The description information of the filter algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameter of the filter algorithm may be "warm". The description information of the cropping algorithm may include but is not limited to the identifier or name of the cropping algorithm, the version of the cropping algorithm, the parameters of the cropping algorithm, etc. For example, the parameter of the cropping algorithm may be the size of the cropping frame.

[0256] As Figure 5R shown, the electronic device 100 may receive an input operation (such as a click) from the user for the save option 1302 in the user interface 5980. In response to the user's input operation, the electronic device 100 may save Picture 5981 and display Figure 5S the user interface 5990 shown. The user interface 5990 is similar to the user interface 3300, except that the user interface 5990 further includes Picture 5981 and does not include Picture 3201. Picture 5981 is a picture obtained by adding a filter operation and a cropping algorithm to Picture 1101.

[0257] Figure 6 It is a schematic flow diagram of a method for re - editing pictures provided by this application.

[0258] S601. The electronic device 100 displays a gallery interface, and the gallery interface includes a fourth picture.

[0259] Exemplarily, the picture interface may be Figure 5A the user interface 3300 shown or Figure 5B the user interface 5100 shown.

[0260] Exemplarily, the fourth picture may be Figure 5A or Figure 5B the picture 3201 shown.

[0261] S602. The electronic device 100 receives an editing operation for the fourth picture, displays a fourth - picture editing interface. The fourth - picture editing interface includes the fourth picture and a first re - editing option, and the first re - editing option includes multiple editing nodes.

[0262] Exemplarily, the user's editing operation for the fourth picture may be Figure 5BThe input operation for the edit button in the user interface 5100 shown, such as a single operation.

[0263] Exemplarily, the fourth picture editing interface can be Figure 5C Or Figure 5F The user interface 5200 shown.

[0264] Exemplarily, the fourth picture can be Figure 5C Or Figure 5F The picture 3201 shown.

[0265] Exemplarily, the first re - editing option can be Figure 5C Or Figure 5F The re - editing option 5201 shown.

[0266] Exemplarily, multiple editing nodes can be Figure 5C Or Figure 5F The editing node 2101, editing node 2402, and editing node 3202 in the re - editing option 5201 shown.

[0267] In some embodiments, in response to the user receiving an edit operation for the fourth picture, before displaying the fourth picture editing interface, the electronic device 100 can obtain the edit record of the fourth picture. The edit record of the fourth picture can include but is not limited to the algorithm processing structure three and the description information three of the algorithm. The electronic device 100 can display the first re - editing option based on the algorithm processing structure three.

[0268] The edit operation of the fourth picture can include the picture processing algorithm parameter information three used by the picture 3201. The picture processing algorithm parameter information three can include but is not limited to the algorithm processing structure three and the description information three of the algorithm. For example, the algorithm processing structure three can include that the add filter algorithm points to the add watermark algorithm, and the add watermark algorithm points to the crop algorithm. The description information three of the algorithm can include the description information of the add filter algorithm, the description information of the add watermark algorithm, and the description information of the crop algorithm. The description information of the add filter algorithm can include but is not limited to the identifier or name of the add filter algorithm, the version of the add filter algorithm, the parameters of the add filter algorithm, etc. For example, the parameter of the add filter algorithm can be "warm". The description information of the add watermark algorithm can include but is not limited to the identifier or name of the add watermark algorithm, the version of the add watermark algorithm, the parameters of the add watermark algorithm, etc. For example, the parameter of the add watermark algorithm can be "Good day". The description information of the crop algorithm can include but is not limited to the identifier or name of the add watermark algorithm, the version of the add watermark algorithm, the parameters of the add watermark algorithm, etc. For example, the parameter of the crop algorithm can be the crop box size.

[0269] S603. The electronic device 100 receives an operation on the first editing node among multiple editing nodes, and displays a third picture editing interface or a second picture editing interface. The third picture editing interface includes a third picture and second-level editing options, or the second picture editing interface includes a second picture and third-level editing options.

[0270] The first editing node can be any one of the first-level editing options.

[0271] Exemplarily, the first editing node can be Figure 5C or Figure 5F the editing node 2101 or the editing node 2402 shown.

[0272] When the first editing node is Figure 5C the editing node 2402 shown, the operation that the electronic device 100 receives on the first editing node among multiple editing nodes can be Figure 5C the input operation of the user on the editing node 2402 shown, such as a click. The third picture editing interface can be Figure 5D the user interface 5300 shown, the third picture can be Figure 5D the picture 2401 shown, and the second-level editing options can be Figure 5D the re-editing options 5301 shown.

[0273] Exemplarily, in response to an operation on the first editing node among multiple editing nodes, the electronic device 100 can obtain the editing record of the picture 3201, and based on the editing record of the picture 3201, sequentially obtain the Figure 5D picture 2401 shown on the basis of the picture 1101 through adding a "warm" filter algorithm and adding a "Good day" text watermark algorithm.

[0274] For example, the electronic device 100 may obtain the editing record of the picture 3201, and the editing record of the picture 3201 may be stored in the data structures shown in Table 1, Table 2, and Table 3. The electronic device 100 may obtain the storage address of the compressed original picture (such as the storage address of the picture 3201) from the TBP-APP1 segment in Table 1, and then obtain the picture 1101 based on the storage address of the picture 3201. After that, the electronic device 100 may obtain the third algorithm structure of the picture 3201 from the GPI0 segment in Table 2, and obtain the identifiers of the filter adding algorithm and the watermark adding algorithm corresponding to the editing node 2101 based on the editing node 2402. Then, based on the identifier of the filter adding algorithm, the electronic device 100 may obtain the fat pointer of the data structure of the filter adding algorithm from the GPI1 segment in Table 2, and based on the identifier of the watermark adding algorithm, obtain the fat pointer of the data structure of the watermark adding algorithm from the GPI2 segment in Table 2. After that, the electronic device 100 may obtain the parameters of the filter adding algorithm from the PAR segment in Table 3 based on the fat pointer of the data structure of the filter adding algorithm, and obtain the parameters of the watermark adding algorithm from the PAR segment in Table 3 based on the fat pointer of the data structure of the watermark adding algorithm. Finally, the electronic device 100 may edit the picture 1101 based on the parameters of the filter adding algorithm and the parameters of the watermark adding algorithm on the basis of the picture 1101 to obtain the picture 2401. In some embodiments, in response to obtaining the picture 2401, the electronic device 100 also needs to generate the editing record of the picture 2401, and the editing record of the picture 2401 may also be stored in the data structures shown in Table 1, Table 2, and Table 3. The editing record of the picture 2401 may include the second picture processing algorithm parameter information used by the picture 2401, and the second picture processing algorithm parameter information may include but is not limited to the second algorithm processing structure and the second description information of the algorithm. For example, the second algorithm processing structure may include that the filter adding algorithm points to the watermark adding algorithm, and the second description information of the algorithm may include the description information of the filter adding algorithm and the description information of the watermark adding algorithm. The description information of the filter adding algorithm may include but is not limited to the identifier or name of the filter adding algorithm, the version of the filter adding algorithm, the parameters of the filter adding algorithm, etc. For example, the parameters of the filter adding algorithm may be "warm". The description information of the watermark adding algorithm may include but is not limited to the identifier or name of the watermark adding algorithm, the version of the watermark adding algorithm, the parameters of the watermark adding algorithm, etc. For example, the parameters of the watermark adding algorithm may be "Good day".

[0275] In some embodiments, in response to an operation on the editing node 2402 among multiple editing nodes, the electronic device 100 may send the picture 3201 and the editing record of the picture 3201 to the server, and the server may re-edit the picture 1101 based on the picture 1101 and the editing node 2402, successively through the filter adding algorithm and the watermark adding algorithm recorded in the editing record of the picture 3201 to obtain the picture 2401.

[0276] The server also needs to generate an editing record of the picture 2401 and send the picture 2401 and the editing record of the picture 2401 to the electronic device 100, so that the electronic device 100 can save the picture 2401 and the editing record of the picture 2401.

[0277] When the first editing node is Figure 5F the editing node 2101 as shown, the operation received by the electronic device 100 for the first editing node among the multiple editing nodes can be Figure 5F the input operation of the user for the editing node 2101 as shown, such as a click. The second picture editing interface can be Figure 5G the user interface 5500 as shown, and the second picture can be Figure 5G the picture 1501 as shown, and the third re - editing option can be Figure 5G the re - editing option 5501 as shown.

[0278] Exemplarily, in response to the operation for the first editing node among the multiple editing nodes, the electronic device 100 can obtain the editing record of the picture 3201, and based on the editing record of the picture 3201, successively obtain, on the basis of the picture 1101, the Figure 5G picture 1501 as shown by adding the "warm" filter algorithm.

[0279] For example, the electronic device 100 may obtain the editing record of the picture 3201, and the editing record of the picture 3201 may be stored in the data structures shown in Table 1, Table 2, and Table 3. The electronic device 100 may obtain the storage address of the compressed original picture (such as the storage address of the picture 3201) from the TBP-APP1 segment in Table 1, and then obtain the picture 1101 based on the storage address of the picture 3201. After that, the electronic device 100 may obtain the third algorithm structure of the picture 3201 from the GPI0 segment in Table 2, and obtain the identifier of the filter addition algorithm corresponding to the editing node 2101 based on the editing node 2101, and then obtain the fat pointer of the data structure of the filter addition algorithm from the GPI1 segment in Table 2 based on the identifier of the filter addition algorithm. After that, the electronic device 100 may obtain the parameters of the filter addition algorithm from the PAR segment in Table 3 based on the fat pointer of the data structure of the filter addition algorithm. Finally, the electronic device 100 may edit the picture 1101 based on the parameters of the filter addition algorithm on the basis of the picture 1101 to obtain the picture 1501. In some embodiments, in response to obtaining the picture 1501, the electronic device 100 also needs to generate the editing record of 1501, and the editing record of the picture 2401 may also be stored in the data structures shown in Table 1, Table 2, and Table 3. The editing record of the picture 1501 may include the picture processing algorithm parameter information one used by the picture 1501, and the picture processing algorithm parameter information one may include but is not limited to the algorithm processing structure one and the description information one of the algorithm. For example, the algorithm processing structure one may include a filter algorithm, and the description information one of the algorithm may include the description information of the filter algorithm. The description information of the filter algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameter of the filter algorithm may be "warm".

[0280] In some embodiments, in response to an operation on the editing node 2101 among multiple editing nodes, the electronic device 100 may send the picture 3201 and the editing record of the picture 3201 to the server, and the server may re-edit the picture 1101 based on the picture 1101 and the editing node 2101 in sequence through the filter addition algorithm recorded in the editing record of the picture 3201 to obtain the picture 1501.

[0281] The server also needs to generate the editing record of the picture 1501, and send the picture 1501 and the editing record of the picture 1501 to the electronic device 100, so that the electronic device 100 can save the picture 1501 and the editing record of the picture 1501.

[0282] S604. The electronic device 100 receives a user operation to save the third picture or the second picture, and saves the third picture and the editing record of the third picture, or the second picture and the editing record of the second picture.

[0283] In some embodiments, the editing record of the third picture or the editing record of the second picture may also be stored in the data structures shown in Table 1, Table 2, and Table 3.

[0284] In some embodiments, after the electronic device 100 generates the third picture, the electronic device 100 may receive a user operation to save the third picture and the editing record of the third picture.

[0285] Exemplarily, the user operation to save the third picture may be Figure 5D the input operation for the save option 1302 shown in the figure, such as a click.

[0286] In some embodiments, after the electronic device 100 saves the third picture and the editing record of the third picture, the electronic device 100 may display Figure 5E the user interface 5400 shown in the figure, and the user interface 5400 includes the third picture (Picture 2401).

[0287] In other embodiments, after the electronic device 100 generates the second picture, the electronic device 100 may receive a user operation to save the second picture and the editing record of the second picture.

[0288] Exemplarily, the user operation to save the second picture may be Figure 5G the input operation for the save option 1302 shown in the figure, such as a click.

[0289] In some embodiments, after the electronic device 100 saves the second picture and the editing record of the second picture, the electronic device 100 may display Figure 5H the user interface 5600 shown in the figure, and the user interface 5600 includes the second picture (Picture 1501).

[0290] In some embodiments, if the electronic device 100 receives a user operation to open a picture in the gallery application in the beauty application and edit the picture in the gallery application in the beauty application, since the beauty application and the gallery application are not the same application and there are differences in the picture editing algorithms of the gallery application and the gallery application, the electronic device 100 cannot re-edit the picture in the gallery application in the beauty application, then the electronic device 100 may not display the first re-editing option.

[0291] In some embodiments, if the electronic device 100 receives a user operation to open a picture in the gallery application in the beauty application and edit the picture in the gallery application in the beauty application, if the image editing algorithms of the beauty application and the gallery application share a set of algorithms, or the beauty application can call the image editing algorithm in the gallery application, the electronic device 100 can also re-edit the picture in the gallery application in the beauty application, then the electronic device 100 may display the first re-editing option.

[0292] III. Sharing pictures, including pictures and their editing records.

[0293] In some embodiments, after the electronic device 100 saves the edited picture, the electronic device 100 may send the saved edited picture and the editing record of the picture to other electronic devices that have established a communication connection. Other electronic devices may also re-edit the pictures sent by the electronic device 100.

[0294] Exemplarily, Figures 7A - 7G FIG. shows a UI diagram of the electronic device 100 sharing picture 3201 with the electronic device 200.

[0295] Exemplarily, as Figure 7A shown, the electronic device 100 may display the user interface 5100. The user interface 5100 includes picture 3201 and menu 1201. The menu 1201 may include a sharing button, a favorite button, an editing button, a deletion button, and a more button. Among them, the sharing button can be used to trigger the opening of the system sharing interface.

[0296] The electronic device 100 may receive an input (such as a click) from the user on the sharing button. In response to this input, the electronic device 100 may display the system sharing interface 7100 as Figure 7B shown.

[0297] As Figure 7B shown, the system sharing interface 7100 includes area 7101, area 7102, and area 7103. Among them, area 7101 can be used to display one or more pictures or videos in the picture gallery of the electronic device 100. One or more of these pictures or videos may include the pictures or videos selected by the user. A mark may be displayed on the selected picture, and the mark can be used to indicate that the corresponding picture has been selected (i.e., the picture has been selected by the user). Optionally, the picture or video screen displayed in area 7101 may be a thumbnail.

[0298] The Huawei sharing option is displayed in area 7102. The Huawei sharing option may enable the electronic device 100 to share the pictures or videos selected by the user with other devices via Bluetooth or Wi-Fi, etc.

[0299] One or more service option icons (e.g., chat app icon, welink app icon, Changlian app icon, casual chat app icon, email app icon, browser app icon, messaging app icon, WLAN Direct icon, etc.) can be displayed in area 7103. The application or protocol corresponding to the service option can support sharing the user-selected picture to a contact or a server. The user can perform data sharing through the application or protocol corresponding to the service option. For example, sharing the selected picture to one or more contacts in the chat app, or sharing the selected picture to the dynamic publishing platform (i.e., the server) of the casual chat app, etc.

[0300] Exemplarily, as Figure 7B shown, the electronic device 100 can receive the user's input (e.g., click) for the Huawei sharing option in area 7102. In response to this input, the electronic device 100 can display a system sharing interface 7200 as Figure 7C shown.

[0301] The system sharing interface 7200 is similar to the system sharing interface 7100, except that the area 7102 of the system sharing interface 7200 includes options for nearby devices discovered by the electronic device 100 (e.g., "Alee's phone" option, "HUAWEIP50" option, "HUAWEI P50 Pro" option). Among them, when the electronic device 100 is searching for nearby devices, it can display search prompts (e.g., text prompts such as "Discovering nearby devices, the other party needs to turn on Bluetooth and WLAN") in area 7102.

[0302] Exemplarily, as shown in 7C, the electronic device 100 can receive the user's input (e.g., click) for the option of "Alee's phone". In response to this input, the electronic device 100 can send the user-selected picture 3201 to the nearby device corresponding to the option of "Alee's phone" via Bluetooth or Wi-Fi, etc. Exemplarily, the identifier "Alee's phone" can be the device identifier of the electronic device 200.

[0303] Not limited to sharing the picture 3201 on the electronic device 100 to the electronic device 200 in the Figures 1A - 1C shown manner, the electronic device 100 can also share the picture 3201 on the electronic device 100 to the electronic device 200 through other means.

[0304] Optionally, when the electronic device 100 shares the picture 3201 to the electronic device 200, the electronic device 100 also needs to send the picture information of the picture 3201 to the electronic device 100.

[0305] Among them, the picture information of picture 3201 may include but is not limited to: the editing record of picture 3201 and the application information of the first application that edited picture 3201.

[0306] The editing record of picture 3201 may include the picture processing algorithm parameter information three of picture 3201. The picture processing algorithm parameter information three may include but is not limited to the algorithm processing structure three and the description information three of the algorithm. For example, the algorithm processing structure three may include that the add filter algorithm points to the add watermark algorithm, and the add watermark algorithm points to the crop algorithm. The description information three of the algorithm may include the description information of the add filter algorithm, the description information of the add watermark algorithm, and the description information of the crop algorithm. The description information of the add filter algorithm may include but is not limited to the identifier or name of the add filter algorithm, the version of the add filter algorithm, the parameters of the add filter algorithm, etc. For example, the parameter of the add filter algorithm may be "warm". The description information of the add watermark algorithm may include but is not limited to the identifier or name of the add watermark algorithm, the version of the add watermark algorithm, the parameters of the add watermark algorithm, etc. For example, the parameter of the add watermark algorithm may be "Good day". The description information of the crop algorithm may include but is not limited to the identifier or name of the add watermark algorithm, the version of the add watermark algorithm, the parameters of the add watermark algorithm, etc. For example, the parameter of the crop algorithm may be the crop box size.

[0307] The application information of the first application of picture 3201 may include but is not limited to one or more of the following: the first application name or identifier, the first application version number, the name of the developer of the first application, etc.

[0308] In response to receiving picture 3201 sent by electronic device 100, electronic device 200 may display Figure 7D the user interface 7300 shown. The user interface 7300 includes picture 3201, and this picture 3201 is sent from electronic device 100 to electronic device 100.

[0309] Exemplarily, as Figure 7D shown, electronic device 100 may receive an input operation (such as a click) from the user for picture 3201 in user interface 7300. In response to the user's input operation, electronic device 100 may display Figure 7E the user interface 7400 shown. The user interface 7400 includes picture 3201 and menu 7401. The menu 7401 may include a share button, a favorite button, an edit button, a delete button, and a more button.

[0310] Exemplarily, as Figure 7E shown, when the user needs to re-edit picture 3201, as Figure 7EAs shown, the electronic device 200 can receive a user's input operation (such as a click) on the edit button in the menu 7401. In response to the user's input operation, the electronic device 100 can display an editing interface for the picture 3201.

[0311] Optionally, before the electronic device 200 displays the editing interface for the picture 3201, the electronic device 200 can obtain the application information of the second application currently editing the picture 3201 and the application information of the first application that sent the picture 3201 for editing from the electronic device 100. When it is determined that the second application and the first application are the same application based on the application information of the second application and the application information of the first application sent by the electronic device 100, the electronic device 100 can obtain the editing record of the picture 3201.

[0312] Exemplarily, as Figure 7E shown, when the second application and the first application are the same application, in response to the electronic device 100 being able to obtain the editing record of the picture 3201, the electronic device 100 can display Figure 7F the user interface 7500 shown. The user interface 7500 includes the picture 3201, a return option 7501, a delete option 7503, a save option 7502, an editing bar 7504, an editing bar 7505, and a re - editing option 7506. The re - editing option 7506 includes multiple editing nodes, such as an editing node 7507, an editing node 7508, and an editing node 7509. Among them, the editing node 7507 points to the editing node 7508, the editing node 7508 points to the editing node 7509, the editing node 7507 is the root node, the editing node 7507 is the child node of the editing node 7508, and the editing node 7508 is the child node of the editing node 7509. Optionally, the re - editing option 7506 can be obtained based on the algorithm processing structure in the editing record of the picture 3201.

[0313] After that, the electronic device 200 can re - edit the picture 3201 in the Figures 5A - 5N way. Specifically, reference can be made to the description in the Figures 5A - 5N embodiment, and details are not described herein again.

[0314] Exemplarily, as Figure 7E shown, when the second application and the first application are not the same application, the electronic device 100 can display Figure 7G the user interface 7600 shown. The user interface 7600 includes the picture 3201, a return option 7501, a delete option 7503, a save option 7502, an editing bar 7504, an editing bar 7505. The user interface 7600 does not include Figure 7FThe re - editing option 7506 shown indicates that when the first application and the second application are not the same application, the electronic device 200 cannot perform a re - editing operation on the picture 3201.

[0315] In other embodiments, the editing interface of the picture displayed on the electronic device 200 may also be different from the editing interface of the picture displayed on the electronic device 100. This application is only for exemplary explanation of this application.

[0316] Figure 8 It is a schematic flow chart of a method for the electronic device 100 to re - edit the picture sent by the electronic device 100 provided in this application.

[0317] S801. The electronic device 100 establishes a communication connection with the electronic device 200.

[0318] The electronic device 100 can establish a communication connection through Bluetooth or Wi - Fi. The electronic device 100 can also communicate with the electronic device 200 through a server.

[0319] Exemplarily, referring to Figures 7A - 7C the embodiment, the electronic device 100 can establish a communication connection with the electronic device 200 through the Huawei Share option by means of Bluetooth or Wi - Fi, etc.

[0320] S802. The electronic device 100 sends the fourth picture and the editing record of the fourth picture to the electronic device 200 through the communication connection.

[0321] After the user selects the fourth picture, in response to the establishment of the communication connection between the electronic device 100 and the electronic device 200, the electronic device 100 can obtain the fourth picture and the picture information of the fourth picture, and send the fourth picture and the editing record of the fourth picture to the electronic device 200 through the communication connection.

[0322] Exemplarily, the fourth picture can be Figure 7A the picture 3201 shown.

[0323] The editing record of Picture 3201 may include the parameter information of the image processing algorithm used for Picture 3201. The parameter information of the image processing algorithm may include, but is not limited to, Algorithm Processing Structure 3 and Description Information 3 of the algorithm. For example, Algorithm Processing Structure 3 may include that the Add Filter Algorithm points to the Add Watermark Algorithm, and the Add Watermark Algorithm points to the Crop Algorithm. The Description Information 3 of the algorithm may include the description information of the Add Filter Algorithm, the description information of the Add Watermark Algorithm, and the description information of the Crop Algorithm. The description information of the Add Filter Algorithm may include, but is not limited to, the identifier or name of the Add Filter Algorithm, the version of the Add Filter Algorithm, the parameters of the Add Filter Algorithm, etc. For example, the parameter of the Add Filter Algorithm may be "Warm". The description information of the Add Watermark Algorithm may include, but is not limited to, the identifier or name of the Add Watermark Algorithm, the version of the Add Watermark Algorithm, the parameters of the Add Watermark Algorithm, etc. For example, the parameter of the Add Watermark Algorithm may be "Good day". The description information of the Crop Algorithm may include, but is not limited to, the identifier or name of the Add Watermark Algorithm, the version of the Add Watermark Algorithm, the parameters of the Add Watermark Algorithm, etc. For example, the parameter of the Crop Algorithm may be the size of the crop box.

[0324] S803. The electronic device 200 saves the fourth picture and the editing record of the fourth picture.

[0325] After the electronic device 200 receives the fourth picture and the editing record of the fourth picture sent by the electronic device 100, the electronic device 200 may save the fourth picture and the editing record of the fourth picture.

[0326] Exemplarily, after the electronic device 200 saves the fourth picture and the editing record of the fourth picture, the electronic device 200 may display Figure 7D the user interface 7300 as shown.

[0327] S804. The electronic device 200 edits the fourth picture within the second application.

[0328] After the electronic device 200 saves the fourth picture and the editing record of the fourth picture, the electronic device 200 may load the fourth picture in the second application and edit the fourth picture.

[0329] Exemplarily, the second application may be a gallery application on the electronic device 200, or it may also be a beauty application on the electronic device 200, etc. The present application does not make any limitation in this regard.

[0330] S805. The electronic device 200 needs to determine whether the second application has the permission to read the editing record of the fourth picture.

[0331] In the case where the second application has the permission to read the editing record of the fourth picture, the electronic device 200 may re-edit the fourth picture and roll back to any editing node, that is, execute S806.

[0332] In the case where the second application does not have permission to read the editing record of the fourth picture, the electronic device 200 cannot re-edit the fourth picture, that is, execute S807.

[0333] In some embodiments, whether the second application has permission to read the editing record of the fourth picture may refer to whether the second application and the first application are the same application, or whether the second application and the first application share a set of picture editing algorithms. It can also be determined based on other rules whether the second application has permission to read the editing record of the fourth picture, and this application does not make any limitations in this regard.

[0334] Exemplarily, when the electronic device 100 sends the fourth picture and the editing record of the fourth picture to the electronic device 200, the electronic device 100 may also send the application information of the first application to the electronic device 200. Among them, the first application is the application that edits the fourth picture from the first picture. The application information of the first application may include but is not limited to one or more of the following: the first application name or identifier, the first application version number, the name of the developer of the first application, etc. Among them, the fourth picture is obtained through one or more picture editing algorithms in the first application.

[0335] The electronic device 200 also needs to obtain the application information of the second application. The application information of the second application may include but is not limited to one or more of the following: the second application name or identifier, the second application version number, the name of the developer of the second application, etc.

[0336] Exemplarily, the second application and the first application being the same application may mean that the second application name or identifier is the same as the first application name or identifier, the second application version number is the same as the first application version number, and the name of the developer of the second application is the same as the name of the developer of the first application.

[0337] S806. The electronic device 200 displays a fifth picture editing interface, and the fifth picture editing interface includes the fourth picture and a fourth re-editing option, and the fourth re-editing option is obtained from the picture information of the fourth picture.

[0338] In the case where the second application has permission to read the editing record of the fourth picture, the electronic device 200 can re-edit the fourth picture.

[0339] In response to the user editing the fourth picture in the second application, the electronic device 200 can display a fifth picture editing interface, and the fifth picture editing interface includes the fourth picture and a fourth re-editing option. Among them, the fourth re-editing option is obtained by the electronic device 200 from the algorithm processing structure three in the editing record of the picture 3201.

[0340] Exemplarily, the fifth picture editing interface may beFigure 7F The user interface 7500 shown.

[0341] Exemplarily, the fourth picture may be Figure 7F The picture 3201 shown.

[0342] Exemplarily, the fourth re - editing option is used to indicate the picture - editing algorithms successively used for the picture 3201, and the fourth re - editing option may be Figure 7F The re - editing option 7506 shown. The re - editing option 7506 includes a plurality of editing nodes, such as editing node 7507, editing node 7508, and editing node 7509. Among them, editing node 7507 points to editing node 7508, editing node 7508 points to editing node 7509, editing node 7507 is the root node, editing node 7507 is the child node of editing node 7508, and editing node 7508 is the child node of editing node 7509.

[0343] After that, the electronic device 200 can Figures 5A - 5N re - edit the picture 3201 through the re - editing option 7506 in the way of Figures 5A - 5N described in the embodiments. Details are not described herein again for this application.

[0344] S807. The electronic device 200 displays a sixth picture - editing interface, and the sixth picture - editing interface does not include a re - editing option.

[0345] In the case where the second application does not have the permission to read the editing record of the fourth picture, the electronic device 200 cannot re - edit the fourth picture.

[0346] For example, in the case where the second application is a beauty - photo application and the first application is a gallery application, if the electronic device 200 receives a user operation to open a picture in the gallery application in the beauty - photo application and edit the picture in the gallery application in the beauty - photo application, due to the differences between the gallery application and the picture - editing algorithms of the gallery application, the electronic device 200 cannot re - edit the picture in the gallery application in the beauty - photo application.

[0347] In the case where the second application does not have the permission to read the editing record of the fourth picture, in response to the user editing the fourth picture within the second application, the electronic device 200 can display a sixth picture - editing interface, and the sixth picture - editing interface does not include a re - editing option.

[0348] Exemplarily, the sixth picture - editing interface may be Figure 7G the user interface 7600 shown, as Figure 7G shown, the user interface 7600 does not include a re - editing option, that is, the user cannot perform a re - editing operation on the fourth picture in the sixth picture - editing interface.

[0349] Figure 9 Schematic flowchart of a method for image editing provided by this application.

[0350] S901. A first electronic device is configured to display a first gallery interface, which includes a first image.

[0351] Exemplarily, the first gallery interface can be Figure 5B the user interface 5100 as shown, and the first image can be Figure 5B the image 3201 as shown.

[0352] S902. The first electronic device is further configured to: receive an editing operation by the user on the first image.

[0353] Exemplarily, the editing operation on the first image can be Figure 5B the input operation on the editing options in the user interface 5100 as shown, such as a click.

[0354] S903. In response to the editing operation on the first image, display a first user interface. The editing interface of the first image includes the first image and a first option. The first option includes a first node and a second node. The first node is related to a first image editing algorithm, and the second node is related to a second image editing algorithm. The first image is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of a third image.

[0355] Exemplarily, the first user interface can be Figure 5C or Figure 5F the user interface 5200 as shown, and the first image can be Figure 5C or Figure 5F the image 3201 as shown. The first option can be Figure 5C or Figure 5F the re - editing option 5201 as shown. The first node and the second node can be Figure 5C or Figure 5F any two of the editing nodes 2101, editing node 2402, and editing node 3202 in the re - editing option 5201 as shown.

[0356] Exemplarily, the first user interface can also be Figure 5I the user interface 5200 as shown, and the first image can be Figure 5I the image 3201 as shown. The first option can be Figure 5I the re - editing option 5701 as shown. The first node and the second node can be Figure 5I any two of the editing nodes 5702, editing node 2101, editing node 2402, and editing node 3202 in the re - editing option 5701 as shown.

[0357] Exemplarily, the first user interface may also be Figure 5O the user interface 5950 shown, and the first picture may also be Figure 5O the picture 3201 shown. The first option may be Figure 5O the re - editing option 5951 shown. The first node and the second node may be Figure 5O any two of the editing nodes 2101, editing node 2402, and editing node 3202 in the re - editing option 5951 shown

[0358] Exemplarily, the first image editing algorithm and the second image editing algorithm may be any two of the original image, adding filter algorithm, adding watermark algorithm, and cropping algorithm.

[0359] Exemplarily, the third picture may be picture 1101.

[0360] Optionally, not limited to the first picture editing algorithm and the second picture editing algorithm, the first picture can also be obtained by combining more other picture editing algorithms, and the present application does not limit this.

[0361] In some embodiments, the first gallery interface may further include a third picture.

[0362] Through this method, the electronic device can re - edit the pictures saved in the gallery application, so that the saved pictures can be rolled back to any editing node, improving the picture editing efficiency.

[0363] S904. Receive a first operation from the user for the first node.

[0364] S905. In response to the first operation, display a second user interface, where the second user interface includes a second picture, and the second picture is obtained based on the first image editing algorithm on the basis of the third picture.

[0365] Exemplarily, the first node may be Figure 5C the editing node 2402 shown, and the second user interface may be Figure 5D the user interface 5300 shown, the third picture may be Figure 5D the picture 2401 shown, and the first image editing algorithm may be the adding watermark algorithm.

[0366] Exemplarily, the first node may also be Figure 5F the editing node 2101 shown, and the second user interface may be Figure 5G the user interface 5500 shown, the third picture may be Figure 5G the picture 1501 shown, and the first image editing algorithm may be the adding filter algorithm.

[0367] Exemplarily, the first node may also beFigure 5I As shown by the editing node 5702, the second user interface may be Figure 5J As shown by the user interface 5800, the third picture may be Figure 5J As shown by the picture 1101, the first image editing algorithm may be none.

[0368] In a possible implementation, the first electronic device is further configured to: display a second gallery interface that includes a third picture; receive an editing operation of the user on the third picture; in response to the editing operation on the third picture, display a third user interface that includes the third picture and a plurality of picture editing options; receive a second operation of the user on a first editing option among the plurality of picture editing options, where the first editing option is related to a first picture editing algorithm; in response to the second operation, obtain a second picture; receive a third operation of the user on a second editing option among the plurality of picture editing options, where the second editing option is related to a second picture editing algorithm; in response to the third operation, obtain a first picture; receive a fourth operation to save the first picture; in response to the fourth operation, save the first picture and the editing record of the first picture.

[0369] In a possible implementation, the first electronic device is further configured to: display a second gallery interface that includes a third picture; receive an editing operation of the user on the third picture; in response to the editing operation on the third picture, display a third user interface that includes the third picture and a plurality of picture editing options; receive a selection operation of the user on a first editing option and a second editing option among the plurality of picture editing options, where the first editing option is related to a first picture editing algorithm and the second editing option is related to a second picture editing algorithm; in response to the selection operation, process the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain a first picture; receive a fourth operation to save the first picture; in response to the fourth operation, save the first picture and the editing record of the first picture.

[0370] Wherein, the third picture is the original picture on which no picture editing algorithm has been performed.

[0371] After the user adds a picture editing algorithm to the third picture, the first electronic device may display a corresponding editing node on the picture editing interface. On the one hand, it can prompt the user about the picture editing algorithms already used for the current picture. On the other hand, the user can also operate on the editing nodes displayed on the picture editing interface, enabling the picture to be reverted to the editing effects corresponding to any one or several of the editing algorithms corresponding to the editing nodes.

[0372] Exemplarily, the second gallery interface may be Figure 1C As shown by the user interface 1200.

[0373] Exemplarily, the third user interface may beFigure 1D The user interface 1300 shown.

[0374] Exemplarily, the first editing option or the second editing option can be Figure 1E The "filter" algorithm shown in Figure 2C The watermark addition algorithm shown in Figure 3A Any two of the cropping algorithms shown. The second picture and the first picture can be Figure 1E The picture 1501 shown in Figure 2D The picture 2401 shown in Figure 3C Any two of the picture 3201 shown in

[0375] In a possible implementation, the second user interface further includes a second option, and the second option includes a first node.

[0376] In this way, the first node is used to prompt the user that the second picture is obtained based on the first image editing algorithm.

[0377] Exemplarily, the second option can be Figure 5D The re - editing option 5301 shown in Figure 5D The editing node 2402 shown in

[0378] Exemplarily, the second option can be Figure 5G The re - editing option 5501 shown in Figure 5G The editing node 2101 shown in

[0379] Exemplarily, the second option can be Figure 5J The re - editing option 5801 shown in Figure 5J The editing node 5702 shown in

[0380] In a possible implementation, the second picture is obtained by the first electronic device based on the first image editing algorithm on the basis of the third picture.

[0381] In this way, when the user performs re - editing on the picture, the electronic device can perform editing on the original picture locally based on the picture editing algorithm selected by the user to obtain the picture editing effect desired by the user.

[0382] In a possible implementation, the first electronic device is further configured to: in response to the first operation, send the third picture and the identifier of the first image editing algorithm to the server; receive the second picture sent by the server, and the second picture is obtained by the server based on the first image editing algorithm on the basis of the third picture.

[0383] In this way, when the user re - edits the picture, the electronic device can, through the server, edit the original picture based on the picture - editing algorithm selected by the user. The computing power of the server is stronger than that of the electronic device. On the one hand, it can reduce the computing amount of the electronic device. On the other hand, it can also improve the speed at which the electronic device re - edits the picture.

[0384] In a possible implementation, the first picture is obtained by the first electronic device processing the second picture according to the second picture - editing algorithm.

[0385] In a possible implementation, the first electronic device is further configured to send the identifier of the second picture - editing algorithm and the second picture to the server, and the server edits the second picture based on the second picture - editing algorithm to obtain the first picture. Then the server sends the first picture to the first electronic device.

[0386] In a possible implementation, the editing record of the first picture includes first algorithm information. The first algorithm information includes a first algorithm structure and first description information. The first algorithm structure includes the identifier of the first image - editing algorithm and the identifier of the second image - editing algorithm. The first description information includes the description information of the first image - editing algorithm and the description information of the second image - editing algorithm.

[0387] Optionally, the first algorithm structure further includes the sequence of the image - editing algorithms. For example, the first image - editing algorithm points to the second image - editing algorithm, indicating that the picture first uses the first image - editing algorithm and then uses the second image - editing algorithm.

[0388] Exemplarily, the first algorithm structure can be Figure 4B the algorithm structure shown in (a) or (b) or (c) in

[0389] In a possible implementation, the first electronic device is specifically configured to: in response to an editing operation on the first picture, obtain the first algorithm information in the editing record of the first picture; and display a first option on the first user interface based on the first algorithm information.

[0390] In this way, the electronic device can display editing nodes on the picture - editing interface based on the saved first algorithm information, so that the user can re - edit the picture based on the editing nodes.

[0391] In a possible implementation, the system further includes a second electronic device; the first electronic device is further configured to: send a first picture and an editing record of the first picture to the second electronic device; the second electronic device is configured to receive a fifth operation; the second electronic device is further configured to, in response to the fifth operation, display a fourth user interface, the fourth user interface includes the first picture and a third option, the third option includes a third node and a fourth node, the third node is related to a first picture editing algorithm, and the fourth node is related to a second picture editing algorithm.

[0392] For the edited land auction picture, the first electronic device not only needs to share the picture to the second electronic device, but also needs to share the editing record of the picture to the second electronic device.

[0393] The electronic device can not only re-edit the picture locally, but also share the picture and the editing record of the picture to the second electronic device, and the second electronic device can also re-edit the picture shared by the first electronic device, further improving the picture editing efficiency.

[0394] Exemplarily, the first electronic device may be the electronic device 100, and the second electronic device may be the electronic device 200.

[0395] Exemplarily, the fourth user interface may be Figure 7F the user interface 7500 shown, and the third option may be Figure 7F the re-editing option 7506 shown, and the third node and the fourth node may be Figure 7F any two nodes of the editing nodes 7507, 7508, and 7509 in the re-editing option 7506 shown.

[0396] In a possible implementation, the second electronic device is specifically configured to: obtain first algorithm information in the editing record of the first picture when having the permission to read the editing record of the first picture; display the third option on the fourth user interface based on the first algorithm information.

[0397] In a possible implementation, the second electronic device is further configured to display a fifth user interface including the first picture when not having the permission to read the editing record of the first picture.

[0398] In this way, after the second electronic device receives the first picture and the editing record of the first picture shared by the first electronic device, the second electronic device can determine whether it can re-edit the first picture. When the second electronic device has the permission to re-edit the first picture, the second electronic device can display the editing nodes of the first picture, enabling the user to re-edit the first picture displayed on the second electronic device. When the second electronic device does not have the permission to re-edit the first picture, the second electronic device can not display the editing nodes of the first picture to prompt that the second electronic device has no permission to re-edit the first picture.

[0399] Exemplarily, the fifth user interface can be Figure 7G the user interface 7600 shown.

[0400] In a possible implementation, the first electronic device is further configured to send the application information of the first application to the second electronic device, where the first application is the application that edits the third picture to obtain the first picture;

[0401] The second electronic device is specifically configured to: display the first picture through the second application; when the first application and the second application are the same application, obtain the first algorithm information in the editing record of the first picture; and display a third option on the fifth user interface based on the first algorithm information.

[0402] In some embodiments, the first electronic device is further configured to send the application information of the first application to the second electronic device, and the second electronic device is further configured to obtain the application information of the second application. When the first application and the second application are the same application, the second application has the permission to re-edit the first picture.

[0403] In other embodiments, when the first application and the second application are not the same application, if the first application and the second application share a set of picture editing algorithms, the second application also has the permission to re-edit the first picture.

[0404] Combined with the first aspect, in a possible implementation, the application information of the first application includes any one or more of the following: application name or identifier, application version number, name of the application development manufacturer. It includes any one or more of the following: application name or identifier, application version number, name of the application development manufacturer.

[0405] In a possible implementation, the description information of the first image editing algorithm includes any one or more of the following: the identifier or name of the first image editing algorithm, the version of the first image editing algorithm, and the parameters of the first image editing algorithm; the description information of the second image editing algorithm includes any one or more of the following: the identifier or name of the second image editing algorithm, the version of the second image editing algorithm, and the parameters of the second image editing algorithm.

[0406] Figure 10 This is a schematic diagram of the hardware structure of an electronic device 100 provided by this application.

[0407] The hardware structure of the electronic device 200 is similar to that of the electronic device 100 and can be referred to Figure 10 the description of the hardware structure of the electronic device 100 in

[0408] Hereinafter, the embodiments will be specifically described by taking the electronic device 100 as an example. It should be understood that Figure 10 the illustrated electronic device 100 is only an example, and the electronic device 100 may have more or fewer components than those Figure 10 shown in, may combine two or more components, or may have different component configurations. Figure 10 The various components shown in 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.

[0409] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0410] It can be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0411] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics 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), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0412] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0413] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0414] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0415] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface to implement the touch function of the electronic device 100.

[0416] The I2S interface may be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 may be coupled to the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface to implement the function of answering a phone call through a Bluetooth headset.

[0417] The PCM interface may also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through the PCM bus interface. In some embodiments, the audio module 170 may also transmit an audio signal to the wireless communication module 160 through the PCM interface to implement the function of answering a phone call through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0418] The UART interface is a general-purpose serial data bus for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0419] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.

[0420] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0421] The USB interface 130 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices, etc.

[0422] It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0423] The charging management module 140 is used to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.

[0424] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0425] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.

[0426] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the 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 rate of the antennas. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

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

[0428] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.

[0429] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and so on. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive the signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.

[0430] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, such that electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may 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).

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

[0432] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD). The display screen panel can also adopt an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniLED, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. to manufacture. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

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

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

[0435] The camera 193 is used to capture static images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it 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 standard RGB, YUV, etc. formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0436] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process 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.

[0437] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0438] The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission pattern between human brain neurons, it can quickly process input information and can also continuously learn by itself. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.

[0439] 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 the data storage function. For example, files such as music and videos are saved in the external memory card.

[0440] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, the image playback function, etc.). The data storage area can store the data created during the use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 can include high-speed random access memory and can also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0441] The electronic device 100 can implement audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and the application processor, etc. For example, music playback, recording, etc.

[0442] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110.

[0443] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or hands-free calls through the speaker 170A.

[0444] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device 100 answers a call or a voice message, the voice can be listened to by holding the receiver 170B close to the human ear.

[0445] The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak by bringing the mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and implement functions such as directional recording.

[0446] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0447] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may include at least two parallel plates having conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in 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 based on 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 may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, the instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.

[0448] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the angle of jitter of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and makes the lens offset the jitter of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenarios.

[0449] The barometric pressure sensor 180C is used to measure barometric pressure. In some embodiments, the electronic device 100 calculates the altitude based on the barometric pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0450] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip, features such as automatic flip unlocking are set.

[0451] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

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

[0453] The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 100 emits infrared light outward through the light-emitting diode. The electronic device 100 uses the photodiode to detect the infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used for automatic unlocking and locking of the holster mode and pocket mode.

[0454] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.

[0455] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.

[0456] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by low temperature. In some other embodiments, when the temperature is lower than yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0457] The touch sensor 180K, also known as the "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 known as the "touch control screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from the display screen 194.

[0458] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals of the vibrating bone mass of the human vocal part. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulsation signals. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone to form a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure pulsation signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.

[0459] The keys 190 include a power-on key, volume keys, etc. The keys 190 can be mechanical keys or touch keys. The electronic device 100 can receive key inputs to generate key signal inputs related to the user settings and function control of the electronic device 100.

[0460] The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and can also be used for touch vibration feedback. For example, touch operations on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations on different regions of the display screen 194 can also correspond to different vibration feedback effects for the motor 191. Different application scenarios (such as time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0461] The indicator 192 can be an indicator light and can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0462] The SIM card interface 195 is used to connect the SIM card.

[0463] The following introduces the software system of the electronic device 100 provided in the embodiments of the present application.

[0464] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present invention, taking the Android system with a layered architecture as an example, the software structure of the electronic device 100 will be exemplarily described.

[0465] Figure 11 It is a software structure block diagram of the electronic device 100 in the embodiments of the present invention.

[0466] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0467] The application layer may include a series of application packages.

[0468] Such as Figure 11 shown, the application packages may include applications such as a camera, a gallery, a calendar, a call, a map, a navigation, a WLAN, a Bluetooth, music, a video, a short message, etc.

[0469] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0470] Such as Figure 11 shown, the application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc.

[0471] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0472] The content provider is used to store and obtain data, and make these data accessible to applications. The data may include videos, images, audios, dialed and answered calls, browsing histories and bookmarks, phone books, etc.

[0473] The view system includes visible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures.

[0474] The telephone manager is used to provide the communication function of the electronic device 100. For example, the management of call states (including connection, disconnection, etc.).

[0475] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, and so on.

[0476] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that the download is completed, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as the notification of a background-running application, or a notification that appears on the screen in the form of a dialogue window. For example, it can prompt text information in the status bar, emit a prompt sound, vibrate the electronic device, and blink the indicator light, etc.

[0477] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.

[0478] The core libraries contain two parts: one part is the functional functions that the Java language needs to call, and the other part is the core libraries of Android.

[0479] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0480] The system libraries can include multiple functional modules. For example: surface manager, Media Libraries, 3D graphics processing libraries (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc.

[0481] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.

[0482] The media libraries support the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0483] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.

[0484] The 2D graphics engine is the drawing engine for 2D drawing.

[0485] The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.

[0486] The above are only some embodiments and implementation manners of the present application. The protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

[0487] It can be understood that each user interface described in the embodiments of the present application is only an example interface and does not limit the solution of the present application. In other embodiments, the user interface can adopt different interface layouts, can include more or fewer controls, and can add or reduce other function options. As long as it is based on the same inventive concept provided by the present application, it is within the protection scope of the present application.

[0488] It should be noted that without contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.

[0489] As described above, the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent substitutions for some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A picture editing system, characterized in that, the system includes a first electronic device, wherein, the first electronic device is configured to display a first picture library interface, and the first picture library interface includes a first picture; the first electronic device is further configured to: receive an editing operation of the user on the first picture; in response to the editing operation on the first picture, display the first user interface, and the editing interface of the first picture includes the first picture and a first option, the first option includes a first node and a second node, the first node is related to a first picture editing algorithm, the second node is related to a second picture editing algorithm, and the first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of a third picture; receive a first operation of the user on the first node; in response to the first operation, display a second user interface, and the second user interface includes a second picture, and the second picture is obtained based on the first image editing algorithm on the basis of the third picture.

2. The system according to claim 1, characterized in that, in the first electronic device, it is further configured to: display a second picture library interface, and the second picture library interface includes the third picture; receive an editing operation of the user on the third picture; in response to the editing operation on the third picture, display a third user interface, and the third user interface includes the third picture and a plurality of picture editing options; receive a second operation of the user on a first editing option among the plurality of picture editing options, and the first editing option is related to the first picture editing algorithm; in response to the second operation, obtain the second picture; receive a third operation of the user on a second editing option among the plurality of picture editing options, and the second editing option is related to the second picture editing algorithm; in response to the third operation, obtain the first picture; receive a fourth operation to save the first picture; in response to the fourth operation, save the first picture and the editing record of the first picture.

3. The system according to claim 1, characterized in that, in the first electronic device, it is further configured to: display a second picture library interface, and the second picture library interface includes the third picture; receive an editing operation of the user on the third picture; in response to the editing operation on the third picture, display a third user interface, and the third user interface includes the third picture and a plurality of picture editing options; receive a selection operation of the user on the first editing option and the second editing option among the plurality of picture editing options, the first editing option is related to the first picture editing algorithm, and the second editing option is related to the second picture editing algorithm; in response to the selection operation, process the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain the first picture; receive a fourth operation to save the first picture; in response to the fourth operation, save the first picture and the editing record of the first picture.

4. The system according to any one of claims 1-3, characterized in that, The second user interface further includes a second option, and the second option includes the first node.

5. The system according to any one of claims 1-4, wherein, the second picture is obtained by the first electronic device based on the first image editing algorithm on the basis of the third picture.

6. The system according to any one of claims 1-4, wherein, the first electronic device is further configured to: in response to the first operation, send the third picture and the identifier of the first image editing algorithm to the server; receive the second picture sent by the server, where the second picture is obtained by the server based on the first image editing algorithm on the basis of the third picture.

7. The method according to any one of claims 1-6, wherein, the first picture is obtained by the first electronic device processing the second picture according to the second picture editing algorithm.

8. The system according to claim 2 or 3, wherein, the editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes the identifier of the first image editing algorithm and the identifier of the second image editing algorithm, and the first description information includes the description information of the first image editing algorithm and the description information of the second image editing algorithm.

9. The system according to claim 8, wherein, the first electronic device is specifically configured to: in response to an editing operation on the first picture, obtain the first algorithm information in the editing record of the first picture; display the first option on the first user interface based on the first algorithm information.

10. The system according to claim 2 or 3 or 8, wherein, the system further includes a second electronic device; the first electronic device is further configured to: send the first picture and the editing record of the first picture to the second electronic device; the second electronic device is configured to receive a fifth operation; the second electronic device is further configured to, in response to the fifth operation, display a fourth user interface, where the fourth user interface includes the first picture and a third option, and the third option includes a third node and a fourth node, the third node is related to the first picture editing algorithm, and the fourth node is related to the second picture editing algorithm.

11. The system according to claim 10, wherein, the second electronic device is specifically configured to; when having the permission to read the editing record of the first picture, obtain the first algorithm information in the editing record of the first picture; display the third option on the fourth user interface based on the first algorithm information.

12. The system according to claim 11, wherein, the second electronic device is further configured to when not having the permission to read the editing record of the first picture, display a fifth user interface, where the fifth user interface includes the first picture.

13. The system according to claim 11 or 12, wherein, The first electronic device is further configured to send the application information of the first application to the second electronic device, where the first application is the application that edits the third picture to obtain the first picture; The second electronic device is specifically configured to; display the first picture through the second application; when the first application and the second application are the same application, obtain the first algorithm information in the editing record of the first picture; display the third option on the fifth user interface based on the first algorithm information.

14. The system according to claim 13, wherein, The application information of the first application includes any one or more of the following: application name or identifier, application version number, name of the application development manufacturer.

15. The system according to claim 8 or 9, wherein, The description information of the first image editing algorithm includes any one or more of the following: the identifier or name of the first image editing algorithm, the version of the first image editing algorithm, the parameters of the first image editing algorithm; The description information of the second image editing algorithm includes any one or more of the following: the identifier or name of the second image editing algorithm, the version of the second image editing algorithm, the parameters of the second image editing algorithm.

16. A picture editing method, wherein, The method includes: The first electronic device displays a first picture gallery interface, and the first picture gallery interface includes a first picture; The first electronic device receives an editing operation of the user on the first picture; In response to the editing operation on the first picture, the first electronic device displays the first user interface. The editing interface of the first picture includes the first picture and a first option. The first option includes a first node and a second node. The first node is related to a first image editing algorithm, and the second node is related to a second image editing algorithm. The first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of the third picture; The first electronic device receives a first operation of the user on the first node; In response to the first operation, the first electronic device displays a second user interface, and the second user interface includes a second picture. The second picture is obtained based on the first image editing algorithm on the basis of the third picture.

17. The method according to claim 16, wherein, Before the first electronic device displays the first picture gallery interface, the method further includes: The first electronic device displays a second picture gallery interface, and the second picture gallery interface includes the third picture; The first electronic device receives an editing operation of the user on the third picture; In response to the editing operation on the third picture, the first electronic device displays a third user interface, and the third user interface includes the third picture and a plurality of picture editing options; The first electronic device receives a second operation of the user on a first editing option among the plurality of picture editing options. The first editing option is related to the first image editing algorithm; In response to the second operation, the first electronic device obtains the second picture; After obtaining the second picture, the first electronic device receives a third operation by the user for a second editing option among the multiple picture editing options, where the second editing option is related to the second picture editing algorithm; In response to the third operation, the first electronic device obtains the first picture; The first electronic device receives a fourth operation to save the first picture; In response to the fourth operation, the first electronic device saves the first picture and the editing record of the first picture.

18. The method according to claim 16, wherein, before the first electronic device displays the first picture gallery interface, the method further includes: the first electronic device displays a second picture gallery interface, and the second picture gallery interface includes the third picture; the first electronic device receives an editing operation by the user for the third picture; in response to the editing operation for the third picture, the first electronic device displays a third user interface, and the third user interface includes the third picture and multiple picture editing options; the first electronic device receives a selection operation by the user for a first editing option and a second editing option among the multiple picture editing options, where the first editing option is related to the first picture editing algorithm and the second editing option is related to the second picture editing algorithm; in response to the selection operation, the first electronic device processes the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain the first picture; the first electronic device receives a fourth operation to save the first picture; in response to the fourth operation, the first electronic device saves the first picture and the editing record of the first picture.

19. The method according to any one of claims 16 - 18, wherein, the second user interface further includes a second option, and the second option includes the first node.

20. The method according to any one of claims 16 - 19, wherein, the second picture is obtained by the first electronic device based on the first image editing algorithm on the basis of the third picture.

21. The method according to any one of claims 16 - 18, wherein, before the first electronic device displays the second user interface, the method further includes: in response to the first operation, the first electronic device sends the third picture and the identifier of the first image editing algorithm to the server; the first electronic device receives the second picture sent by the server, and the second picture is obtained by the server based on the first image editing algorithm on the basis of the third picture; the first electronic device displays the second user interface, specifically including: in response to receiving the second picture sent by the server, the first electronic device displays the second user interface.

22. The method according to any one of claims 16 - 21, wherein, The first picture is obtained by the first electronic device processing the second picture according to the second picture editing algorithm.

23. The method according to claim 17 or 18, wherein, the editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes an identifier of the first image editing algorithm and an identifier of the second image editing algorithm, and the first description information includes description information of the first image editing algorithm and description information of the second image editing algorithm.

24. The method according to claim 23, wherein, the first electronic device displaying the first user interface specifically includes: in response to an editing operation on the first picture, the first electronic device obtains the first algorithm information in the editing record of the first picture; the first electronic device displays the first option on the first user interface based on the first algorithm information.

25. The method according to claim 17 or 18 or 23, wherein, after the first electronic device saves the first picture and the editing record of the first picture, the method further includes: the first electronic device sends the first picture and the editing record of the first picture to a second electronic device; wherein, the editing record of the first picture is used for the second electronic device to process the first picture based on the first picture editing algorithm and the second picture editing algorithm.

26. The system according to claim 23, wherein, the description information of the description information of the first image editing algorithm includes any one or more of the following: the identifier or name of the first image editing algorithm, the version of the first image editing algorithm, the parameters of the first image editing algorithm; the description information of the description information of the second image editing algorithm includes any one or more of the following: the identifier or name of the second image editing algorithm, the version of the second image editing algorithm, the parameters of the second image editing algorithm.

27. An electronic device, being the first electronic device, wherein, the first electronic device includes a memory and a processor; wherein, the memory and the processor are coupled, and the memory is used for storing a computer program, and when the processor executes and calls the computer program, the first electronic device executes the method according to any one of claims 16 - 26.

28. A computer - readable storage medium, including instructions, wherein, when the instructions run on the first electronic device, the first electronic device executes the method according to any one of claims 16 - 26.

Citation Information

Patent Citations

  • Method and device for multiple users to collaboratively edit and publish picture information

    CN105099875A

  • Picture processing method and device and storage medium

    CN107181670A

  • Webpage-based image editing method, image editing device and electronic equipment

    CN109948103A

  • File editing method and device

    CN114756154A

  • System and Method for Image Editing Using Visual Rewind Operation

    US20130120439A1

Cited By

  • Picture editing method, electronic device, and storage medium

    EP4745721A1

  • Picture editing method, electronic device, and storage medium

    WO2025113593A1