Picture editing method, device, storage medium and terminal
By integrating multiple image editing functions into a browser page, the problem of low efficiency in traditional image editing is solved, enabling users to use multiple editing functions efficiently without frequently switching pages.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING QIHOOD TECHNOLOGY CO LTD
- Filing Date
- 2024-12-03
- Publication Date
- 2026-06-09
AI Technical Summary
Traditional image editing methods require frequent page switching, resulting in low efficiency and a poor user experience.
A page that integrates multiple image editing functions into a browser generates an editing page through image editing controls, displays the functional interface in response to user operations, and calls the corresponding editing plugins to execute commands.
It improves image editing efficiency, allowing users to use various editing functions without frequently switching pages, thus enhancing the user experience.
Smart Images

Figure CN122176087A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer image processing technology, and in particular to an image editing method, apparatus, storage medium, and terminal. Background Technology
[0002] With the rise of image processing technology in the computer field, browsers integrating image browsing and editing functions have been developed to meet users' ever-increasing image editing needs. Through various image editing functions, users can modify and refine images according to their needs, thereby achieving personalized image creation. However, the traditional approach to using image editing functions in a browser typically involves clicking a link or button for a specific image editing function, which then opens that function's page. To use other functions, users need to open separate pages dedicated to those functions. This is clearly inconvenient for users, hindering their ability to use multiple image editing functions and impacting their overall image editing experience. Summary of the Invention
[0003] This application provides an image editing method, apparatus, storage medium, and terminal, which can solve the technical problems of low image editing efficiency and poor user experience in related technologies.
[0004] In a first aspect, embodiments of this application provide an image editing method, the method comprising:
[0005] In response to a user's trigger action on the image editing control in the browser, an image editing page corresponding to the image editing control is generated and opened, and the image editing page includes at least one image editing function;
[0006] In response to the user's selection of the target image editing function, the operation interface corresponding to the target image editing function is displayed on the image editing page.
[0007] The system retrieves the image to be edited, receives the editing command triggered by the user in the above operation interface, and calls the image editing plugin corresponding to the target image editing function to execute the above editing command on the image to be edited.
[0008] Secondly, embodiments of this application provide an image editing device, the device comprising:
[0009] The editing trigger module is used to respond to the user's trigger operation on the image editing control in the browser, generate and open the image editing page corresponding to the image editing control, and the image editing page includes at least one image editing function;
[0010] The function selection module is used to respond to the user's selection operation for the target image editing function and display the operation interface corresponding to the target image editing function on the image editing page.
[0011] The editing execution module is used to acquire the image to be edited, receive the editing command triggered by the user in the operation interface, and call the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
[0012] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the steps of the method described above.
[0013] Fourthly, embodiments of this application provide a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being adapted to be loaded by the processor and to execute the steps of the above-described method.
[0014] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:
[0015] This application provides an image editing method. In response to a user's trigger operation on an image editing control in a browser, an image editing page corresponding to the image editing control is generated and opened. The image editing page includes at least one image editing function. In response to a user's selection operation on a target image editing function, the operation interface corresponding to the target image editing function is displayed on the image editing page. The method acquires the image to be edited, receives the editing command triggered by the user in the operation interface, and calls the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited. This application embodiment supports an image editing page in the browser that integrates multiple image editing functions. This eliminates the need to open a separate page for each image editing function, improving the user's image editing efficiency. On this page, the user can select the image editing function they want to use, and the operation interface corresponding to that function is displayed on the image editing page. When the user needs to process an image, the corresponding editing plugin can be called to execute the user's editing command, thereby meeting the user's image editing needs and improving the user experience. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 An exemplary system architecture diagram of an image editing method provided in this application embodiment;
[0018] Figure 2 A flowchart illustrating an image editing method provided in an embodiment of this application;
[0019] Figure 3 This is a schematic diagram of an image editing page in an image editing method provided in an embodiment of this application;
[0020] Figure 4 A flowchart illustrating an image editing method provided in an embodiment of this application;
[0021] Figure 5 A schematic diagram illustrating the contrast effect in an image editing method provided in an embodiment of this application;
[0022] Figure 6 A schematic diagram of a detail optimization interface in an image editing method provided in this application embodiment;
[0023] Figure 7 A structural block diagram of an image editing device provided in an embodiment of this application;
[0024] Figure 8 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0025] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. Furthermore, in the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, in the description of the embodiments of this application, "multiple" refers to two or more.
[0027] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0028] With the rise of image processing technology in the computer field, people's demand for personalized and creative image processing is constantly increasing. Therefore, browsers integrating image browsing and editing functions have been developed to meet a wider range of image editing needs. These image editing functions cover everything from basic cropping, rotation, and scaling to advanced filter applications, color adjustments, layer management, and even advanced image restoration and special effects addition. Users can meticulously modify and optimize images according to their personal creative inspiration and actual needs, greatly enriching their personalized image creation space.
[0029] However, despite the numerous conveniences this integrated browser offers users, traditional operating methods still have certain limitations in practice. Previously, when a user wanted to use a specific image editing function, they typically needed to click the corresponding function link or button on the browser interface, after which the system would redirect to the dedicated editor page for that function. While this method was intuitive, when users frequently needed to switch between different editing functions, they had to constantly return to the parent page of the current editing function's page and click the links or buttons for other functions to open the corresponding editors or pages. This process was not only cumbersome but also disrupted the user's editing workflow, reduced editing efficiency, and severely impacted the user's image editing experience.
[0030] Therefore, this application provides an image editing method to solve the aforementioned technical problems of low image editing efficiency and poor user experience.
[0031] Please see Figure 1 , Figure 1 This is an exemplary system architecture diagram of an image editing method provided in an embodiment of this application.
[0032] like Figure 1 As shown, the system architecture may include a terminal 101, a network 102, and a server 103. The network 102 serves as the medium for providing a communication link between the terminal 101 and the server 103. The network 102 may include various types of wired or wireless communication links, such as wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables, and wireless communication links including Bluetooth communication links, Wireless-Fidelity (Wi-Fi) communication links, or microwave communication links, etc.
[0033] Terminal 101 can interact with server 103 via network 102 to receive messages from or send messages to server 103. Alternatively, terminal 101 can interact with server 103 via network 102 to receive messages or data sent to server 103 by other users. Terminal 101 can be hardware or software. When terminal 101 is hardware, it can be various electronic devices, including but not limited to smartphones, tablets, laptops, and desktop computers. When terminal 101 is software, it can be installed in the aforementioned electronic devices and can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module; no specific limitation is made here.
[0034] In this embodiment, when a user needs to edit an image, the terminal 101 first responds to the user's trigger operation on the image editing control in the browser, generates and opens the image editing page corresponding to the image editing control, and the image editing page includes at least one image editing function; when the user selects the desired editing function, the terminal 101 then responds to the user's selection operation on the target image editing function and displays the operation interface corresponding to the target image editing function on the image editing page; furthermore, the terminal 101 obtains the image to be edited, receives the editing command triggered by the user in the operation interface, and calls the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
[0035] Server 103 can be a business server providing various services. It should be noted that server 103 can be either hardware or software. When server 103 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When server 103 is software, it can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module; no specific limitations are made here.
[0036] Alternatively, the system architecture may not include server 103. In other words, server 103 may be an optional device in the embodiments of this specification. That is, the method provided in the embodiments of this specification can be applied to a system structure that only includes terminal 101. The embodiments of this application do not limit this.
[0037] It should be understood that Figure 1 The number of terminals, networks, and servers shown is only illustrative; the number can be any number of terminals, networks, and servers depending on the implementation requirements.
[0038] Please see Figure 2 , Figure 2This is a flowchart illustrating an image editing method provided in an embodiment of this application. The execution entity in this embodiment can be a terminal executing image editing, a processor within the terminal executing the image editing method, or an image editing service within the terminal executing the image editing method. For ease of description, the following uses the processor within the terminal as an example to describe the specific execution process of the image editing method.
[0039] like Figure 2 As shown, image editing methods can include at least:
[0040] S202. In response to a user's trigger operation on the image editing control in the browser, generate and open the image editing page corresponding to the image editing control, wherein the image editing page includes at least one image editing function.
[0041] Optionally, to facilitate users' use of various image editing functions, a comprehensive image editing page can be directly supported within the browser. This means that users can view and use multiple image editing functions simultaneously on this page, eliminating the need for frequent switching between different pages to use a single editing tool—a traditional approach. This integrated image editing solution significantly improves the efficiency and smoothness of image processing for users.
[0042] Furthermore, when a user needs to use image editing functions while browsing a webpage, they can directly locate and trigger the image editing control on the current browser interface. The system will respond immediately, generating and opening the corresponding image editing page. In one feasible implementation, the image editing control is designed as an intuitive icon, button, or triggered via a right-click menu, allowing users to easily understand its function and usage, ensuring a consistent and convenient user experience. By concentrating all editing functions on a single page, users no longer need to switch between different editing tools or pages, significantly saving time and reducing operational steps. Whether a professional photographer or an ordinary image enthusiast, everyone can find tools that meet their needs in this integrated editing environment and quickly complete various image editing tasks.
[0043] S204. In response to the user's selection operation for the target image editing function, display the operation interface corresponding to the target image editing function on the image editing page.
[0044] Optionally, after a user finds the desired image editing function on the image editing page, they will select that function. The system will immediately respond to this selection and display the corresponding interface on the image editing page. This selection may be achieved by clicking, double-clicking, touching a function icon on the screen, selecting an option from a drop-down menu, or using a keyboard shortcut. Regardless of the method used, once the system detects the user's confirmation of the desired image editing function, it will quickly and smoothly open the corresponding interface.
[0045] In one possible embodiment, the image editing functions integrated into the image editing page include at least one of image zoom, background removal, background replacement, intelligent image removal, AI-generated images, and style redrawing. Please refer to [link / reference]. Figure 3 , Figure 3 This is a schematic diagram of an image editing page in an image editing method provided in an embodiment of this application. Figure 3 As shown, the image editing page 300 includes a function selection bar 310 and an operation interface 320. The function selection bar 310 includes multiple categories of image editing functions such as "High-Definition Enhancement," "High-Definition Enlargement," "Intelligent Background Removal," "Intelligent Elimination," "Image Restoration," "AI ID Photo," and "Batch Editing." These image editing functions are displayed on the interface with both text names and illustrative icons to help users better understand their functions. When a user selects "High-Definition Enhancement" as the target image editing function, they can directly click the corresponding control in the function selection bar 310. At this time, the operation interface 320 for the "High-Definition Enhancement" function is displayed next to the function selection bar 310. The operation interface 320 also includes a function operation area 3201 and an image display area 3202. In the function operation area 3201, the "High-Definition Enhancement" function category has several sub-functions. Users can select the sub-function that best suits their needs to complete the subsequent image editing. In addition to displaying image effects, the image display area 3202 can also include auxiliary elements such as preview controls, undo / redo buttons, and detailed help documentation or operation tips. These elements not only help users better understand the effects of each editing option but also provide timely remedial measures in case they accidentally make a mistake.
[0046] S206. Obtain the image to be edited, receive the editing command triggered by the user in the operation interface, and call the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
[0047] Optionally, after selecting the desired image editing function, the user can further specify the image to be edited. The image to be edited can be uploaded by the user, a sample image selected directly in the interface, or generated based on user-inputted keywords. When a user uploads an image, multiple images can be uploaded at once for batch processing. In this case, the system will respond to the user's image upload operation (operations include, but are not limited to, dragging, searching through image storage paths, copying and pasting), retrieving at least one image to be edited from the uploaded images. Alternatively, if the user wants to experience the effect of the target image editing function first, the system can also display at least one sample image in the interface. The user can select one of these sample images as the image to be edited to experience the current editing effect. In another possible embodiment, the user can also input an image description if no specific image to be edited is available. The system can then generate at least one candidate image matching the image description using AI and / or retrieve at least one candidate image matching the image description from the image library, displaying all these candidate images to the user, who can then select a satisfactory target candidate image as the image to be edited.
[0048] Optionally, after acquiring the image to be edited, the user will perform specific editing operations. Within the user interface, users can trigger editing commands in various ways, including but not limited to clicking buttons, swiping their fingers, selecting options from drop-down menus, or utilizing gesture recognition technology. When the user triggers an editing command under the target image editing function, the corresponding image editing plugin is intelligently invoked. These plugins are software components specifically developed to implement specific editing functions, each possessing highly specialized algorithms and toolsets. After invoking a plugin, it will process the image accordingly based on the received editing command and its own business logic.
[0049] This application provides an image editing method. In response to a user's trigger operation on an image editing control in a browser, an image editing page corresponding to the image editing control is generated and opened. The image editing page includes at least one image editing function. In response to a user's selection operation on a target image editing function, the operation interface corresponding to the target image editing function is displayed on the image editing page. An image to be edited is obtained, an editing command triggered by the user in the operation interface is received, and an image editing plugin corresponding to the target image editing function is invoked to execute the editing command on the image to be edited. This application supports an image editing page integrating multiple image editing functions in the browser. This eliminates the need to open a separate page for each image editing function, improving the user's image editing efficiency. On this page, the user can select the image editing function they want to use, and the operation interface corresponding to that function is displayed on the image editing page. When the user needs to process an image, the corresponding editing plugin can be invoked to execute the user's editing command, thereby meeting the user's image editing needs and improving the user experience.
[0050] Please see Figure 4 , Figure 4 This is a flowchart illustrating an image editing method provided in an embodiment of this application.
[0051] like Figure 4 As shown, image editing methods can include at least:
[0052] S402. In response to a user's trigger operation on the image editing control in the browser, generate and open the image editing page corresponding to the image editing control, wherein the image editing page includes at least one image editing function.
[0053] S404. In response to the user's selection operation for the target image editing function, display the operation interface corresponding to the target image editing function on the image editing page.
[0054] S406. Obtain the image to be edited, receive the editing command triggered by the user in the operation interface, and call the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
[0055] For details regarding steps S402-S406, please refer to the detailed descriptions in steps S202-S206, which will not be repeated here.
[0056] S408. Generate a comparison control corresponding to the image to be edited; when the user triggers the comparison control, display the comparison effect of the initial state and the edited state of the image to be edited in the operation interface.
[0057] Optionally, after executing the editing command on the image to be edited, the interface will not only instantly display the edited image effect, but also intelligently generate a comparison control. This control is located in a prominent but user-friendly position on the interface, usually appearing as a bright icon or button, such as a semi-transparent "before and after comparison" icon, with a brief text description next to it to guide the user's operation.
[0058] Optionally, when the user actively clicks or triggers this comparison control, the interface will respond immediately, displaying a comparison of the initial state and the edited state of the image to be edited in the operation interface. In one possible embodiment, the comparison effect can be displayed in several ways, such as displaying two images side by side, that is, dividing the image display area in the operation interface into a first area and a second area. The first area is used to display the image to be edited in its initial state, and the second area is used to display the image to be edited in its edited state. The arrangement of the two areas is not limited; they can be arranged side by side or top to bottom. The before and after effects of editing the image to be edited are displayed simultaneously, helping the user to clearly observe the specific changes brought about by the editing operation.
[0059] In another possible embodiment, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating the comparison effect in an image editing method provided in an embodiment of this application. For example... Figure 5 As shown, a split-screen bar can also be generated in the image to be edited, dividing the image into a first area 510 and a second area 520. The image to be edited in the first area is in its initial state, while the image to be edited in the second area is in its edited state. Users can adjust the size of the first and second areas in the image to be edited by dragging the split-screen bar. This allows users to more clearly experience the execution effect of the target image editing function when dragging the split-screen bar.
[0060] S410: Generate the detail optimization control corresponding to the image to be edited; when the user triggers the detail optimization control, listen for the image selection operation performed by the user on the image to be edited.
[0061] Optionally, during the process of processing the image to be edited, the user may want to apply some specific editing operations to the image. In order to meet the user's personalized editing needs, the user can be supported to perform further manual detail optimization on the image to be edited.
[0062] Specifically, please refer to Figure 6 , Figure 6 This is a schematic diagram of a detail optimization interface in an image editing method provided in an embodiment of this application. Figure 6As shown in (A), when the image to be edited is displayed in the image display area, corresponding detail optimization controls can be automatically generated simultaneously. These controls are displayed in an intuitive and easy-to-understand way, allowing users to clearly identify the operations that can be performed at this time. Furthermore, users can select the detail areas that need to be processed in the image to be edited in a manner similar to "screenshot selection." That is, when the user's trigger operation on the detail optimization controls is detected, the listener for the image selection operation on the image to be edited is started.
[0063] S412. If an image selection operation is detected, expand the editing and adjustment window of the selected area image indicated in the image selection operation on the operation interface; process the selected area image based on the user's editing operation in the editing and adjustment window.
[0064] Optionally, if a user's image selection operation is detected, an editing and adjustment window for the selected area of the image can be expanded on the operation interface. For example... Figure 6 As shown in (B), the editing adjustment window displays a series of detailed adjustment tools, such as basic erase and repair tools; as well as further edge smoothing and feathering tools to optimize the natural transition of the cutout edges; intelligent recognition and repair functions that can automatically detect and correct flaws or breaks caused by improper cutout, etc., and also displays the cropped area image. After the user selects the detailed adjustment tools, the system can automatically or the user can manually process the image accordingly.
[0065] In this embodiment, an image editing method is provided, which generates a comparison control corresponding to the image to be edited. When a user triggers the comparison control, the method displays a comparison of the initial and edited states of the image to be edited on the operation interface. The before and after effects of editing are displayed simultaneously, helping the user to clearly observe the specific changes brought about by the editing operation. A detail optimization control corresponding to the image to be edited is generated. When a user triggers the detail optimization control, the method listens for the image selection operation performed by the user on the image to be edited. An editing adjustment window for the selected area image indicated in the image selection operation is expanded on the operation interface. Based on the user's editing operation in the editing adjustment window, the selected area image is processed. Through detailed processing of image details, the user's personalized editing needs are met.
[0066] Please see Figure 7 , Figure 7 This is a structural block diagram of an image editing device provided in an embodiment of this application.
[0067] like Figure 7 As shown, the image editing device 700 includes:
[0068] The editing trigger module 710 is used to respond to the user's trigger operation on the image editing control in the browser, generate and open the image editing page corresponding to the image editing control, and the image editing page includes at least one image editing function;
[0069] The function selection module 720 is used to respond to the user's selection operation for the target image editing function and display the operation interface corresponding to the target image editing function on the image editing page;
[0070] The editing execution module 730 is used to acquire the image to be edited, receive the editing command triggered by the user in the operation interface, and call the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
[0071] Optionally, the editing execution module 730 is further configured to receive an image upload operation triggered by the user, and obtain at least one image to be edited included in the image upload operation; or, display at least one example image in the operation interface, and determine the target example image as the image to be edited based on the user's selection operation on the target example image; or, obtain an image description statement input by the user, determine at least one candidate image that matches the image description statement, and determine the target candidate image as the image to be edited based on the user's selection operation on the target candidate image.
[0072] Optionally, the image editing device 700 further includes: a comparison module, used to generate a comparison control corresponding to the image to be edited; when a user triggers the comparison control, the comparison effect of the initial state and the edited state of the image to be edited is displayed in the operation interface.
[0073] Optionally, the comparison module is also used to generate a split-screen bar in the image to be edited. The split-screen bar is used to divide the image to be edited into a first region and a second region. The image to be edited in the first region is in the initial state, and the image to be edited in the second region is in the edited state. The module receives the user's drag operation on the split-screen bar and adjusts the size of the first region and the second region in the image to be edited based on the end position of the drag operation.
[0074] Optionally, the comparison module is also used to divide the image display area in the operation interface into a first area and a second area. The first area is used to display the image to be edited in its initial state, and the second area is used to display the image to be edited in its edited state.
[0075] Optionally, the image editing device 700 further includes: a detail optimization module, used to generate detail optimization controls corresponding to the image to be edited; when a user triggers an operation on the detail optimization controls, it listens for the image selection operation performed by the user on the image to be edited; if an image selection operation is detected, it expands the editing adjustment window of the selected area image indicated in the image selection operation on the operation interface; and processes the selected area image based on the user's editing operation in the editing adjustment window.
[0076] Optionally, the image editing functions include at least one of the following: image zoom, background removal, background replacement, intelligent removal, AI-generated images, and style redrawing.
[0077] This application provides an image editing device, comprising an editing trigger module for generating and opening an image editing page corresponding to the image editing control in response to a user's trigger operation on the image editing control in a browser. The image editing page includes at least one image editing function. A function selection module is used to display the operation interface corresponding to the target image editing function on the image editing page in response to a user's selection operation on the target image editing function. An editing execution module is used to acquire the image to be edited, receive the editing command triggered by the user in the operation interface, and call the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited. This application supports an image editing page integrating multiple image editing functions in the browser, eliminating the need to open a separate page for each image editing function, thus improving the user's image editing efficiency. On this page, the user can select the image editing function they want to use, and the operation interface corresponding to that function will be displayed on the image editing page. When the user needs to process an image, they can call the editing plugin corresponding to that function to execute the user's editing command, thereby meeting the user's image editing needs and improving the user experience.
[0078] This application also provides a computer storage medium that can store multiple instructions adapted for loading by a processor and executing the steps of any of the methods described in the above embodiments.
[0079] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Figure 8 As shown, terminal 800 may include: at least one terminal processor 801, at least one network interface 804, user interface 803, memory 805, and at least one communication bus 802.
[0080] The communication bus 802 is used to enable communication between these components.
[0081] The user interface 803 may include a display screen and a camera. Optionally, the user interface 803 may also include a standard wired interface and a wireless interface.
[0082] The network interface 804 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0083] The terminal processor 801 may include one or more processing cores. The terminal processor 801 connects to various parts within the terminal 800 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 805, and by calling data stored in the memory 805. Optionally, the terminal processor 801 may be implemented using at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The terminal processor 801 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the terminal processor 801.
[0084] The memory 805 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 805 may include a non-transitory computer-readable storage medium. The memory 805 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 805 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 805 may also be at least one storage device located remotely from the aforementioned terminal processor 801. Figure 8 As shown, the memory 805, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an image editing program.
[0085] exist Figure 8 In the terminal 800 shown, the user interface 803 is mainly used to provide an input interface for the user and to obtain the user's input data; while the terminal processor 801 can be used to call the image editing program stored in the memory 805 and specifically perform the following operations:
[0086] In response to a user's triggering action on the image editing control in the browser, an image editing page corresponding to the image editing control is generated and opened, and the image editing page includes at least one image editing function;
[0087] In response to the user's selection of the target image editing function, the corresponding operation interface of the target image editing function is displayed on the image editing page;
[0088] The system retrieves the image to be edited, receives the editing command triggered by the user in the operation interface, and calls the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
[0089] In some embodiments, when the terminal processor 801 performs the action of acquiring an image to be edited, it specifically performs the following steps: receiving an image upload operation triggered by a user, and acquiring at least one image to be edited included in the image upload operation; or, displaying at least one example image in the operation interface, and determining the target example image as the image to be edited based on the user's selection operation on the target example image; or, acquiring an image description statement input by the user, determining at least one candidate image that matches the image description statement, and determining the target candidate image as the image to be edited based on the user's selection operation on the target candidate image.
[0090] In some embodiments, after the terminal processor 801 executes the editing command on the image to be edited by the image editing plugin corresponding to the target image editing function, it further performs the following steps: generating a comparison control corresponding to the image to be edited; when the user triggers the comparison control, displaying the comparison effect of the initial state and the edited state of the image to be edited in the operation interface.
[0091] In some embodiments, when the terminal processor 801 performs a comparison of the initial state and the edited state of an image to be edited in the operation interface, it specifically performs the following steps: generating a split-screen bar in the image to be edited, the split-screen bar being used to divide the image to be edited into a first region and a second region, the image to be edited in the first region being the initial state, and the image to be edited in the second region being the edited state; receiving a user's drag operation on the split-screen bar, and adjusting the size of the first region and the second region in the image to be edited based on the end position of the drag operation.
[0092] In some embodiments, when the terminal processor 801 performs the comparison of the initial state and the edited state of the image to be edited in the operation interface, it specifically performs the following steps: dividing the image display area in the operation interface into a first area and a second area, wherein the first area is used to display the image to be edited in the initial state and the second area is used to display the image to be edited in the edited state.
[0093] In some embodiments, the terminal processor 801 further performs the following steps: generating a detail optimization control corresponding to the image to be edited; when a user triggers the detail optimization control, listening for the image cropping operation performed by the user on the image to be edited; if an image cropping operation is detected, expanding the editing adjustment window of the cropped area image indicated in the image cropping operation on the operation interface; and processing the cropped area image based on the user's editing operation in the editing adjustment window.
[0094] In some embodiments, the image editing functions include at least one of image zoom, background cutout, background replacement, intelligent removal, AI-generated image, and style redraw.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0096] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0097] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this specification are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The aforementioned available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).
[0098] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0099] In addition, it should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0100] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0101] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0102] The above is a description of an image editing method, apparatus, storage medium, and terminal provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for editing images, characterized in that, The method includes: In response to a user's triggering action on an image editing control in a browser, an image editing page corresponding to the image editing control is generated and opened, the image editing page including at least one image editing function; In response to the user's selection of the target image editing function, the operation interface corresponding to the target image editing function is displayed on the image editing page; The system acquires the image to be edited, receives the editing command triggered by the user in the operation interface, and calls the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
2. The method according to claim 1, characterized in that, The process of obtaining the image to be edited includes: Receive the image upload operation triggered by the user, and obtain at least one image to be edited included in the image upload operation; or, At least one example image is displayed in the operation interface, and the target example image is determined as the image to be edited based on the user's selection operation on the target example image; or, Obtain the image description statement input by the user, determine at least one candidate image that matches the image description statement, and determine the target candidate image as the image to be edited based on the user's selection operation on the target candidate image.
3. The method according to claim 1, characterized in that, After the image editing plugin corresponding to the target image editing function executes the editing command on the image to be edited, the method further includes: Generate a comparison control corresponding to the image to be edited; When the user triggers the comparison control, the comparison between the initial state and the edited state of the image to be edited is displayed in the operation interface.
4. The method according to claim 3, characterized in that, The comparison between the initial state and the edited state of the image to be edited displayed in the operation interface includes: A split-screen bar is generated in the image to be edited. The split-screen bar is used to divide the image to be edited into a first region and a second region. The image to be edited in the first region is in the initial state, and the image to be edited in the second region is in the edited state. The system receives the user's drag operation on the split-screen bar and adjusts the size of the first area and the second area in the image to be edited based on the end position of the drag operation.
5. The method according to claim 3, characterized in that, The comparison between the initial state and the edited state of the image to be edited displayed in the operation interface includes: The image display area in the operation interface is divided into a first area and a second area. The first area is used to display the image to be edited in its initial state, and the second area is used to display the image to be edited in its edited state.
6. The method according to claim 1, characterized in that, The method further includes: Generate the detail optimization controls corresponding to the image to be edited; When the user triggers the operation on the detail optimization control, listen for the image selection operation performed by the user on the image to be edited; If the image cropping operation is detected, the editing and adjustment window for the cropped area image indicated in the image cropping operation will be expanded on the operation interface; The selected area image is processed based on the user's editing operations in the editing adjustment window.
7. The method according to claim 1, characterized in that, The image editing functions include at least one of the following: image zoom, background cutout, background replacement, intelligent removal, AI-generated image, and style redraw.
8. An image editing device, characterized in that, The device includes: An editing trigger module is used to respond to a user's trigger operation on the image editing control in the browser, generate and open the image editing page corresponding to the image editing control, and the image editing page includes at least one image editing function; The function selection module is used to respond to the user's selection operation for the target image editing function and display the operation interface corresponding to the target image editing function on the image editing page; The editing execution module is used to acquire the image to be edited, receive the editing command triggered by the user in the operation interface, and call the image editing plugin corresponding to the target image editing function to execute the editing command on the image to be edited.
9. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the steps of the method as described in any one of claims 1 to 7.
10. A terminal, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the steps of the method as described in any one of claims 1 to 7.