Image editing method and apparatus, electronic device, and storage medium

By meshing the watermark layer and filling the target watermark material, the problem of cumbersome watermark addition and irregular position in the existing technology is solved, and automatic watermark addition and image visual effect are improved.

WO2025108223A1PCT designated stage expired Publication Date: 2025-05-30BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/132613
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-22
Filing Date
2024-11-18
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When adding multiple watermarks to an image in the prior art, the user needs to manually adjust the position of each watermark, which results in a long time, cumbersome steps, and may affect the visual effect of the image.

Method used

In response to the watermark addition instruction, the watermark layer is meshed to obtain multiple areas, fill in these areas with the target watermark material, and combine the image to be edited with the watermark layer filled with the watermark material to obtain the edited image.

Benefits of technology

It realizes automatic watermark addition, simplifies the steps of adding multiple watermarks on the image, shortens the time for adding watermarks, and ensures that the watermark positions are uniform and unified, improving the visual effect of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024132613_30052025_PF_FP_ABST
    Figure CN2024132613_30052025_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to an image editing method and apparatus, an electronic device, and a storage medium. The method comprises: determining an image to be edited and a target watermark material; in response to a watermark adding instruction, performing grid division on a watermark layer to obtain a plurality of first areas; filling each first area with the target watermark material; and compositing the image to be edited and the watermark layer filled with the target watermark material, so as to obtain an edited image. By using the technical solution provided by the present application, in one aspect, watermark adding can be automated, and a step of adding a plurality of watermarks to one image can be simplified, thereby shortening the overall time consumed by watermark addition. In another aspect, since the target watermark material is filled in according to a grid division result, it can be ensured that the positions of a plurality of target watermark materials are regular and unified, thereby avoiding the occurrence of adverse influences on the visual effect of the whole image.
Need to check novelty before this filing date? Find Prior Art

Description

Image editing method, device, electronic device and storage medium

[0001] This application claims priority to the Chinese invention patent application entitled “Image Editing Method, Device, Electronic Device and Storage Medium” filed on November 22, 2023, with application number 202311568825.9. The entire contents of that application are incorporated by reference into this application. Technical Field

[0002] The present disclosure relates to the field of image editing technology, and in particular to an image editing method, device, electronic device, and storage medium. Background Art

[0003] In the current digital age, images play a very important role in human life. They not only convey information, but also help people better understand and remember content, record life, etc.

[0004] After creating an image, users often wish to add a watermark to protect their rights. When users need to add multiple watermarks to a single image, existing watermarking methods require the user to manually adjust the position of each watermark. This method is not only time-consuming and cumbersome, but also, because the watermark placement is entirely user-defined, the resulting adjustments can be inconsistent and irregular, affecting the overall visual quality of the image. Summary of the Invention

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides an image editing method, device, electronic device and storage medium.

[0006] In a first aspect, the present disclosure provides an image editing method, which includes: determining an image to be edited and a target watermark material; in response to a watermark adding instruction, dividing the watermark layer into a grid to obtain a plurality of first areas; filling the target watermark material in the first areas; and synthesizing the image to be edited with the watermark layer filled with the target watermark material to obtain an edited image.

[0007] In a second aspect, the present disclosure also provides an image editing device, which includes: a determination module for determining an image to be edited and a target watermark material; a division module for dividing the watermark layer into a grid in response to a watermark adding instruction to obtain a plurality of first areas; a filling module for filling the target watermark material in the first areas; and a synthesis module for synthesizing the image to be edited with the watermark layer filled with the target watermark material to obtain an edited image.

[0008] In a third aspect, the present disclosure also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the image editing method as described above.

[0009] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which implements the image editing method described above when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0011] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0012] FIG1 is a flow chart of an image editing method provided by an embodiment of the present disclosure;

[0013] 2 to 6 are schematic diagrams of an image editing process provided by an embodiment of the present disclosure;

[0014] FIG7 is a flowchart of another image editing method provided by an embodiment of the present disclosure;

[0015] 8 to 14 are schematic diagrams of several other watermark layers provided by embodiments of the present disclosure;

[0016] 15-18 are schematic diagrams of several image editing interfaces provided by embodiments of the present disclosure;

[0017] FIG19 is a schematic structural diagram of an image editing device according to an embodiment of the present disclosure;

[0018] FIG20 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.

[0020] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0021] FIG1 is a flowchart of an image editing method provided by an embodiment of the present disclosure. This embodiment is applicable to situations where watermarks are added on a client. The method can be executed by an image editing device, which can be implemented using software and / or hardware. The device can be configured in an electronic device, such as a terminal, specifically including but not limited to smartphones, PDAs, tablet computers, wearable devices with displays, desktop computers, laptop computers, all-in-one computers, smart home devices, etc. Alternatively, this embodiment is applicable to situations where watermarks are added on a server. The method can be executed by an image editing device, which can be implemented using software and / or hardware. The device can be configured in an electronic device, such as a server.

[0022] As shown in FIG1 , the method may specifically include:

[0023] S110: Determine the image to be edited and the target watermark material.

[0024] The image to be edited may be, for example, an image to be watermarked. This application does not limit the source of the image to be edited. For example, the image to be edited may be taken by the user or downloaded from the Internet.

[0025] The target watermark material may be, for example, a material that is desired to be added to the image to be edited as a watermark.

[0026] The target watermark material can be completely designed by the user, or obtained by the user modifying an existing material template.

[0027] S120 . In response to the watermark adding instruction, divide the watermark layer into grids to obtain a plurality of first areas.

[0028] The watermark adding instruction may be, for example, an instruction for instructing to add a target watermark material to the image to be edited. In practice, optionally, the watermark adding instruction is generated in response to a triggering operation for adding a watermark to the entire screen.

[0029] The watermark layer is divided into grids, and each obtained grid is a first area.

[0030] There are many ways to implement this step. For example, the watermark layer can be divided into square grids, triangular grids, or grids of other shapes.

[0031] The shape of the first region is different depending on the way the watermark layer is meshed. For example, if the watermark layer is meshed using a square grid, the shape of the first region is a square. If the watermark layer is meshed using a triangular grid, the shape of the first region is a triangle.

[0032] In some embodiments, optionally, the size of the watermark layer is the same as the size of the image to be edited.

[0033] S130: Fill the first area with target watermark material.

[0034] During the execution of this step, the target watermark material may be filled in all the first areas, or may be filled in part of the first areas.

[0035] Furthermore, if there are multiple target watermark materials, different first areas may be filled with the same target watermark material, different first areas may be filled with different target watermark materials, or the same first area may be filled with multiple target watermark materials.

[0036] S140: Synthesize the image to be edited with the watermark layer filled with the target watermark material to obtain an edited image.

[0037] For example, Figure 2 shows an image to be edited, and Figure 3 shows a target watermark material. After receiving the watermark addition instruction, a watermark layer with the same size as the image to be edited is formed and divided into a square grid. The resulting division is shown in Figure 4. In Figure 4, each square grid is a first region. Each first region is filled with the target watermark material. The resulting watermark layer is shown in Figure 5. Finally, the image to be edited in Figure 2 is combined with the watermark layer in Figure 5 to obtain the edited image. The edited image is shown in Figure 6.

[0038] The above technical solution is configured to divide the watermark layer into a grid in response to a watermark addition instruction to obtain multiple first areas; fill the first areas with target watermark materials; and synthesize the image to be edited with the watermark layer filled with the target watermark materials to obtain the edited image. Its essence is to divide the watermark layer into a grid and automatically fill the target watermark materials according to the grid division results, so that multiple target watermark materials can be arranged according to certain standards or rules in the image to be edited. On the one hand, this can realize automated watermark addition, simplify the steps of adding multiple watermarks to an image, and shorten the overall time consumption of watermark addition. On the other hand, because the target watermark materials are filled according to the grid division results, it can ensure that the positions of multiple target watermark materials are regular and uniform, avoiding the occurrence of adverse effects on the visual effects of the entire image.

[0039] FIG7 is a flow chart of another image editing method provided by an embodiment of the present disclosure. Referring to FIG7 , the image editing method includes:

[0040] S210: Determine the image to be edited and the target watermark material.

[0041] S220 . In response to the watermark adding instruction, divide the watermark layer into grids to obtain a plurality of first areas.

[0042] S230: Fill the first area with target watermark material.

[0043] S240: In response to the adjustment operation on the watermark layer, adjust the first area and / or the target watermark material.

[0044] The adjustment operation on the watermark layer can be, for example, an operation performed by the user. This reflects the user's desire to adjust the first area and / or the target watermark material. In practice, the adjustment operation on the watermark layer can be, for example, a click or slide operation on a specific area or specific control on the page used to add the watermark.

[0045] There are multiple methods for implementing this step, which are not limited in this application. Exemplarily, the methods for implementing this step include at least one of the following: in response to a size adjustment operation on the target watermark material, changing the size of the first region, controlling the target watermark material to scale proportionally with the size of the first region; in response to a spacing adjustment operation on the target watermark material, reducing the size of the target watermark material; and in response to an adjustment operation on the filling method, changing the filling method of the target watermark material in the first region.

[0046] In some embodiments, the size adjustment operation on the target watermark material may be, for example, a click or slide operation on an option with a function of adjusting the size of the target watermark material, or a drag operation on the target watermark material.

[0047] Exemplarily, based on Figure 5, if the user performs a size adjustment operation to increase the target watermark material, see Figure 8, the size of the first area is increased, and at the same time, the size of the target watermark material filled in the first area is increased, so that along any direction parallel to the watermark layer, the expansion multiple of the size of the target watermark material is the same as the expansion multiple of the size of the first area.

[0048] Similarly, the spacing adjustment operation on the target watermark material may be, for example, a click or slide operation on an option having the function of adjusting the spacing of the target watermark material, or a drag operation on the target watermark material.

[0049] Exemplarily, based on FIG5 , if the user performs a triggering operation of reducing the target watermark material spacing, see FIG9 , the size of the target watermark material is reduced while the size of the first area remains unchanged.

[0050] The operation of adjusting the filling mode includes at least one of the following: an operation of adjusting the rotation angle of the target watermark material, an operation of adjusting the interlacing degree of the target watermark material, and an operation of adjusting the transparency of the target watermark material.

[0051] If the implementation method of this step includes changing the filling method of the target watermark material in the first area in response to the adjustment operation of the filling method, optionally, after this step, it also includes: determining a to-be-completed area in the first area; and filling the to-be-completed area based on the target watermark material.

[0052] In practice, the target watermark material often carries information that the user wants other users to know. Due to the limitations of the first area, changing the filling method of the target watermark material in the first area may cause the target watermark material to exceed the first area, resulting in the portion exceeding the first area being undisplayable, and thus making it impossible to fully display the information carried by the target watermark material in the first area. By setting the to-be-completed area to be filled, the information carried by the target watermark material can be displayed more completely.

[0053] The area to be completed may be, for example, an area where information needs to be completed, and may be a local area of ​​the first area.

[0054] Based on the target watermark material, the area to be completed is filled. For example, a first image is determined from the target watermark material, and the area to be completed is filled with the first image. The first image is a partial image of the target watermark material.

[0055] It should be noted that before the area to be filled is filled, it may or may not have been filled with other partial images of the target watermark material. If the area to be filled is already filled with other partial images of the target watermark material, the other partial images of the target watermark material that fill the area to be filled are defined as the second image. "Filling the area to be filled with the first image" essentially means replacing the second image with the first image.

[0056] Further, determining the area to be completed in the first area includes: determining the area to be completed in the first area based on a preset rule for determining the area to be completed; filling the area to be completed based on the target watermark material includes: filling the area to be completed based on the target watermark material and the preset completion rule.

[0057] The rule for determining the area to be completed may include, for example, relative position information of the area to be completed and the first area under different filling modes; or, the rule for determining the area to be completed may include a functional relationship between the relative position information of the area to be completed and the first area and the filling mode.

[0058] The completion rule may include, for example, a specific method of determining the first image from the target watermark material under different filling modes. Alternatively, based on a preset completion rule, the first image is determined in the target watermark material; and the area to be completed is filled with the first image.

[0059] For example, based on Figure 5, if the user performs an operation to adjust the rotation angle of the target watermark material, see Figure 10 to rotate the target watermark material. Since each target watermark material is limited to the first area it fills, each target watermark material is intercepted by the border of the first area. The target watermark material includes four patterns. In Figure 10, each pattern of each target watermark material is not fully displayed. Figure 11 shows the areas to be completed. Each first area includes two areas to be completed. After filling each area to be completed, the effect is shown in Figure 12. In Figure 12, the smiling face and the little sun in each target watermark material are fully displayed.

[0060] For another example, the target watermark material's fill position in the first region is defined as the position of the target watermark material's geometric center in the first region. Based on Figure 8, if the user adjusts the interlacing of the target watermark material, maintaining the fill position of the target watermark material in odd rows and shifting the fill position of the target watermark material in even rows to the left, each target watermark material will be clipped by the border of the first region because it is limited to the first region it fills. The resulting clipping is shown in Figure 13. In Figure 13, each first region includes a to-be-filled region. Each to-be-filled region is filled, and the resulting effect is shown in Figure 14.

[0061] Since the transparency of the target watermark material is adjusted, it often does not involve the display of the information it carries. Optionally, if the operation of adjusting the filling method is to adjust the transparency of the target watermark material, the step of "determining the area to be completed in the first area; filling the area to be completed based on the target watermark material" is not executed.

[0062] S250: Synthesize the image to be edited with the watermark layer filled with the target watermark material to obtain an edited image.

[0063] The above technical solution adjusts the first area and / or target watermark material by setting a response to the adjustment operation of the watermark layer. Its essence is to allow the user to adjust the arrangement of the target watermark material in the image to be edited as needed, which can meet the user's personalized usage needs.

[0064] The following takes image editing in a terminal as an example to explain the technical solution provided by this application in detail.

[0065] As shown in Figure 15 , a user can select one or more images from the image library as images to be edited, and the image editing page will be displayed on the terminal. As shown in Figure 15 , the image editing page includes an image preview area and a configuration area. After the user selects an image to be edited, the image to be edited is displayed in the preview area. The configuration area includes multiple primary options and a secondary configuration item display area. The primary options are "Material," "Edit," "Style," and "Full Screen Settings." If the user selects the "Material" option, multiple watermark materials will be displayed in the secondary configuration item display area, and the user can select one of them. If the user selects Watermark Material 1, the image to be edited and a single Watermark Material 1 will be displayed in the preview area. As shown in Figure 16 , if the user further selects the "Edit" option, the text editing items corresponding to Watermark Material 1 will be displayed in the secondary configuration item display area. For example, Watermark Material 1 is a watermark material used for store promotion. There are two text editing items corresponding to Watermark Material 1: one for editing the store name and the other for editing the store contact number. The user can enter "AAAAA" as the store name and "bbb" as the store contact number. After editing the text editing item corresponding to the watermark material 1, the text content in the watermark material 1 displayed in the image preview area will be updated accordingly.

[0066] As shown in Figure 17, if the user further selects the "Style" option, the secondary configuration item display area displays the style options corresponding to Watermark Material 1. For example, in Figure 17, the user is allowed to configure the font and color of the text in Watermark Material 1. After the aforementioned configuration, the resulting Watermark Material 1 is the target watermark material mentioned in this application. After configuring the font and color corresponding to Watermark Material 1, Watermark Material 1 displayed in the image preview area will be updated accordingly.

[0067] As shown in Figure 18, if the user further selects the "Full Screen Settings" option, the "Set Watermark Full Screen" configuration item related to full screen settings will be displayed in the secondary configuration item display area. As shown in Figure 18, this "Set Watermark Full Screen" configuration item is a toggle option. If the user chooses to turn on the "Set Watermark Full Screen" setting, the user can further configure the size of the target watermark material, the spacing of the target watermark material, the rotation angle of the target watermark material, the interlacing degree of the target watermark material, and the transparency of the target watermark material.

[0068] When the user chooses to configure one or more of the target watermark material size, target watermark material spacing, target watermark material rotation angle, target watermark material interlacing degree and target watermark material transparency, the preview image displayed in the image preview area is updated after each configuration.

[0069] It should be noted that in the examples of this application, for ease of understanding, grid lines are drawn on some watermark layers. In practice, grid lines may not be displayed on the watermark layer.

[0070] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0071] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0072] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0073] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0074] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0075] Figure 19 is a schematic diagram of the structure of an image editing device according to an embodiment of the present disclosure. The image editing device provided by the embodiment of the present disclosure can be configured in a client or a server. Referring to Figure 19 , the image editing device specifically includes: a determination module 310, a division module 320, a filling module 330, and a synthesis module 340.

[0076] The determination module 310 is used to determine the image to be edited and the target watermark material.

[0077] The division module 320 is configured to divide the watermark layer into grids in response to a watermark adding instruction to obtain a plurality of first areas.

[0078] The filling module 330 is configured to fill the first area with the target watermark material.

[0079] The synthesis module 340 is used to synthesize the image to be edited with the watermark layer filled with the target watermark material to obtain an edited image.

[0080] Furthermore, the apparatus further comprises a configuration module for adjusting the first area and / or the target watermark material in response to an adjustment operation on the watermark layer after the target watermark material is filled in the first area.

[0081] Furthermore, the configuration module is configured to perform at least one of the following steps:

[0082] In response to a size adjustment operation on the target watermark material, changing the first region size, and controlling the target watermark material to be scaled in proportion to the first region size;

[0083] In response to the spacing adjustment operation on the target watermark material, reducing the size of the target watermark material;

[0084] In response to the adjustment operation on the filling mode, the filling mode of the target watermark material in the first area is changed.

[0085] Furthermore, the configuration module is used to:

[0086] In response to an adjustment operation on the filling mode, after changing the filling mode of the target watermark material in the first area, a to-be-filled area is determined in the first area;

[0087] The area to be completed is filled based on the target watermark material.

[0088] Furthermore, the configuration module is used to:

[0089] Determining a full area to be completed in the first area based on a preset full area to be completed determination rule;

[0090] The filling of the to-be-completed area based on the target watermark material includes:

[0091] The area to be completed is filled based on the target watermark material and a preset completion rule.

[0092] Furthermore, the configuration module is used to:

[0093] Determining a first image in the target watermark material based on the preset complement rule;

[0094] The area to be completed is filled with the first image.

[0095] Furthermore, the operation of adjusting the filling mode includes at least one of the following:

[0096] The operation of adjusting the rotation angle of the target watermark material, the operation of adjusting the interlacing degree of the target watermark material, and the operation of adjusting the transparency of the target watermark material are performed.

[0097] The image editing device provided in the embodiment of the present disclosure can execute the steps executed by the client or server in the image editing method provided in the embodiment of the method of the present disclosure, and has the execution steps and beneficial effects, which will not be repeated here.

[0098] Figure 20 is a schematic diagram of the structure of an electronic device in an embodiment of the present disclosure. With specific reference to Figure 20 below, it shows a schematic diagram of the structure of an electronic device 1000 suitable for implementing the embodiment of the present disclosure. The electronic device 1000 in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable electronic devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc. The electronic device shown in Figure 20 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0099] As shown in Figure 20, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes to implement the performance problem location method of the embodiment described in the present disclosure according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1008 into the random access memory (RAM) 1003. In the RAM 1003, various programs and information required for the operation of the electronic device 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0100] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange information. Although FIG. 20 shows an electronic device 1000 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.

[0101] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart, thereby implementing the image editing method described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0102] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include an information signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated information signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0103] In some embodiments, the client and server can communicate using any known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital information communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any known or future developed network.

[0104] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0105] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0106] Determine the image to be edited and the target watermark material;

[0107] In response to the watermark adding instruction, the watermark layer is divided into grids to obtain a plurality of first areas;

[0108] Fill the target watermark material in the first area;

[0109] The image to be edited is synthesized with the watermark layer filled with the target watermark material to obtain an edited image.

[0110] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.

[0111] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0112] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0113] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0114] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0115] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0116] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:

[0117] one or more processors;

[0118] a memory for storing one or more programs;

[0119] When the one or more programs are executed by the one or more processors, the one or more processors implement any image editing method provided in the present disclosure.

[0120] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any image editing method provided by the present disclosure.

[0121] The embodiment of the present disclosure further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, the image editing method described above is implemented.

[0122] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0123] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. An image editing method, the method comprising: Determine the image to be edited and the target watermark material; In response to the watermark adding instruction, the watermark layer is divided into grids to obtain a plurality of first areas; Fill the target watermark material in the first area; as well as The image to be edited is synthesized with the watermark layer filled with the target watermark material to obtain an edited image.

2. The method according to claim 1, wherein after filling the target watermark material in the first area, the method further comprises: In response to the adjustment operation on the watermark layer, the first area and / or the target watermark material is adjusted.

3. The method according to claim 2, wherein the first area and / or the target watermark material are adjusted in response to the adjustment operation on the watermark layer, including at least one of the following: In response to a size adjustment operation on the target watermark material, the first region size is changed, and the target watermark material is controlled to be scaled in the same proportion as the first region size; In response to the spacing adjustment operation on the target watermark material, reducing the size of the target watermark material; or In response to the adjustment operation on the filling mode, the filling mode of the target watermark material in the first area is changed.

4. The method according to claim 2, wherein after the filling mode of the target watermark material in the first area is changed in response to the adjustment operation on the filling mode, the method further comprises: Determining a region to be completed in the first region; as well as The area to be completed is filled based on the target watermark material.

5. The method according to claim 4, wherein determining the area to be completed in the first area comprises: Determine the full area to be completed in the first area based on a preset full area to be completed determination rule; The filling the to-be-completed area based on the target watermark material includes: The area to be completed is filled based on the target watermark material and a preset completion rule.

6. The method according to claim 5, wherein filling the to-be-completed area based on the target watermark material and a preset completion rule comprises: Based on the preset complement rule, determining a first image in the target watermark material; as well as The area to be completed is filled with the first image.

7. The method according to claim 3, wherein the adjustment operation on the filling mode comprises at least one of the following: The adjustment operation of the rotation angle of the target watermark material, the adjustment operation of the interlacing degree of the target watermark material and the adjustment operation of the transparency of the target watermark material.

8. An image editing device, comprising: A determination module, used to determine the image to be edited and the target watermark material; A division module, for dividing the watermark layer into grids in response to a watermark adding instruction to obtain a plurality of first areas; A filling module, used for filling the target watermark material in the first area; as well as The synthesis module is used to synthesize the image to be edited with the watermark layer filled with the target watermark material to obtain the edited image.

9. An electronic device, comprising: one or more processors; as well as A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Watermark picture generation device and method

    CN109584135A

  • Watermark embedding method, device and equipment and computer readable storage medium

    CN110111231A

  • Digital watermark embedding method, digital watermark extracting method, digital watermark embedding device, digital watermark extracting device, digital watermark equipment and medium

    CN112907433A

  • Watermark generation method and device

    CN115880123A